NoTokenType class

A placeholder token type for when there are no tokens.

Inheritance

Constructors

NoTokenType()
Creates the placeholder.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isMultiChar bool
Can the token be composed of multiple characters.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createToken(ComputeContext ctx, String rawValue, int globalOffset) Token<TokenType>
Creates the token.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(ComputeContext ctx, Token<TokenType>? previousToken, String rawBuildingToken, Token<TokenType>? nextToken) bool
Signals the caller if the token type is compatible with the next and previous tokens.
inherited
validateNext(ComputeContext ctx, String rawBuildingToken, Token<TokenType>? nextToken) bool
Signals the caller if the token type is compatible with the next token.
override
validateNextType(ComputeContext ctx, String rawBuildingToken, TokenType? nextTokenType) bool
Signals the caller if the token type is compatible with the next type of token.
override
validatePrevious(ComputeContext ctx, String rawBuildingToken, Token<TokenType>? previousToken) bool
Signals the caller if the token type is compatible with the previous token.
override
validatePreviousType(ComputeContext ctx, String rawBuildingToken, TokenType? previousTokenType) bool
Signals the caller is the token type is compatible with the previous type of token.
override
validateType(ComputeContext ctx, TokenType? previousTokenType, String rawBuildingToken, TokenType? nextTokenType) bool
Signals the caller if the token type is compatible with the next and previous types of tokens.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited