Skip to main content
Module

x/apex_core/mod.ts>ast.Token

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

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.