Token constructor

const Token(
  1. TokenKind kind,
  2. String text,
  3. SourceSpan span, {
  4. bool noexpand = false,
  5. bool incomplete = false,
})

Creates a token.

Implementation

const Token(
  this.kind,
  this.text,
  this.span, {
  this.noexpand = false,
  this.incomplete = false,
});