Token.fromStreamChar constructor

Token.fromStreamChar(
  1. TokenType type,
  2. StreamChar char
)

Implementation

Token.fromStreamChar(this.type, StreamChar char)
  : lexeme = char.lexeme,
    pos = char.pos;