105 lines
2.4 KiB
Plaintext
105 lines
2.4 KiB
Plaintext
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
*/
|
|
|
|
export { getLocation } from './location';
|
|
export type { SourceLocation } from './location';
|
|
export { Kind } from './kinds';
|
|
export type { KindEnum } from './kinds';
|
|
export { createLexer, TokenKind } from './lexer';
|
|
export { parse, parseValue, parseType } from './parser';
|
|
export { print } from './printer';
|
|
export { Source } from './source';
|
|
export {
|
|
visit,
|
|
visitInParallel,
|
|
visitWithTypeInfo,
|
|
getVisitFn,
|
|
BREAK,
|
|
} from './visitor';
|
|
export type { ASTVisitor, Visitor, VisitFn, VisitorKeyMap } from './visitor';
|
|
|
|
export type { Lexer, TokenKindEnum } from './lexer';
|
|
export type { ParseOptions } from './parser';
|
|
|
|
export type {
|
|
Location,
|
|
Token,
|
|
ASTNode,
|
|
ASTKindToNode,
|
|
// Each kind of AST node
|
|
NameNode,
|
|
DocumentNode,
|
|
DefinitionNode,
|
|
ExecutableDefinitionNode,
|
|
OperationDefinitionNode,
|
|
OperationTypeNode,
|
|
VariableDefinitionNode,
|
|
VariableNode,
|
|
SelectionSetNode,
|
|
SelectionNode,
|
|
FieldNode,
|
|
ArgumentNode,
|
|
FragmentSpreadNode,
|
|
InlineFragmentNode,
|
|
FragmentDefinitionNode,
|
|
ValueNode,
|
|
IntValueNode,
|
|
FloatValueNode,
|
|
StringValueNode,
|
|
BooleanValueNode,
|
|
NullValueNode,
|
|
EnumValueNode,
|
|
ListValueNode,
|
|
ObjectValueNode,
|
|
ObjectFieldNode,
|
|
DirectiveNode,
|
|
TypeNode,
|
|
NamedTypeNode,
|
|
ListTypeNode,
|
|
NonNullTypeNode,
|
|
TypeSystemDefinitionNode,
|
|
SchemaDefinitionNode,
|
|
OperationTypeDefinitionNode,
|
|
TypeDefinitionNode,
|
|
ScalarTypeDefinitionNode,
|
|
ObjectTypeDefinitionNode,
|
|
FieldDefinitionNode,
|
|
InputValueDefinitionNode,
|
|
InterfaceTypeDefinitionNode,
|
|
UnionTypeDefinitionNode,
|
|
EnumTypeDefinitionNode,
|
|
EnumValueDefinitionNode,
|
|
InputObjectTypeDefinitionNode,
|
|
DirectiveDefinitionNode,
|
|
TypeSystemExtensionNode,
|
|
SchemaExtensionNode,
|
|
TypeExtensionNode,
|
|
ScalarTypeExtensionNode,
|
|
ObjectTypeExtensionNode,
|
|
InterfaceTypeExtensionNode,
|
|
UnionTypeExtensionNode,
|
|
EnumTypeExtensionNode,
|
|
InputObjectTypeExtensionNode,
|
|
} from './ast';
|
|
|
|
export {
|
|
isDefinitionNode,
|
|
isExecutableDefinitionNode,
|
|
isSelectionNode,
|
|
isValueNode,
|
|
isTypeNode,
|
|
isTypeSystemDefinitionNode,
|
|
isTypeDefinitionNode,
|
|
isTypeSystemExtensionNode,
|
|
isTypeExtensionNode,
|
|
} from './predicates';
|
|
|
|
export { DirectiveLocation } from './directiveLocation';
|
|
export type { DirectiveLocationEnum } from './directiveLocation';
|