Token constructor

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

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

Implementation

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