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
Implementers

Constructors

SyntaxNode()
Base constructor for the sealed syntax-node family.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span Span?
Source range this node covers; null when spans were off.
no setter

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