Lines Matching refs:visitor
39 Each node visitor implements an interface with following four methods:
102 There are a number of ways in which the AST can be modified from inside a node visitor. The first
103 and simplest is to simply change AST properties inside the visitor:
212 especially if you have more than one visitor. In some cases, it is possible to avoid a full
307 * If *any* visitor returns `DONT_TRAVERSE_CHILDREN`, the children will be skipped for *all*
309 …* If *any* visitor returns `DONT_TRAVERSE_CURRENT_AND_CHILDREN`, the children will be skipped for …
311 * If *any* visitor returns `STOP_TRAVERSAL`, traversal is stopped for *all* visitors.
312 * If a visitor returns a replacement node, subsequent visitors will be passed the replacement node,
314 * If a visitor returns `REMOVE_NODE`, subsequent visitors will not see this node.
315 * If a visitor returns `REPLACE_WITH_NULL`, subsequent visitors will not see this node.
316 * If a visitor returns an array of replacement nodes, subsequent visitors will see neither the node
322 While the node visitor mechanism is very flexible, creating a node visitor can be overly cumbersome
357 The node visitor mechanism is somewhat rigid, in that it prescribes an order in which nodes should