Constructors
constructor
- new Token(kind, start, end, line, column, value?): Token
Parameters
start: number
end: number
line: number
column: number
Optional
value: string
Properties
Readonly
column
column: number
Readonly
end
end: number
Readonly
kind
Readonly
line
line: number
Readonly
next
Readonly
prev
Readonly
start
start: number
Readonly
value
value: string
Accessors
[toStringTag]
- get [toStringTag](): string
Returns string
Methods
toJSON
- toJSON(): {
column: number;
kind: TokenKind;
line: number;
value?: string;
} Returns {
column: number;
kind: TokenKind;
line: number;
value?: string;
}
column: number
line: number
Optional
value?: string
Represents a range of characters represented by a lexical token within a Source.