SyntaxNode class abstract
A node that may carry source-position information.
Most concrete AST nodes extend this. Spans are only attached when the
parser is configured to track them (via withSpans: true).
- Inheritance
-
- Object
- FluentNode
- SyntaxNode
- Implementers
Constructors
- SyntaxNode()
-
Base constructor for the sealed syntax-node family.
const
Properties
Methods
-
clone(
) → FluentNode -
Deep clone of this node.
inherited
-
equals(
FluentNode other, {bool ignoreSpans = true}) → bool -
Structural equality.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited