ASTWalker
ASTWalker - Provides a simple AST traversal utility that traverses all nodes / children regardless of type.
A callback object is provided in traverse
which may contain two methods enterNode
and exitNode
which are
invoked with the current node and the parent node respectively when entering and exiting a given node.
enterNode
may return a array of strings which provide a set of children keys to ignore.
enterNode
may also return null to skip traversing children keys entirely.
Method Summary
Public Methods | ||
public |
Traverses the ast tree provided and invokes |