import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { Token } = GraphQL;
Represents a range of characters represented by a lexical token within a Source.
Constructors
new
Token(kind: TokenKindEnum,
start: number,
end: number,
line: number,
column: number,
prev: Token | null,
value?: string,
Properties
readonly
kind: TokenKindEnumThe kind of Token.
readonly
next: Token | nullreadonly
prev: Token | nullTokens exist as nodes in a double-linked-list amongst all tokens including ignored tokens. is always the first node and the last.
Methods
toJSON(): { kind: TokenKindEnum; value: string | undefined; line: number; column: number; }