SyntacticEntity class abstract
Interface for entities that appear in a piece of text. As far as the parser is concerned, this contains tokens and ast nodes.
- Implementers
- Available extensions
Constructors
Properties
- firstPosition → int
-
The first position of this entity, as an zero-based offset in the file it
was read from.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSpan → bool
-
Whether this entity has a source span associated with it.
no setter
- lastPosition → int
-
The (exclusive) last index of this entity in the source.
no setter
- length → int
-
Available on SyntacticEntity, provided by the SyntacticLengthExtension extension
The length of this entity, in characters.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → FileSpan?
-
The piece of text forming this syntactic entity.
no setter
- synthetic → bool
-
Whether this entity is synthetic, meaning that it doesn't appear in the
actual source.
no setter
Methods
-
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