validate method
bool
validate(
- ComputeContext ctx,
- Token<
TokenType> ? previousToken, - String rawBuildingToken,
- Token<
TokenType> ? nextToken,
inherited
Signals the caller if the token type is compatible with the next and previous tokens.
Implementation
bool validate(ComputeContext ctx, Token? previousToken,
String rawBuildingToken, Token? nextToken) {
return validatePrevious(ctx, rawBuildingToken, previousToken) &&
validateNext(ctx, rawBuildingToken, nextToken);
}