Token constructor

Token(
  1. TokenType type,
  2. int offset, [
  3. CommentToken? precedingComment
])

Initialize a newly created token to have the given type and offset.

Implementation

factory Token(TokenType type, int offset, [CommentToken? precedingComment]) =
    SimpleToken;