Skip to main content
Module

x/apex_core/ast.ts>Token

JavaScript / Node.js support for the Apex language
Latest
class Token
import { Token } from "https://deno.land/x/apex_core@v0.1.5/ast.ts";

Constructors

new
Token(
kind: number,
start: number,
end: number,
prev: Token | null,
value?: string,
)

Properties

end: number

The character offset at which this Node ends.

kind: number

The kind of Token.

next: Token | null
prev: Token | null

Tokens exist as nodes in a double-linked-list amongst all tokens including ignored tokens. is always the first node and the last.

start: number

The character offset at which this Node begins.

value: string

For non-punctuation tokens, represents the interpreted value of the token.