const
TokenType(- String lexeme,
- String name,
- int precedence,
- int kind,
- {TokenType? binaryOperatorOfCompoundAssignment,
- bool isBinaryOperator = false,
- bool isModifier = false,
- bool isOperator = false,
- bool isTopLevelKeyword = false,
- bool isUserDefinableOperator = false,
- String? stringValue = 'unspecified'}
)
Implementation
const TokenType(this.lexeme, this.name, this.precedence, this.kind,
{this.binaryOperatorOfCompoundAssignment,
this.isBinaryOperator: false,
this.isModifier: false,
this.isOperator: false,
this.isTopLevelKeyword: false,
this.isUserDefinableOperator: false,
String? stringValue: 'unspecified'})
: this.stringValue = stringValue == 'unspecified' ? lexeme : stringValue;