The location identifying where this node came from.
Functional type (usually rule name) for AST generation or direct execution.
Not present in non-leaf nodes.
True if this node is meaningless junk that does not change the AST (commas, parens, whitespace/comments) and can be dropped in a pre-processing step.
Visual kind for syntax highlighting.
Text of this node; empty if a non-leaf.
OptionalerrorExpected: GrammarCombinator<any, any>
If set, it means this node is a fallback recovery node that should be translated into a lazy syntax error.
ReadonlychildrenNot present in non-leaf nodes.
Optional ReadonlyerrorIf set, it means this node is a fallback recovery node that should be translated into a lazy syntax error.
ReadonlyignoredTrue if this node is meaningless junk that does not change the AST (commas, parens, whitespace/comments) and can be dropped in a pre-processing step.
ReadonlyspanThe location identifying where this node came from.
ReadonlytagVisual kind for syntax highlighting.
ReadonlytextText of this node; empty if a non-leaf.
ReadonlytypeFunctional type (usually rule name) for AST generation or direct execution.
A node of the concrete syntax tree produced by the parser.
Invariant: recursively concatenating the
textof all leaves -- includingignorednodes -- reproduces the original source exactly. Ignored nodes are only removed in a later pass, when the CST is lowered to an AST.