Token Node
A Node implementation that wraps a single Token.
This class is used internally by PatternElements when they successfully match a token. Use tokenAt to retrieve the wrapped token.
TokenNodes do not count as Node instances for the purposes of the nodes property. You may retrieve children directly on a parent Node to include both non-TokenNodes and TokenNodes in a well-defined order.
Properties
Returns true if this node is an AlternationCapture.
Returns true if this node is a RepeatableCapture.
The parser stack frames active when this Node was created.
Functions
Executes the block with this node as an AlternationCapture receiver if it is one.
Executes the block with this node as a RepeatableCapture receiver if it is one.
Returns all tokens captured by this Node, and its descendant subnodes, recursively.