-
beforeSynthetic
↔ Token?
-
The token before this synthetic token,
or
null
if this is not a synthetic )
, ]
, }
, or >
token.
getter/setter pairoverride
-
charEnd
→ int
-
The character offset of the end of this token within the source text.
no setteroverride
-
charOffset
→ int
-
The character offset of the start of this token within the source text.
no setteroverride
-
end
→ int
-
Return the offset from the beginning of the file to the character after the
last character of the syntactic entity.
no setter
-
endGroup
→ Token?
-
The token that corresponds to this token, or
null
if this token is not
the first of a pair of matching tokens (such as parentheses).
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isEof
→ bool
-
Return
true
if this token represents an end of file.
no setteroverride
-
isIdentifier
→ bool
-
True if this token is an identifier. Some keywords allowed as identifiers,
see implementation in
KeywordToken
.
no setteroverride
-
isKeyword
→ bool
-
True if this token is a keyword. Some keywords allowed as identifiers,
see implementation in
KeywordToken
.
no setteroverride
-
isKeywordOrIdentifier
→ bool
-
True if this token is a keyword or an identifier.
no setteroverride
-
isOperator
→ bool
-
Return
true
if this token represents an operator.
no setteroverride
-
isSynthetic
→ bool
-
Return
true
if this token is a synthetic token. A synthetic token is a
token that was introduced by the parser in order to recover from an error
in the code.
no setteroverride
-
kind
→ int
-
The kind enum of this token as determined by its type.
no setteroverride
-
length
→ int
-
Return the number of characters in the syntactic entity's source range.
no setter
-
lexeme
→ String
-
Return the lexeme that represents this token.
no setteroverride
-
next
↔ Token?
-
Return the next token in the token stream.
getter/setter pairoverride
-
offset
↔ int
-
Return the offset from the beginning of the file to the first character in
the syntactic entity.
getter/setter pairoverride-setter
-
Return the first comment in the list of comments that precede this token,
or
null
if there are no comments preceding this token. Additional
comments can be reached by following the token stream using next until
null
is returned.
getter/setter pairoverride-getter
-
previous
↔ Token?
-
Return the previous token in the token stream.
getter/setter pairoverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
→ TokenType
-
Return the type of the token.
final