import * as mod from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/language/index.d.ts";
Classes
Given a Source object, this returns a Lexer for that source. A Lexer is a stateful stream generator in that every time it is advanced, it returns the next token in the Source. Assuming the source lexes, the final Token emitted by the lexer will be of kind EOF, after which the lexer will repeatedly return the same EOF token whenever called. | |
Contains a range of UTF-8 character offsets and token references that identify the region of the source from which the AST derived. | |
A representation of source input to GraphQL.
| |
Represents a range of characters represented by a lexical token within a Source. |
Variables
The set of allowed directive location values. | |
v Kind | The set of allowed kind values for AST nodes. |
An exported enum describing the different kinds of tokens that the lexer emits. |
Functions
Takes a Source and a UTF-8 character offset, and returns the corresponding line and column as a SourceLocation. | |
Given a visitor instance, if it is leaving or not, and a node kind, return the function the visitor runtime should call. | |
Given a GraphQL source, parses it into a Document. Throws GraphQLError if a syntax error is encountered. | |
Given a string containing a GraphQL Type (ex. | |
Given a string containing a GraphQL value, parse the AST for that value. Throws GraphQLError if a syntax error is encountered. | |
Converts an AST into a string, using one set of reasonable formatting rules. | |
Render a helpful description of the location in the GraphQL Source document. | |
Render a helpful description of the location in the GraphQL Source document. | |
visit() will walk through an AST using a depth first traversal, calling the visitor's enter function at each node in the traversal, and calling the leave function after visiting that node and all of its child nodes. | |
Creates a new visitor instance which delegates to many visitors to run in parallel. Each visitor will be visited for each node before moving on. |
Interfaces
Utility type listing all nodes indexed by their kind. | |
Configuration options to control parser behavior | |
Represents a location in a Source. | |
Type Aliases
The list of all possible AST node types. | |
A visitor is provided to visit, it contains the collection of relevant functions to be called during the visitor's traversal. | |
The enum type representing the directive location values. | |
The enum type representing the possible kind values of AST nodes. | |
The enum type representing the token kinds values. | |
A visitor is comprised of visit functions, which are called on each node during the visitor's traversal. | |
A KeyMap describes each the traversable properties of each kind of node. |