Class QuantifierNode
A synthetic wrapper node produced by a quantifier (?, *, +)
that appears as one element inside a sequence.
Contains one child per repetition of the quantifier's body.
The Rule is the owning parser rule (same as the enclosing sequence).
public record QuantifierNode : ParserNode, IEquatable<ParseNode>, IEquatable<ParserNode>, IEquatable<QuantifierNode>
- Inheritance
-
QuantifierNode
- Implements
- Inherited Members
- Extension Methods
Remarks
This type is a subtype of ParserNode so that it integrates transparently with existing rule-name handlers and integer-index navigation. Name-based navigation (TryChild(string), Children(string)) looks through these wrappers to expose the inner named rule nodes directly.
Constructors
QuantifierNode(SourceSpan, string, Rule, IReadOnlyList<ParseNode>)
A synthetic wrapper node produced by a quantifier (?, *, +)
that appears as one element inside a sequence.
Contains one child per repetition of the quantifier's body.
The Rule is the owning parser rule (same as the enclosing sequence).
public QuantifierNode(SourceSpan Span, string ModeName, Rule Rule, IReadOnlyList<ParseNode> Children)
Parameters
SpanSourceSpanModeNamestringRuleRuleChildrenIReadOnlyList<ParseNode>
Remarks
This type is a subtype of ParserNode so that it integrates transparently with existing rule-name handlers and integer-index navigation. Name-based navigation (TryChild(string), Children(string)) looks through these wrappers to expose the inner named rule nodes directly.