Documentation
¶
Index ¶
- func Inspect(node Node, f func(Node) bool)
- func IsNullValue(v Value) bool
- type Argument
- type BooleanValue
- type Definition
- type Directive
- type Document
- type EnumValue
- type Field
- type FloatValue
- type FragmentDefinition
- type FragmentSpread
- type InlineFragment
- type IntValue
- type ListType
- type ListValue
- type Name
- type NamedType
- type Node
- type NonNullType
- type NullValue
- type ObjectField
- type ObjectValue
- type OperationDefinition
- type OperationType
- type Selection
- type SelectionSet
- type StringValue
- type Type
- type Value
- type Variable
- type VariableDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inspect ¶
Inspect traverses the given AST, invoking f for each node. If f returns true, Inspect will recursively inspect the nodes referenced by the given node.
func IsNullValue ¶
Types ¶
type BooleanValue ¶
func (*BooleanValue) IsValue ¶
func (*BooleanValue) IsValue() bool
func (*BooleanValue) Position ¶
func (n *BooleanValue) Position() token.Position
type Document ¶
type Document struct {
Definitions []Definition
}
type Field ¶
type Field struct {
Alias *Name
Name *Name
Arguments []*Argument
Directives []*Directive
SelectionSet *SelectionSet
}
func (*Field) SelectionDirectives ¶
type FloatValue ¶
func (*FloatValue) IsValue ¶
func (*FloatValue) IsValue() bool
func (*FloatValue) Position ¶
func (n *FloatValue) Position() token.Position
type FragmentDefinition ¶
type FragmentDefinition struct {
Fragment token.Position
Name *Name
TypeCondition *NamedType
Directives []*Directive
SelectionSet *SelectionSet
}
func (*FragmentDefinition) Position ¶
func (n *FragmentDefinition) Position() token.Position
type FragmentSpread ¶
func (*FragmentSpread) Position ¶
func (n *FragmentSpread) Position() token.Position
func (*FragmentSpread) SelectionDirectives ¶
func (s *FragmentSpread) SelectionDirectives() []*Directive
type InlineFragment ¶
type InlineFragment struct {
TypeCondition *NamedType
Directives []*Directive
SelectionSet *SelectionSet
Ellipsis token.Position
}
func (*InlineFragment) Position ¶
func (n *InlineFragment) Position() token.Position
func (*InlineFragment) SelectionDirectives ¶
func (s *InlineFragment) SelectionDirectives() []*Directive
type NonNullType ¶
type NonNullType struct {
Type Type
}
func (*NonNullType) Position ¶
func (n *NonNullType) Position() token.Position
type ObjectField ¶
func (*ObjectField) Position ¶
func (n *ObjectField) Position() token.Position
type ObjectValue ¶
type ObjectValue struct {
Fields []*ObjectField
Opening token.Position
Closing token.Position
}
func (*ObjectValue) IsValue ¶
func (*ObjectValue) IsValue() bool
func (*ObjectValue) Position ¶
func (n *ObjectValue) Position() token.Position
type OperationDefinition ¶
type OperationDefinition struct {
OperationType *OperationType
Name *Name
VariableDefinitions []*VariableDefinition
Directives []*Directive
SelectionSet *SelectionSet
}
func (*OperationDefinition) Position ¶
func (n *OperationDefinition) Position() token.Position
type OperationType ¶
func (*OperationType) Position ¶
func (n *OperationType) Position() token.Position
type SelectionSet ¶
func (*SelectionSet) Position ¶
func (n *SelectionSet) Position() token.Position
type StringValue ¶
type StringValue struct {
// Value is the actual, unquoted value.
Value string
Literal token.Position
}
func (*StringValue) IsValue ¶
func (*StringValue) IsValue() bool
func (*StringValue) Position ¶
func (n *StringValue) Position() token.Position
type Value ¶
Variable, IntValue, FloatValue, StringValue, BooleanValue, NullValue, EnumValue, ListValue, or ObjectValue
type VariableDefinition ¶
func (*VariableDefinition) Position ¶
func (n *VariableDefinition) Position() token.Position
Click to show internal directories.
Click to hide internal directories.