TokenType constructor

const TokenType(
  1. String lexeme,
  2. String name,
  3. int precedence,
  4. int kind,
  5. {bool isModifier = false,
  6. bool isOperator = false,
  7. bool isTopLevelKeyword = false,
  8. bool isUserDefinableOperator = false,
  9. String stringValue = 'unspecified'}
)

Implementation

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