lookup

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentSetIterable

type ArgumentSetIterable struct {
	Iterable
}

func (*ArgumentSetIterable) Value

func (a *ArgumentSetIterable) Value() (argumentSet document.ArgumentSet, parent int)

type ArgumentsIterable

type ArgumentsIterable struct {
	// contains filtered or unexported fields
}

func (*ArgumentsIterable) Next

func (a *ArgumentsIterable) Next() bool

func (*ArgumentsIterable) Value

func (a *ArgumentsIterable) Value() (argument document.Argument, ref int)

type DirectiveIterable

type DirectiveIterable struct {
	// contains filtered or unexported fields
}

func (*DirectiveIterable) Next

func (d *DirectiveIterable) Next() bool

func (*DirectiveIterable) Value

func (d *DirectiveIterable) Value() (directive document.Directive, ref int)

type DirectiveSetIterable

type DirectiveSetIterable struct {
	Iterable
}

func (*DirectiveSetIterable) Value

func (d *DirectiveSetIterable) Value() (set document.DirectiveSet, parent int)

type EnumTypeDefinitionIterable added in v1.2.0

type EnumTypeDefinitionIterable struct {
	// contains filtered or unexported fields
}

func (*EnumTypeDefinitionIterable) Next added in v1.2.0

func (e *EnumTypeDefinitionIterable) Next() bool

func (*EnumTypeDefinitionIterable) Value added in v1.2.0

func (e *EnumTypeDefinitionIterable) Value() (ref int, definition document.EnumTypeDefinition)

type EnumValueDefinitionIterator

type EnumValueDefinitionIterator struct {
	// contains filtered or unexported fields
}

func (*EnumValueDefinitionIterator) Next

func (*EnumValueDefinitionIterator) Value

func (e *EnumValueDefinitionIterator) Value() (definition document.EnumValueDefinition, ref int)

type FieldsIterable

type FieldsIterable struct {
	Iterable
}

func (*FieldsIterable) Value

func (f *FieldsIterable) Value() (field document.Field, ref, parent int)

type FieldsIterator

type FieldsIterator struct {
	// contains filtered or unexported fields
}

func (*FieldsIterator) Next

func (f *FieldsIterator) Next() bool

func (*FieldsIterator) Value

func (f *FieldsIterator) Value() (field document.Field, ref int)

type FragmentDefinitionIterable added in v1.0.1

type FragmentDefinitionIterable struct {
	Iterable
}

func (*FragmentDefinitionIterable) Value added in v1.0.1

type FragmentSpreadIterable

type FragmentSpreadIterable struct {
	// contains filtered or unexported fields
}

func (*FragmentSpreadIterable) Next

func (f *FragmentSpreadIterable) Next() bool

func (*FragmentSpreadIterable) Value

func (f *FragmentSpreadIterable) Value() (spread document.FragmentSpread, ref int)

type InlineFragmentIterable

type InlineFragmentIterable struct {
	// contains filtered or unexported fields
}

func (*InlineFragmentIterable) Next

func (i *InlineFragmentIterable) Next() bool

func (*InlineFragmentIterable) Value

func (i *InlineFragmentIterable) Value() (inlineFragment document.InlineFragment, ref int)

type InputValueDefinitionIterator

type InputValueDefinitionIterator struct {
	// contains filtered or unexported fields
}

func (*InputValueDefinitionIterator) Next

func (*InputValueDefinitionIterator) Value

func (i *InputValueDefinitionIterator) Value() (definition document.InputValueDefinition, ref int)

type Iterable

type Iterable struct {
	// contains filtered or unexported fields
}

func (*Iterable) Next

func (i *Iterable) Next() bool

type Lookup

type Lookup struct {
	// contains filtered or unexported fields
}

Lookup is a helper to easily look things up in a parsed definition

func New

func New(p *parser.Parser, refPoolSize int) *Lookup

func (*Lookup) Argument

func (l *Lookup) Argument(i int) document.Argument

func (*Lookup) ArgumentByIndexAndName

func (l *Lookup) ArgumentByIndexAndName(index []int, name int) (document.Argument, bool)

func (*Lookup) ArgumentSet

func (l *Lookup) ArgumentSet(ref int) document.ArgumentSet

func (*Lookup) ArgumentsAreEqual

func (l *Lookup) ArgumentsAreEqual(first []int, second []int) bool

func (*Lookup) ArgumentsDefinition

func (l *Lookup) ArgumentsDefinition(i int) document.ArgumentsDefinition

func (*Lookup) ArgumentsIterable

func (l *Lookup) ArgumentsIterable(refs []int) ArgumentsIterable

func (*Lookup) ByteSlice

func (l *Lookup) ByteSlice(reference document.ByteSliceReference) document.ByteSlice

func (*Lookup) ByteSliceName added in v1.2.0

func (l *Lookup) ByteSliceName(slice []byte) (name int)

func (*Lookup) CachedName

func (l *Lookup) CachedName(i int) document.ByteSlice

func (*Lookup) Directive

func (l *Lookup) Directive(i int) document.Directive

func (*Lookup) DirectiveDefinitionByName

func (l *Lookup) DirectiveDefinitionByName(name int) (document.DirectiveDefinition, bool)

func (*Lookup) DirectiveIterable

func (l *Lookup) DirectiveIterable(refs []int) DirectiveIterable

func (*Lookup) DirectiveLocationFromNode

func (l *Lookup) DirectiveLocationFromNode(node Node) document.DirectiveLocation

func (*Lookup) DirectiveSet

func (l *Lookup) DirectiveSet(ref int) document.DirectiveSet

func (*Lookup) EnumTypeDefinitionByName

func (l *Lookup) EnumTypeDefinitionByName(name int) (document.EnumTypeDefinition, bool)

func (*Lookup) EnumTypeDefinitionContainsValue

func (l *Lookup) EnumTypeDefinitionContainsValue(definition document.EnumTypeDefinition, enumValue int) bool

func (*Lookup) EnumTypeDefinitionIterable added in v1.2.0

func (l *Lookup) EnumTypeDefinitionIterable(refs []int) EnumTypeDefinitionIterable

func (*Lookup) EnumValueDefinitionIterator

func (l *Lookup) EnumValueDefinitionIterator(refs []int) EnumValueDefinitionIterator

func (Lookup) Field

func (l Lookup) Field(i int) document.Field

func (*Lookup) FieldDefinitionByNameFromIndex

func (l *Lookup) FieldDefinitionByNameFromIndex(index []int, name int) (document.FieldDefinition, bool)

func (*Lookup) FieldNamesAndAliasesAreEqual

func (l *Lookup) FieldNamesAndAliasesAreEqual(left, right document.Field) bool

func (*Lookup) FieldResponseNamesAreEqual

func (l *Lookup) FieldResponseNamesAreEqual(left, right document.Field) bool

func (*Lookup) FieldSelectionsArePossible

func (l *Lookup) FieldSelectionsArePossible(onTypeName int, selections document.SelectionSet) bool

func (*Lookup) FieldType

func (l *Lookup) FieldType(typeName int, fieldName int) (document.Type, bool)

func (*Lookup) FieldsDeepEqual

func (l *Lookup) FieldsDeepEqual(left, right document.Field) bool

func (*Lookup) FieldsDefinitionFromNamedType

func (l *Lookup) FieldsDefinitionFromNamedType(name int) (fields []int)

func (*Lookup) FieldsIterator

func (l *Lookup) FieldsIterator(i []int) FieldsIterator

func (*Lookup) FragmentDefinition

func (l *Lookup) FragmentDefinition(i int) document.FragmentDefinition

func (*Lookup) FragmentDefinitionByName

func (l *Lookup) FragmentDefinitionByName(name int) (definition document.FragmentDefinition, index int, valid bool)

func (*Lookup) FragmentDefinitions

func (l *Lookup) FragmentDefinitions() document.FragmentDefinitions

func (*Lookup) FragmentSelectionsArePossible

func (l *Lookup) FragmentSelectionsArePossible(onTypeName int, selections document.SelectionSet) bool

func (*Lookup) FragmentSpread

func (l *Lookup) FragmentSpread(i int) document.FragmentSpread

func (*Lookup) FragmentSpreadIterable

func (l *Lookup) FragmentSpreadIterable(refs []int) FragmentSpreadIterable

func (*Lookup) FragmentSpreads

func (l *Lookup) FragmentSpreads() document.FragmentSpreads

func (*Lookup) FragmentSpreadsDeepEqual

func (l *Lookup) FragmentSpreadsDeepEqual(left, right document.FragmentSpread) bool

func (*Lookup) FragmentSpreadsRootNumFields

func (l *Lookup) FragmentSpreadsRootNumFields(spreadRefs []int) (amount int)

func (*Lookup) HasFragmentDefinitions added in v1.0.1

func (l *Lookup) HasFragmentDefinitions() bool

func (*Lookup) HasOperationDefinitions added in v1.0.1

func (l *Lookup) HasOperationDefinitions() bool

func (*Lookup) InlineFragment

func (l *Lookup) InlineFragment(i int) document.InlineFragment

func (*Lookup) InlineFragmentIterable

func (l *Lookup) InlineFragmentIterable(refs []int) InlineFragmentIterable

func (*Lookup) InlineFragmentRootNumFields

func (l *Lookup) InlineFragmentRootNumFields(inlineFragmentRefs []int) (amount int)

func (*Lookup) InlineFragmentsDeepEqual

func (l *Lookup) InlineFragmentsDeepEqual(left, right document.InlineFragment) bool

TODO: add directives

func (*Lookup) InputObjectTypeDefinitionByName

func (l *Lookup) InputObjectTypeDefinitionByName(name int) (document.InputObjectTypeDefinition, bool)

func (*Lookup) InputValueDefinitionByNameAndIndex

func (l *Lookup) InputValueDefinitionByNameAndIndex(name int, i []int) (document.InputValueDefinition, bool)

func (*Lookup) InputValueDefinitionHasDefaultValue

func (l *Lookup) InputValueDefinitionHasDefaultValue(definition document.InputValueDefinition) bool

func (*Lookup) InputValueDefinitionIsRequired

func (l *Lookup) InputValueDefinitionIsRequired(inputValue document.InputValueDefinition) bool

func (*Lookup) InputValueDefinitionIterator

func (l *Lookup) InputValueDefinitionIterator(refs []int) InputValueDefinitionIterator

func (*Lookup) IntegersContainsMember

func (l *Lookup) IntegersContainsMember(integers []int, possibleMember int) bool

func (*Lookup) InterfaceTypeDefinitionByName

func (l *Lookup) InterfaceTypeDefinitionByName(name int) (document.InterfaceTypeDefinition, bool)

func (*Lookup) IsFragmentDefinitionUsedInOperation

func (l *Lookup) IsFragmentDefinitionUsedInOperation(name int) bool

func (*Lookup) IsLeafNode

func (l *Lookup) IsLeafNode(typeName int) bool

func (*Lookup) IsUniqueFragmentName

func (l *Lookup) IsUniqueFragmentName(fragmentIndex int, name int) bool

func (*Lookup) ListValue

func (l *Lookup) ListValue(ref int) document.ListValue

func (*Lookup) MutationObjectTypeDefinition

func (l *Lookup) MutationObjectTypeDefinition() (document.ObjectTypeDefinition, bool)

func (*Lookup) ObjectField

func (l *Lookup) ObjectField(i int) document.ObjectField

func (*Lookup) ObjectFieldByIndexAndName

func (l *Lookup) ObjectFieldByIndexAndName(index []int, name int) (document.ObjectField, bool)

func (*Lookup) ObjectFieldsIterator

func (l *Lookup) ObjectFieldsIterator(refs []int) ObjectFieldsIterator

func (*Lookup) ObjectTypeDefinition added in v1.2.0

func (l *Lookup) ObjectTypeDefinition(ref int) document.ObjectTypeDefinition

func (*Lookup) ObjectTypeDefinitionByName

func (l *Lookup) ObjectTypeDefinitionByName(name int) (definition document.ObjectTypeDefinition, exists bool)

func (*Lookup) ObjectTypeDefinitionImplementsInterface

func (l *Lookup) ObjectTypeDefinitionImplementsInterface(definition document.ObjectTypeDefinition, interfaceName int) bool

func (*Lookup) ObjectTypeDefinitionIterable added in v1.2.0

func (l *Lookup) ObjectTypeDefinitionIterable(refs []int) ObjectTypeDefinitionIterable

func (*Lookup) ObjectValue added in v1.0.1

func (l *Lookup) ObjectValue(ref int) document.ObjectValue

func (*Lookup) OperationDefinition

func (l *Lookup) OperationDefinition(i int) document.OperationDefinition

func (*Lookup) OperationDefinitions

func (l *Lookup) OperationDefinitions() document.OperationDefinitions

func (*Lookup) OperationTypeName

func (l *Lookup) OperationTypeName(definition document.OperationDefinition) int

func (*Lookup) PossibleSelectionTypes

func (l *Lookup) PossibleSelectionTypes(typeName int, possibleTypeNames *[]int)

func (*Lookup) QueryObjectTypeDefinition

func (l *Lookup) QueryObjectTypeDefinition() (document.ObjectTypeDefinition, bool)

func (*Lookup) ResetPool

func (l *Lookup) ResetPool()

func (*Lookup) ScalarTypeDefinitionByName

func (l *Lookup) ScalarTypeDefinitionByName(name int) (document.ScalarTypeDefinition, bool)

func (*Lookup) SelectionSet

func (l *Lookup) SelectionSet(ref int) document.SelectionSet

func (*Lookup) SelectionSetCollectedFields

func (l *Lookup) SelectionSetCollectedFields(set document.SelectionSet, setTypeName int) SelectionSetFieldsIterator

func (*Lookup) SelectionSetContainsFragmentSpread

func (l *Lookup) SelectionSetContainsFragmentSpread(set document.SelectionSet, spreadIndex int) bool

func (*Lookup) SelectionSetContentsIterator added in v1.0.1

func (l *Lookup) SelectionSetContentsIterator(ref int) SelectionSetContentsIterator

func (*Lookup) SelectionSetDeepEqual

func (l *Lookup) SelectionSetDeepEqual(left, right document.SelectionSet) bool

func (*Lookup) SelectionSetDifferingSelectionSetIterator

func (l *Lookup) SelectionSetDifferingSelectionSetIterator(set document.SelectionSet, ignoreTypeName int) SelectionSetDifferingSelectionSetIterator

func (*Lookup) SelectionSetHasSelections

func (l *Lookup) SelectionSetHasSelections(set document.SelectionSet) bool

func (*Lookup) SelectionSetNumRootFields

func (l *Lookup) SelectionSetNumRootFields(set document.SelectionSet) int

func (*Lookup) SelectionSetsAreOfSameResponseShape

func (l *Lookup) SelectionSetsAreOfSameResponseShape(leftSet, rightSet TypedSet) bool

func (*Lookup) SetParser

func (l *Lookup) SetParser(p *parser.Parser)

func (*Lookup) SubscriptionObjectTypeDefinition

func (l *Lookup) SubscriptionObjectTypeDefinition() (document.ObjectTypeDefinition, bool)

func (*Lookup) Type

func (l *Lookup) Type(i int) document.Type

func (*Lookup) TypeIsScalarOrEnum

func (l *Lookup) TypeIsScalarOrEnum(name int) bool

func (*Lookup) TypeIsValidFragmentTypeCondition

func (l *Lookup) TypeIsValidFragmentTypeCondition(name int) bool

func (*Lookup) TypeSatisfiesTypeSystemType

func (l *Lookup) TypeSatisfiesTypeSystemType(typeSystemTypeDefinition document.Type, executableTypeDefinition document.Type) bool

func (*Lookup) TypesAreEqual

func (l *Lookup) TypesAreEqual(left, right document.Type) bool

func (*Lookup) UnionTypeDefinitionByName

func (l *Lookup) UnionTypeDefinitionByName(name int) (document.UnionTypeDefinition, bool)

func (*Lookup) UnionTypeDefinitionContainsType

func (l *Lookup) UnionTypeDefinitionContainsType(definition document.UnionTypeDefinition, typeName int) bool

func (*Lookup) UnionTypeDefinitionNamesContainingMember

func (l *Lookup) UnionTypeDefinitionNamesContainingMember(memberName int, nameRefs *[]int)

func (*Lookup) UnwrappedNamedType

func (l *Lookup) UnwrappedNamedType(docType document.Type) document.Type

func (*Lookup) Value

func (l *Lookup) Value(i int) document.Value

func (*Lookup) ValueIsValid

func (l *Lookup) ValueIsValid(value document.Value, typeSystemType document.Type, variableDefinitionRefs []int, inputValueDefinitionHasDefaultValue bool) bool

func (*Lookup) ValueListsAreEqual

func (l *Lookup) ValueListsAreEqual(first, second int) bool

func (*Lookup) ValueObjectsAreEqual

func (l *Lookup) ValueObjectsAreEqual(first, second int) bool

func (*Lookup) ValuesAreEqual

func (l *Lookup) ValuesAreEqual(first, second int) bool

func (*Lookup) VariableDefinition

func (l *Lookup) VariableDefinition(variableName int, variableDefinitionRefs []int) (document.VariableDefinition, bool)

func (*Lookup) VariableDefinitionIterator

func (l *Lookup) VariableDefinitionIterator(refs []int) VariableDefinitionsIterator

type Node

type Node struct {
	Parent   int
	Kind     NodeKind
	Ref      int
	Position position.Position
}

type NodeKind

type NodeKind int

ENUM( UNKNOWN QUERY MUTATION SUBSCRIPTION FIELD FRAGMENT_DEFINITION FRAGMENT_SPREAD INLINE_FRAGMENT SCHEMA SCALAR SCALAR_TYPE_DEFINITION OBJECT OBJECT_TYPE_DEFINITION FIELD_DEFINITION ARGUMENT_DEFINITION INTERFACE INTERFACE_TYPE_DEFINITION UNION UNION_TYPE_DEFINITION ENUM ENUM_VALUE ENUM_TYPE_DEFINITION INPUT_OBJECT INPUT_OBJECT_TYPE_DEFINITION INPUT_FIELD_DEFINITION OPERATION_DEFINITION DIRECTIVE_SET DIRECTIVE DIRECTIVE_DEFINITION SELECTION_SET ARGUMENT ARGUMENT_SET )

const (
	// UNKNOWN is a NodeKind of type UNKNOWN
	UNKNOWN NodeKind = iota
	// QUERY is a NodeKind of type QUERY
	QUERY
	// MUTATION is a NodeKind of type MUTATION
	MUTATION
	// SUBSCRIPTION is a NodeKind of type SUBSCRIPTION
	SUBSCRIPTION
	// FIELD is a NodeKind of type FIELD
	FIELD
	// FRAGMENT_DEFINITION is a NodeKind of type FRAGMENT_DEFINITION
	FRAGMENT_DEFINITION
	// FRAGMENT_SPREAD is a NodeKind of type FRAGMENT_SPREAD
	FRAGMENT_SPREAD
	// INLINE_FRAGMENT is a NodeKind of type INLINE_FRAGMENT
	INLINE_FRAGMENT
	// SCHEMA is a NodeKind of type SCHEMA
	SCHEMA
	// SCALAR is a NodeKind of type SCALAR
	SCALAR
	// SCALAR_TYPE_DEFINITION is a NodeKind of type SCALAR_TYPE_DEFINITION
	SCALAR_TYPE_DEFINITION
	// OBJECT is a NodeKind of type OBJECT
	OBJECT
	// OBJECT_TYPE_DEFINITION is a NodeKind of type OBJECT_TYPE_DEFINITION
	OBJECT_TYPE_DEFINITION
	// FIELD_DEFINITION is a NodeKind of type FIELD_DEFINITION
	FIELD_DEFINITION
	// ARGUMENT_DEFINITION is a NodeKind of type ARGUMENT_DEFINITION
	ARGUMENT_DEFINITION
	// INTERFACE is a NodeKind of type INTERFACE
	INTERFACE
	// INTERFACE_TYPE_DEFINITION is a NodeKind of type INTERFACE_TYPE_DEFINITION
	INTERFACE_TYPE_DEFINITION
	// UNION is a NodeKind of type UNION
	UNION
	// UNION_TYPE_DEFINITION is a NodeKind of type UNION_TYPE_DEFINITION
	UNION_TYPE_DEFINITION
	// ENUM is a NodeKind of type ENUM
	ENUM
	// ENUM_VALUE is a NodeKind of type ENUM_VALUE
	ENUM_VALUE
	// ENUM_TYPE_DEFINITION is a NodeKind of type ENUM_TYPE_DEFINITION
	ENUM_TYPE_DEFINITION
	// INPUT_OBJECT is a NodeKind of type INPUT_OBJECT
	INPUT_OBJECT
	// INPUT_OBJECT_TYPE_DEFINITION is a NodeKind of type INPUT_OBJECT_TYPE_DEFINITION
	INPUT_OBJECT_TYPE_DEFINITION
	// INPUT_FIELD_DEFINITION is a NodeKind of type INPUT_FIELD_DEFINITION
	INPUT_FIELD_DEFINITION
	// OPERATION_DEFINITION is a NodeKind of type OPERATION_DEFINITION
	OPERATION_DEFINITION
	// DIRECTIVE_SET is a NodeKind of type DIRECTIVE_SET
	DIRECTIVE_SET
	// DIRECTIVE is a NodeKind of type DIRECTIVE
	DIRECTIVE
	// DIRECTIVE_DEFINITION is a NodeKind of type DIRECTIVE_DEFINITION
	DIRECTIVE_DEFINITION
	// SELECTION_SET is a NodeKind of type SELECTION_SET
	SELECTION_SET
	// ARGUMENT is a NodeKind of type ARGUMENT
	ARGUMENT
	// ARGUMENT_SET is a NodeKind of type ARGUMENT_SET
	ARGUMENT_SET
)

func ParseNodeKind

func ParseNodeKind(name string) (NodeKind, error)

ParseNodeKind attempts to convert a string to a NodeKind

func (NodeKind) String

func (x NodeKind) String() string

String implements the Stringer interface.

type NodeUsageInOperationsIterator added in v1.0.1

type NodeUsageInOperationsIterator struct {
	// contains filtered or unexported fields
}

func (*NodeUsageInOperationsIterator) Next added in v1.0.1

func (*NodeUsageInOperationsIterator) Value added in v1.0.1

type ObjectFieldsIterator

type ObjectFieldsIterator struct {
	// contains filtered or unexported fields
}

func (*ObjectFieldsIterator) Next

func (o *ObjectFieldsIterator) Next() bool

func (*ObjectFieldsIterator) Value

func (o *ObjectFieldsIterator) Value() (field document.ObjectField, ref int)

type ObjectTypeDefinitionIterable added in v1.2.0

type ObjectTypeDefinitionIterable struct {
	// contains filtered or unexported fields
}

func (*ObjectTypeDefinitionIterable) Next added in v1.2.0

func (*ObjectTypeDefinitionIterable) Value added in v1.2.0

func (o *ObjectTypeDefinitionIterable) Value() (ref int, definition document.ObjectTypeDefinition)

type OperationDefinitionIterable

type OperationDefinitionIterable struct {
	Iterable
}

func (*OperationDefinitionIterable) Value

type SelectionSetContentsIterator added in v1.0.1

type SelectionSetContentsIterator struct {
	// contains filtered or unexported fields
}

func (*SelectionSetContentsIterator) Next added in v1.0.1

func (*SelectionSetContentsIterator) Value added in v1.0.1

func (s *SelectionSetContentsIterator) Value() (kind NodeKind, ref int)

type SelectionSetDifferingSelectionSetIterator

type SelectionSetDifferingSelectionSetIterator struct {
	// contains filtered or unexported fields
}

func (*SelectionSetDifferingSelectionSetIterator) Next

func (*SelectionSetDifferingSelectionSetIterator) Value

type SelectionSetFieldsIterator

type SelectionSetFieldsIterator struct {
	// contains filtered or unexported fields
}

func (*SelectionSetFieldsIterator) Next

func (s *SelectionSetFieldsIterator) Next() bool

func (*SelectionSetFieldsIterator) Value

type SelectionSetIterable

type SelectionSetIterable struct {
	Iterable
}

func (*SelectionSetIterable) Value

func (s *SelectionSetIterable) Value() (set document.SelectionSet, nodeRef, setRef, parent int)

type TypeSystemDefinitionOrderedRootNodes added in v1.2.0

type TypeSystemDefinitionOrderedRootNodes struct {
	Iterable
}

func (*TypeSystemDefinitionOrderedRootNodes) Value added in v1.2.0

func (t *TypeSystemDefinitionOrderedRootNodes) Value() (ref int, kind NodeKind)

type TypedSet

type TypedSet struct {
	SetRef int
	Type   document.Type
}

type VariableDefinitionsIterator

type VariableDefinitionsIterator struct {
	// contains filtered or unexported fields
}

func (*VariableDefinitionsIterator) Next

func (*VariableDefinitionsIterator) Value

func (v *VariableDefinitionsIterator) Value() (definition document.VariableDefinition, index int)

type Walker

type Walker struct {
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker(nodeCacheSize int, defaultCacheSize int) *Walker

func (*Walker) ArgumentSetIterable

func (w *Walker) ArgumentSetIterable() ArgumentSetIterable

func (*Walker) ArgumentsDefinition

func (w *Walker) ArgumentsDefinition(parent int) document.ArgumentsDefinition

func (*Walker) DirectiveSetIterable

func (w *Walker) DirectiveSetIterable() DirectiveSetIterable

func (*Walker) FieldsIterable

func (w *Walker) FieldsIterable() FieldsIterable

func (*Walker) FragmentDefinitionIterable added in v1.0.1

func (w *Walker) FragmentDefinitionIterable() FragmentDefinitionIterable

func (*Walker) FragmentUsageInOperations added in v1.0.1

func (w *Walker) FragmentUsageInOperations(fragmentName int, refs *[]int)

func (*Walker) Node

func (w *Walker) Node(ref int) Node

func (*Walker) NodeUsageInOperationsIterator added in v1.0.1

func (w *Walker) NodeUsageInOperationsIterator(ref int) (iter NodeUsageInOperationsIterator)

func (*Walker) OperationDefinitionIterable

func (w *Walker) OperationDefinitionIterable() OperationDefinitionIterable

func (*Walker) Parent

func (w *Walker) Parent(i int) (Node, bool)

func (*Walker) ParentEquals

func (w *Walker) ParentEquals(parent int, kind NodeKind) (Node, bool)

func (*Walker) RootNode added in v1.0.1

func (w *Walker) RootNode(ref int) (node Node)

func (*Walker) SelectionSetIterable

func (w *Walker) SelectionSetIterable() SelectionSetIterable

func (*Walker) SelectionSetTypeName

func (w *Walker) SelectionSetTypeName(set document.SelectionSet, parent int) int

func (*Walker) SetLookup

func (w *Walker) SetLookup(l *Lookup)

func (*Walker) TypeSystemDefinitionOrderedRootNodes added in v1.2.0

func (w *Walker) TypeSystemDefinitionOrderedRootNodes() TypeSystemDefinitionOrderedRootNodes

func (*Walker) WalkDirectiveDefinitions added in v1.2.0

func (w *Walker) WalkDirectiveDefinitions(refs []int)

func (*Walker) WalkEnumTypeDefinitions added in v1.2.0

func (w *Walker) WalkEnumTypeDefinitions(refs []int)

func (*Walker) WalkExecutable

func (w *Walker) WalkExecutable()

func (*Walker) WalkInputObjectTypeDefinitions added in v1.2.0

func (w *Walker) WalkInputObjectTypeDefinitions(refs []int)

func (*Walker) WalkInterfaceTypeDefinitions added in v1.2.0

func (w *Walker) WalkInterfaceTypeDefinitions(refs []int)

func (*Walker) WalkObjectTypeDefinitions added in v1.2.0

func (w *Walker) WalkObjectTypeDefinitions(refs []int)

func (*Walker) WalkScalarTypeDefinitions added in v1.2.0

func (w *Walker) WalkScalarTypeDefinitions(refs []int)

func (*Walker) WalkSchemaDefinition added in v1.2.0

func (w *Walker) WalkSchemaDefinition(definition document.SchemaDefinition)

func (*Walker) WalkTypeSystemDefinition added in v1.2.0

func (w *Walker) WalkTypeSystemDefinition()

func (*Walker) WalkUnionTypeDefinitions added in v1.2.0

func (w *Walker) WalkUnionTypeDefinitions(refs []int)

func (*Walker) WalkUpUntilTypeName

func (w *Walker) WalkUpUntilTypeName(from Node, fieldPath *[]int) (typeName int, node Node)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL