Visitor

Implements a variation of the visitor pattern.

Inherited by classes that need to traverse a D syntax tree and do computations, transformations and other things on it.

Members

Functions

dispatch
Node dispatch(Node n)

Calls the appropriate visit() method for a node.

dispatch
Node dispatch(Node n, NodeKind k)

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

unhandled
Node unhandled(Node n)

Called by visit() methods that were not overridden.

Meta