Hierarchy (view full)

Constructors

Properties

extraTokens: ExtraToken[] = []

All the newlines and comments that appear before this token and should be preserved when printing the AST.

lexeme: string
span: CodeSpan
startWithWhitespace: CodeLocation

Start of this token, including all the whitespace before it.

Set externally in the lexer.

type: TokenType

Methods

  • Returns boolean