Visitor2

The same as class Visitor, but the methods return void. This class is suitable when you don't want to transform the AST.

Members

Functions

dispatch
void dispatch(Node n)

Calls the appropriate visit() method for a node.

dispatch
void dispatch(Node n, NodeKind k)

Allows calling the visit() method with a null node.

unhandled
void unhandled(Node n)

Called by visit() methods that were not overridden.

Meta