Documentation ¶
Overview ¶
walk provides functions for visiting the nodes of an ADT tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Visitor ¶
type Visitor struct { // Feature is invoked for all field names. Feature func(f adt.Feature, src adt.Node) // Before is invoked for all invoked for all nodes in pre-order traversal. // Return false prevents the visitor from visiting the nodes descendant // elements. Before func(adt.Node) bool }
A Visitor walks over all elements in an ADT, recursively.
Click to show internal directories.
Click to hide internal directories.