protected void trackContext(SimpleNode node) throws Exception { AbstractNodeAdapter<? extends SimpleNode> context = before(node); pushParent(context); traverse(node); parents.pop(); after(); }
@Override public Object visitFunctionDef(FunctionDef node) throws Exception { AbstractNodeAdapter<? extends SimpleNode> context = before(node); pushParent(context); traverse(node); parents.pop(); after(); return null; }
protected void updateASTContext(SimpleNode node) throws Exception { before(node); traverse(node); after(); }