public void traverse(FunctionDef node) throws Exception { if (node.decs != null) { visit(node.decs); } visit(node.name); visit(node.args); visit(node.body); }
protected void visit(SimpleNode[] body) throws Exception { if (body == null) { return; } for (SimpleNode node : body) { visit(node); } }
@Override public void visit(SimpleNode node) throws Exception { if (nodeHelper.isClassDef(node)) { return; } if (nodeHelper.isFunctionDef(node)) { return; } super.visit(node); }