IdentifierToken class
- Inheritance
- Available extensions
Constructors
- IdentifierToken.new(bool escaped, FileSpan span, {bool synthetic = false})
Properties
- escaped → bool
-
Whether this identifier was escaped by putting it in "double ticks".
final
- firstPosition → int
-
The first position of this entity, as an zero-based offset in the file it
was read from.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSpan → bool
-
Whether this entity has a source span associated with it.
no setterinherited
- identifier → String
-
no setter
- index ↔ int
-
The index of this Token in the list of tokens scanned.
getter/setter pairinherited
- invisibleToParser → bool
-
Whether this token should be invisible to the parser. We use this for
comment tokens.
no setterinherited
- lastPosition → int
-
The (exclusive) last index of this entity in the source.
no setterinherited
- length → int
-
Available on SyntacticEntity, provided by the SyntacticLengthExtension extension
The length of this entity, in characters.no setter - lexeme → String
-
no setterinherited
- match ↔ Token?
-
For opening tokens (e.g.
(
), the matching closing token ()
), and vice-versa.getter/setter pairinherited - next ↔ Token?
-
getter/setter pairinherited
- previous ↔ Token?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → FileSpan
-
The piece of text forming this syntactic entity.
finalinherited
- synthetic → bool
-
Whether this identifier token is synthetic. We sometimes convert
KeywordTokens to identifiers if they're unambiguous, in which case
synthetic will be true on this token because it was not scanned as such.
final
- type → TokenType
-
finalinherited
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