Collects all node ids within a tree given by a respective root node
The root id nodes to start collecting from
Collects all node ids within a tree given by a respective root node, but stops collecting at nodes where the given stop function returns true.
This can be used to exclude certain subtrees from the collection, for example to exclude function bodies when collecting ids on the root level.
The root id nodes to start collecting from
A function that determines whether to stop collecting at a given node, does not stop by default
A helper function to retrieve the id of a given node, if available.
A helper function to retrieve the location of a given node, if available.
A helper function to retrieve the lexeme of a given node, if available.
If the fullLexeme is available, it will be returned, otherwise the lexeme will be returned.
Readonlyname: "RNode"Visits all node ids within a tree given by a respective root node using a depth-first search with prefix order.
The root id nodes to start collecting from
OptionalonVisit: OnEnter<OtherInfo>Called before visiting the subtree of each node. Can be used to stop visiting the subtree starting with this node (return true stop)
OptionalonExit: OnExit<OtherInfo>Called after the subtree of a node has been visited, called for leafs too (even though their subtree is empty)
Helper object to provide helper functions for RNodes.