Skip to main content
Module

x/graphql_deno/mod.ts>Location

GraphQL-JS ported to Deno
Latest
class Location
import { Location } from "https://deno.land/x/graphql_deno@v15.0.0/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.