addToken2 method

void addToken2(
  1. TokenType type,
  2. String lexeme
)

Implementation

void addToken2(TokenType type, String lexeme) {
  tokens.add(Token(type, lexeme, null, line, sourceFile: sourceFile));
}