Exemplo n.º 1
0
 @Override
 public Object visitFCallNode(FCallNode iVisited) {
   String name = iVisited.getName();
   if (name.equals("attr_accessor") || name.equals("attr")) {
     List<String> args = ASTUtil.getArgumentsFromFunctionCall(iVisited);
     if (name.equals("attr")) {
       methods.add(args.get(0));
     } else methods.addAll(convertSymbolsToStrings(args));
   }
   return super.visitFCallNode(iVisited);
 }
Exemplo n.º 2
0
 private void fCallNode(FCallNode node) {
   sb.append(" ").append(node.getName());
 }