It's up to each node subclass to decide the order for processing its children. The subclass also decides (and should document) which child nodes are not passed to the {@code NodeVisitor}. For instance, nodes representing keywords like {@code each} or{@code in} may not be passed to the visitor object. The visitorcan simply query the current node for these children if desired.
Generally speaking, the order will be deterministic; the order is whatever order is decided by each child node. Normally child nodes will try to visit their children in lexical order, but there may be exceptions to this rule.
@param visitor the object to call with this node and its children
|
|