Token class
- Implemented types
-
- Implementers
- Available extensions
Properties
-
firstPosition
→ int
-
The first position of this entity, as an zero-based offset in the file it
was read from.
no setteroverride
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasSpan
→ bool
-
Whether this entity has a source span associated with it.
no setteroverride
-
index
↔ int
-
The index of this Token in the list of tokens scanned.
getter/setter pair
-
invisibleToParser
→ bool
-
Whether this token should be invisible to the parser. We use this for
comment tokens.
no setter
-
lastPosition
→ int
-
The (exclusive) last index of this entity in the source.
no setteroverride
-
lexeme
→ String
-
no setter
-
next
↔ Token?
-
getter/setter pair
-
previous
↔ Token?
-
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
span
→ FileSpan
-
The piece of text forming this syntactic entity.
final
-
synthetic
→ bool
-
Whether this entity is synthetic, meaning that it doesn't appear in the
actual source.
no setteroverride
-
type
→ TokenType
-
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override