Skip to main content
Latest
class Location
import { Location } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.ts";

Contains a range of UTF-8 character offsets and token references that identify the region of the source from which the AST derived.

Constructors

new
Location(
startToken: Token,
endToken: Token,
source: Source,
)

Properties

readonly
end: number

The character offset at which this Node ends.

readonly
endToken: Token

The Token at which this Node ends.

readonly
source: Source

The Source document the AST represents.

readonly
start: number

The character offset at which this Node begins.

readonly
startToken: Token

The Token at which this Node begins.

readonly
[Symbol.toStringTag]: string

Methods

toJSON(): { start: number; end: number; }