Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/graphql.ts>GraphQL.Location

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
class GraphQL.Location
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { Location } = GraphQL;

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.

Methods

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