SimpleTokenCreator mixin

A helper mixing to create simple tokens which cannot be computed

Superclass constraints
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
isMultiChar bool
Can the token be composed of multiple characters.
no setterinherited
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.
inherited
validateNextType(ComputeContext ctx, String rawBuildingToken, TokenType? nextTokenType) bool
Signals the caller if the token type is compatible with the next type of token.
inherited
validatePrevious(ComputeContext ctx, String rawBuildingToken, Token<TokenType>? previousToken) bool
Signals the caller if the token type is compatible with the previous token.
inherited
validatePreviousType(ComputeContext ctx, String rawBuildingToken, TokenType? previousTokenType) bool
Signals the caller is the token type is compatible with the previous type of token.
inherited
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