Пример #1
0
 public void traverse(FunctionDef node) throws Exception {
   if (node.decs != null) {
     visit(node.decs);
   }
   visit(node.name);
   visit(node.args);
   visit(node.body);
 }
Пример #2
0
 protected void visit(SimpleNode[] body) throws Exception {
   if (body == null) {
     return;
   }
   for (SimpleNode node : body) {
     visit(node);
   }
 }
Пример #3
0
  @Override
  public void visit(SimpleNode node) throws Exception {
    if (nodeHelper.isClassDef(node)) {
      return;
    }
    if (nodeHelper.isFunctionDef(node)) {
      return;
    }

    super.visit(node);
  }