@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);
 }
Exemple #2
0
 private void fCallNode(FCallNode node) {
   sb.append(" ").append(node.getName());
 }