toToken method

Token toToken(
  1. TokenType type, {
  2. String? lexeme,
})

Implementation

Token toToken(TokenType type, {String? lexeme}) =>
    Token(type, lexeme ?? this.lexeme, pos);