TokenIdentifier constructor

TokenIdentifier({
  1. required String lexeme,
  2. required int line,
  3. required int column,
  4. required int offset,
  5. Token? previous,
  6. Token? next,
  7. bool isMarked = false,
})

Implementation

TokenIdentifier(
    {required super.lexeme,
    required super.line,
    required super.column,
    required super.offset,
    super.previous,
    super.next,
    this.isMarked = false})
    : literal = isMarked ? lexeme.substring(1, lexeme.length - 1) : lexeme;