graphql: github.com/graphql-go/graphql/language/ast Index | Files

package ast

import "github.com/graphql-go/graphql/language/ast"

Index

Package Files

arguments.go definitions.go directives.go document.go location.go name.go node.go selections.go type_definitions.go types.go values.go

Constants

const (
    OperationTypeQuery        = "query"
    OperationTypeMutation     = "mutation"
    OperationTypeSubscription = "subscription"
)

Note: subscription is an experimental non-spec addition.

type Argument Uses

type Argument struct {
    Kind  string
    Loc   *Location
    Name  *Name
    Value Value
}

Argument implements Node

func NewArgument Uses

func NewArgument(arg *Argument) *Argument

func (*Argument) GetKind Uses

func (arg *Argument) GetKind() string

func (*Argument) GetLoc Uses

func (arg *Argument) GetLoc() *Location

type BooleanValue Uses

type BooleanValue struct {
    Kind  string
    Loc   *Location
    Value bool
}

BooleanValue implements Node, Value

func NewBooleanValue Uses

func NewBooleanValue(v *BooleanValue) *BooleanValue

func (*BooleanValue) GetKind Uses

func (v *BooleanValue) GetKind() string

func (*BooleanValue) GetLoc Uses

func (v *BooleanValue) GetLoc() *Location

func (*BooleanValue) GetValue Uses

func (v *BooleanValue) GetValue() interface{}

type Definition Uses

type Definition interface {
    GetOperation() string
    GetVariableDefinitions() []*VariableDefinition
    GetSelectionSet() *SelectionSet
    GetKind() string
    GetLoc() *Location
}

type DescribableNode Uses

type DescribableNode interface {
    GetDescription() *StringValue
}

DescribableNode are nodes that have descriptions associated with them.

type Directive Uses

type Directive struct {
    Kind      string
    Loc       *Location
    Name      *Name
    Arguments []*Argument
}

Directive implements Node

func NewDirective Uses

func NewDirective(dir *Directive) *Directive

func (*Directive) GetKind Uses

func (dir *Directive) GetKind() string

func (*Directive) GetLoc Uses

func (dir *Directive) GetLoc() *Location

type DirectiveDefinition Uses

type DirectiveDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Arguments   []*InputValueDefinition
    Locations   []*Name
}

DirectiveDefinition implements Node, Definition

func NewDirectiveDefinition Uses

func NewDirectiveDefinition(def *DirectiveDefinition) *DirectiveDefinition

func (*DirectiveDefinition) GetDescription Uses

func (def *DirectiveDefinition) GetDescription() *StringValue

func (*DirectiveDefinition) GetKind Uses

func (def *DirectiveDefinition) GetKind() string

func (*DirectiveDefinition) GetLoc Uses

func (def *DirectiveDefinition) GetLoc() *Location

func (*DirectiveDefinition) GetOperation Uses

func (def *DirectiveDefinition) GetOperation() string

func (*DirectiveDefinition) GetSelectionSet Uses

func (def *DirectiveDefinition) GetSelectionSet() *SelectionSet

func (*DirectiveDefinition) GetVariableDefinitions Uses

func (def *DirectiveDefinition) GetVariableDefinitions() []*VariableDefinition

type Document Uses

type Document struct {
    Kind        string
    Loc         *Location
    Definitions []Node
}

Document implements Node

func NewDocument Uses

func NewDocument(d *Document) *Document

func (*Document) GetKind Uses

func (node *Document) GetKind() string

func (*Document) GetLoc Uses

func (node *Document) GetLoc() *Location

type EnumDefinition Uses

type EnumDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Directives  []*Directive
    Values      []*EnumValueDefinition
}

EnumDefinition implements Node, Definition

func NewEnumDefinition Uses

func NewEnumDefinition(def *EnumDefinition) *EnumDefinition

func (*EnumDefinition) GetDescription Uses

func (def *EnumDefinition) GetDescription() *StringValue

func (*EnumDefinition) GetKind Uses

func (def *EnumDefinition) GetKind() string

func (*EnumDefinition) GetLoc Uses

func (def *EnumDefinition) GetLoc() *Location

func (*EnumDefinition) GetName Uses

func (def *EnumDefinition) GetName() *Name

func (*EnumDefinition) GetOperation Uses

func (def *EnumDefinition) GetOperation() string

func (*EnumDefinition) GetSelectionSet Uses

func (def *EnumDefinition) GetSelectionSet() *SelectionSet

func (*EnumDefinition) GetVariableDefinitions Uses

func (def *EnumDefinition) GetVariableDefinitions() []*VariableDefinition

type EnumValue Uses

type EnumValue struct {
    Kind  string
    Loc   *Location
    Value string
}

EnumValue implements Node, Value

func NewEnumValue Uses

func NewEnumValue(v *EnumValue) *EnumValue

func (*EnumValue) GetKind Uses

func (v *EnumValue) GetKind() string

func (*EnumValue) GetLoc Uses

func (v *EnumValue) GetLoc() *Location

func (*EnumValue) GetValue Uses

func (v *EnumValue) GetValue() interface{}

type EnumValueDefinition Uses

type EnumValueDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Directives  []*Directive
}

EnumValueDefinition implements Node, Definition

func NewEnumValueDefinition Uses

func NewEnumValueDefinition(def *EnumValueDefinition) *EnumValueDefinition

func (*EnumValueDefinition) GetDescription Uses

func (def *EnumValueDefinition) GetDescription() *StringValue

func (*EnumValueDefinition) GetKind Uses

func (def *EnumValueDefinition) GetKind() string

func (*EnumValueDefinition) GetLoc Uses

func (def *EnumValueDefinition) GetLoc() *Location

type Field Uses

type Field struct {
    Kind         string
    Loc          *Location
    Alias        *Name
    Name         *Name
    Arguments    []*Argument
    Directives   []*Directive
    SelectionSet *SelectionSet
}

Field implements Node, Selection

func NewField Uses

func NewField(f *Field) *Field

func (*Field) GetKind Uses

func (f *Field) GetKind() string

func (*Field) GetLoc Uses

func (f *Field) GetLoc() *Location

func (*Field) GetSelectionSet Uses

func (f *Field) GetSelectionSet() *SelectionSet

type FieldDefinition Uses

type FieldDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Arguments   []*InputValueDefinition
    Type        Type
    Directives  []*Directive
}

FieldDefinition implements Node

func NewFieldDefinition Uses

func NewFieldDefinition(def *FieldDefinition) *FieldDefinition

func (*FieldDefinition) GetDescription Uses

func (def *FieldDefinition) GetDescription() *StringValue

func (*FieldDefinition) GetKind Uses

func (def *FieldDefinition) GetKind() string

func (*FieldDefinition) GetLoc Uses

func (def *FieldDefinition) GetLoc() *Location

type FloatValue Uses

type FloatValue struct {
    Kind  string
    Loc   *Location
    Value string
}

FloatValue implements Node, Value

func NewFloatValue Uses

func NewFloatValue(v *FloatValue) *FloatValue

func (*FloatValue) GetKind Uses

func (v *FloatValue) GetKind() string

func (*FloatValue) GetLoc Uses

func (v *FloatValue) GetLoc() *Location

func (*FloatValue) GetValue Uses

func (v *FloatValue) GetValue() interface{}

type FragmentDefinition Uses

type FragmentDefinition struct {
    Kind                string
    Loc                 *Location
    Operation           string
    Name                *Name
    VariableDefinitions []*VariableDefinition
    TypeCondition       *Named
    Directives          []*Directive
    SelectionSet        *SelectionSet
}

FragmentDefinition implements Node, Definition

func NewFragmentDefinition Uses

func NewFragmentDefinition(fd *FragmentDefinition) *FragmentDefinition

func (*FragmentDefinition) GetKind Uses

func (fd *FragmentDefinition) GetKind() string

func (*FragmentDefinition) GetLoc Uses

func (fd *FragmentDefinition) GetLoc() *Location

func (*FragmentDefinition) GetName Uses

func (fd *FragmentDefinition) GetName() *Name

func (*FragmentDefinition) GetOperation Uses

func (fd *FragmentDefinition) GetOperation() string

func (*FragmentDefinition) GetSelectionSet Uses

func (fd *FragmentDefinition) GetSelectionSet() *SelectionSet

func (*FragmentDefinition) GetVariableDefinitions Uses

func (fd *FragmentDefinition) GetVariableDefinitions() []*VariableDefinition

type FragmentSpread Uses

type FragmentSpread struct {
    Kind       string
    Loc        *Location
    Name       *Name
    Directives []*Directive
}

FragmentSpread implements Node, Selection

func NewFragmentSpread Uses

func NewFragmentSpread(fs *FragmentSpread) *FragmentSpread

func (*FragmentSpread) GetKind Uses

func (fs *FragmentSpread) GetKind() string

func (*FragmentSpread) GetLoc Uses

func (fs *FragmentSpread) GetLoc() *Location

func (*FragmentSpread) GetSelectionSet Uses

func (fs *FragmentSpread) GetSelectionSet() *SelectionSet

type InlineFragment Uses

type InlineFragment struct {
    Kind          string
    Loc           *Location
    TypeCondition *Named
    Directives    []*Directive
    SelectionSet  *SelectionSet
}

InlineFragment implements Node, Selection

func NewInlineFragment Uses

func NewInlineFragment(f *InlineFragment) *InlineFragment

func (*InlineFragment) GetKind Uses

func (f *InlineFragment) GetKind() string

func (*InlineFragment) GetLoc Uses

func (f *InlineFragment) GetLoc() *Location

func (*InlineFragment) GetSelectionSet Uses

func (f *InlineFragment) GetSelectionSet() *SelectionSet

type InputObjectDefinition Uses

type InputObjectDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Directives  []*Directive
    Fields      []*InputValueDefinition
}

InputObjectDefinition implements Node, Definition

func NewInputObjectDefinition Uses

func NewInputObjectDefinition(def *InputObjectDefinition) *InputObjectDefinition

func (*InputObjectDefinition) GetDescription Uses

func (def *InputObjectDefinition) GetDescription() *StringValue

func (*InputObjectDefinition) GetKind Uses

func (def *InputObjectDefinition) GetKind() string

func (*InputObjectDefinition) GetLoc Uses

func (def *InputObjectDefinition) GetLoc() *Location

func (*InputObjectDefinition) GetName Uses

func (def *InputObjectDefinition) GetName() *Name

func (*InputObjectDefinition) GetOperation Uses

func (def *InputObjectDefinition) GetOperation() string

func (*InputObjectDefinition) GetSelectionSet Uses

func (def *InputObjectDefinition) GetSelectionSet() *SelectionSet

func (*InputObjectDefinition) GetVariableDefinitions Uses

func (def *InputObjectDefinition) GetVariableDefinitions() []*VariableDefinition

type InputValueDefinition Uses

type InputValueDefinition struct {
    Kind         string
    Loc          *Location
    Name         *Name
    Description  *StringValue
    Type         Type
    DefaultValue Value
    Directives   []*Directive
}

InputValueDefinition implements Node

func NewInputValueDefinition Uses

func NewInputValueDefinition(def *InputValueDefinition) *InputValueDefinition

func (*InputValueDefinition) GetDescription Uses

func (def *InputValueDefinition) GetDescription() *StringValue

func (*InputValueDefinition) GetKind Uses

func (def *InputValueDefinition) GetKind() string

func (*InputValueDefinition) GetLoc Uses

func (def *InputValueDefinition) GetLoc() *Location

type IntValue Uses

type IntValue struct {
    Kind  string
    Loc   *Location
    Value string
}

IntValue implements Node, Value

func NewIntValue Uses

func NewIntValue(v *IntValue) *IntValue

func (*IntValue) GetKind Uses

func (v *IntValue) GetKind() string

func (*IntValue) GetLoc Uses

func (v *IntValue) GetLoc() *Location

func (*IntValue) GetValue Uses

func (v *IntValue) GetValue() interface{}

type InterfaceDefinition Uses

type InterfaceDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Directives  []*Directive
    Fields      []*FieldDefinition
}

InterfaceDefinition implements Node, Definition

func NewInterfaceDefinition Uses

func NewInterfaceDefinition(def *InterfaceDefinition) *InterfaceDefinition

func (*InterfaceDefinition) GetDescription Uses

func (def *InterfaceDefinition) GetDescription() *StringValue

func (*InterfaceDefinition) GetKind Uses

func (def *InterfaceDefinition) GetKind() string

func (*InterfaceDefinition) GetLoc Uses

func (def *InterfaceDefinition) GetLoc() *Location

func (*InterfaceDefinition) GetName Uses

func (def *InterfaceDefinition) GetName() *Name

func (*InterfaceDefinition) GetOperation Uses

func (def *InterfaceDefinition) GetOperation() string

func (*InterfaceDefinition) GetSelectionSet Uses

func (def *InterfaceDefinition) GetSelectionSet() *SelectionSet

func (*InterfaceDefinition) GetVariableDefinitions Uses

func (def *InterfaceDefinition) GetVariableDefinitions() []*VariableDefinition

type List Uses

type List struct {
    Kind string
    Loc  *Location
    Type Type
}

List implements Node, Type

func NewList Uses

func NewList(t *List) *List

func (*List) GetKind Uses

func (t *List) GetKind() string

func (*List) GetLoc Uses

func (t *List) GetLoc() *Location

func (*List) String Uses

func (t *List) String() string

type ListValue Uses

type ListValue struct {
    Kind   string
    Loc    *Location
    Values []Value
}

ListValue implements Node, Value

func NewListValue Uses

func NewListValue(v *ListValue) *ListValue

func (*ListValue) GetKind Uses

func (v *ListValue) GetKind() string

func (*ListValue) GetLoc Uses

func (v *ListValue) GetLoc() *Location

func (*ListValue) GetValue Uses

func (v *ListValue) GetValue() interface{}

GetValue alias to ListValue.GetValues()

func (*ListValue) GetValues Uses

func (v *ListValue) GetValues() interface{}

type Location Uses

type Location struct {
    Start  int
    End    int
    Source *source.Source
}

func NewLocation Uses

func NewLocation(loc *Location) *Location

type Name Uses

type Name struct {
    Kind  string
    Loc   *Location
    Value string
}

Name implements Node

func NewName Uses

func NewName(node *Name) *Name

func (*Name) GetKind Uses

func (node *Name) GetKind() string

func (*Name) GetLoc Uses

func (node *Name) GetLoc() *Location

type Named Uses

type Named struct {
    Kind string
    Loc  *Location
    Name *Name
}

Named implements Node, Type

func NewNamed Uses

func NewNamed(t *Named) *Named

func (*Named) GetKind Uses

func (t *Named) GetKind() string

func (*Named) GetLoc Uses

func (t *Named) GetLoc() *Location

func (*Named) String Uses

func (t *Named) String() string

type Node Uses

type Node interface {
    GetKind() string
    GetLoc() *Location
}

type NonNull Uses

type NonNull struct {
    Kind string
    Loc  *Location
    Type Type
}

NonNull implements Node, Type

func NewNonNull Uses

func NewNonNull(t *NonNull) *NonNull

func (*NonNull) GetKind Uses

func (t *NonNull) GetKind() string

func (*NonNull) GetLoc Uses

func (t *NonNull) GetLoc() *Location

func (*NonNull) String Uses

func (t *NonNull) String() string

type ObjectDefinition Uses

type ObjectDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Interfaces  []*Named
    Directives  []*Directive
    Fields      []*FieldDefinition
}

ObjectDefinition implements Node, Definition

func NewObjectDefinition Uses

func NewObjectDefinition(def *ObjectDefinition) *ObjectDefinition

func (*ObjectDefinition) GetDescription Uses

func (def *ObjectDefinition) GetDescription() *StringValue

func (*ObjectDefinition) GetKind Uses

func (def *ObjectDefinition) GetKind() string

func (*ObjectDefinition) GetLoc Uses

func (def *ObjectDefinition) GetLoc() *Location

func (*ObjectDefinition) GetName Uses

func (def *ObjectDefinition) GetName() *Name

func (*ObjectDefinition) GetOperation Uses

func (def *ObjectDefinition) GetOperation() string

func (*ObjectDefinition) GetSelectionSet Uses

func (def *ObjectDefinition) GetSelectionSet() *SelectionSet

func (*ObjectDefinition) GetVariableDefinitions Uses

func (def *ObjectDefinition) GetVariableDefinitions() []*VariableDefinition

type ObjectField Uses

type ObjectField struct {
    Kind  string
    Name  *Name
    Loc   *Location
    Value Value
}

ObjectField implements Node, Value

func NewObjectField Uses

func NewObjectField(f *ObjectField) *ObjectField

func (*ObjectField) GetKind Uses

func (f *ObjectField) GetKind() string

func (*ObjectField) GetLoc Uses

func (f *ObjectField) GetLoc() *Location

func (*ObjectField) GetValue Uses

func (f *ObjectField) GetValue() interface{}

type ObjectValue Uses

type ObjectValue struct {
    Kind   string
    Loc    *Location
    Fields []*ObjectField
}

ObjectValue implements Node, Value

func NewObjectValue Uses

func NewObjectValue(v *ObjectValue) *ObjectValue

func (*ObjectValue) GetKind Uses

func (v *ObjectValue) GetKind() string

func (*ObjectValue) GetLoc Uses

func (v *ObjectValue) GetLoc() *Location

func (*ObjectValue) GetValue Uses

func (v *ObjectValue) GetValue() interface{}

type OperationDefinition Uses

type OperationDefinition struct {
    Kind                string
    Loc                 *Location
    Operation           string
    Name                *Name
    VariableDefinitions []*VariableDefinition
    Directives          []*Directive
    SelectionSet        *SelectionSet
}

OperationDefinition implements Node, Definition

func NewOperationDefinition Uses

func NewOperationDefinition(op *OperationDefinition) *OperationDefinition

func (*OperationDefinition) GetDirectives Uses

func (op *OperationDefinition) GetDirectives() []*Directive

func (*OperationDefinition) GetKind Uses

func (op *OperationDefinition) GetKind() string

func (*OperationDefinition) GetLoc Uses

func (op *OperationDefinition) GetLoc() *Location

func (*OperationDefinition) GetName Uses

func (op *OperationDefinition) GetName() *Name

func (*OperationDefinition) GetOperation Uses

func (op *OperationDefinition) GetOperation() string

func (*OperationDefinition) GetSelectionSet Uses

func (op *OperationDefinition) GetSelectionSet() *SelectionSet

func (*OperationDefinition) GetVariableDefinitions Uses

func (op *OperationDefinition) GetVariableDefinitions() []*VariableDefinition

type OperationTypeDefinition Uses

type OperationTypeDefinition struct {
    Kind      string
    Loc       *Location
    Operation string
    Type      *Named
}

OperationTypeDefinition implements Node, Definition

func NewOperationTypeDefinition Uses

func NewOperationTypeDefinition(def *OperationTypeDefinition) *OperationTypeDefinition

func (*OperationTypeDefinition) GetKind Uses

func (def *OperationTypeDefinition) GetKind() string

func (*OperationTypeDefinition) GetLoc Uses

func (def *OperationTypeDefinition) GetLoc() *Location

type ScalarDefinition Uses

type ScalarDefinition struct {
    Kind        string
    Loc         *Location
    Description *StringValue
    Name        *Name
    Directives  []*Directive
}

ScalarDefinition implements Node, Definition

func NewScalarDefinition Uses

func NewScalarDefinition(def *ScalarDefinition) *ScalarDefinition

func (*ScalarDefinition) GetDescription Uses

func (def *ScalarDefinition) GetDescription() *StringValue

func (*ScalarDefinition) GetKind Uses

func (def *ScalarDefinition) GetKind() string

func (*ScalarDefinition) GetLoc Uses

func (def *ScalarDefinition) GetLoc() *Location

func (*ScalarDefinition) GetName Uses

func (def *ScalarDefinition) GetName() *Name

func (*ScalarDefinition) GetOperation Uses

func (def *ScalarDefinition) GetOperation() string

func (*ScalarDefinition) GetSelectionSet Uses

func (def *ScalarDefinition) GetSelectionSet() *SelectionSet

func (*ScalarDefinition) GetVariableDefinitions Uses

func (def *ScalarDefinition) GetVariableDefinitions() []*VariableDefinition

type SchemaDefinition Uses

type SchemaDefinition struct {
    Kind           string
    Loc            *Location
    Directives     []*Directive
    OperationTypes []*OperationTypeDefinition
}

SchemaDefinition implements Node, Definition

func NewSchemaDefinition Uses

func NewSchemaDefinition(def *SchemaDefinition) *SchemaDefinition

func (*SchemaDefinition) GetKind Uses

func (def *SchemaDefinition) GetKind() string

func (*SchemaDefinition) GetLoc Uses

func (def *SchemaDefinition) GetLoc() *Location

func (*SchemaDefinition) GetOperation Uses

func (def *SchemaDefinition) GetOperation() string

func (*SchemaDefinition) GetSelectionSet Uses

func (def *SchemaDefinition) GetSelectionSet() *SelectionSet

func (*SchemaDefinition) GetVariableDefinitions Uses

func (def *SchemaDefinition) GetVariableDefinitions() []*VariableDefinition

type Selection Uses

type Selection interface {
    GetSelectionSet() *SelectionSet
}

type SelectionSet Uses

type SelectionSet struct {
    Kind       string
    Loc        *Location
    Selections []Selection
}

SelectionSet implements Node

func NewSelectionSet Uses

func NewSelectionSet(ss *SelectionSet) *SelectionSet

func (*SelectionSet) GetKind Uses

func (ss *SelectionSet) GetKind() string

func (*SelectionSet) GetLoc Uses

func (ss *SelectionSet) GetLoc() *Location

type StringValue Uses

type StringValue struct {
    Kind  string
    Loc   *Location
    Value string
}

StringValue implements Node, Value

func NewStringValue Uses

func NewStringValue(v *StringValue) *StringValue

func (*StringValue) GetKind Uses

func (v *StringValue) GetKind() string

func (*StringValue) GetLoc Uses

func (v *StringValue) GetLoc() *Location

func (*StringValue) GetValue Uses

func (v *StringValue) GetValue() interface{}

type Type Uses

type Type interface {
    GetKind() string
    GetLoc() *Location
    String() string
}

type TypeDefinition Uses

type TypeDefinition interface {
    DescribableNode
    GetOperation() string
    GetVariableDefinitions() []*VariableDefinition
    GetSelectionSet() *SelectionSet
    GetKind() string
    GetLoc() *Location
}

type TypeExtensionDefinition Uses

type TypeExtensionDefinition struct {
    Kind       string
    Loc        *Location
    Definition *ObjectDefinition
}

TypeExtensionDefinition implements Node, Definition

func NewTypeExtensionDefinition Uses

func NewTypeExtensionDefinition(def *TypeExtensionDefinition) *TypeExtensionDefinition

func (*TypeExtensionDefinition) GetKind Uses

func (def *TypeExtensionDefinition) GetKind() string

func (*TypeExtensionDefinition) GetLoc Uses

func (def *TypeExtensionDefinition) GetLoc() *Location

func (*TypeExtensionDefinition) GetOperation Uses

func (def *TypeExtensionDefinition) GetOperation() string

func (*TypeExtensionDefinition) GetSelectionSet Uses

func (def *TypeExtensionDefinition) GetSelectionSet() *SelectionSet

func (*TypeExtensionDefinition) GetVariableDefinitions Uses

func (def *TypeExtensionDefinition) GetVariableDefinitions() []*VariableDefinition

type TypeSystemDefinition Uses

type TypeSystemDefinition interface {
    GetOperation() string
    GetVariableDefinitions() []*VariableDefinition
    GetSelectionSet() *SelectionSet
    GetKind() string
    GetLoc() *Location
}

type UnionDefinition Uses

type UnionDefinition struct {
    Kind        string
    Loc         *Location
    Name        *Name
    Description *StringValue
    Directives  []*Directive
    Types       []*Named
}

UnionDefinition implements Node, Definition

func NewUnionDefinition Uses

func NewUnionDefinition(def *UnionDefinition) *UnionDefinition

func (*UnionDefinition) GetDescription Uses

func (def *UnionDefinition) GetDescription() *StringValue

func (*UnionDefinition) GetKind Uses

func (def *UnionDefinition) GetKind() string

func (*UnionDefinition) GetLoc Uses

func (def *UnionDefinition) GetLoc() *Location

func (*UnionDefinition) GetName Uses

func (def *UnionDefinition) GetName() *Name

func (*UnionDefinition) GetOperation Uses

func (def *UnionDefinition) GetOperation() string

func (*UnionDefinition) GetSelectionSet Uses

func (def *UnionDefinition) GetSelectionSet() *SelectionSet

func (*UnionDefinition) GetVariableDefinitions Uses

func (def *UnionDefinition) GetVariableDefinitions() []*VariableDefinition

type Value Uses

type Value interface {
    GetValue() interface{}
    GetKind() string
    GetLoc() *Location
}

type Variable Uses

type Variable struct {
    Kind string
    Loc  *Location
    Name *Name
}

Variable implements Node, Value

func NewVariable Uses

func NewVariable(v *Variable) *Variable

func (*Variable) GetKind Uses

func (v *Variable) GetKind() string

func (*Variable) GetLoc Uses

func (v *Variable) GetLoc() *Location

func (*Variable) GetName Uses

func (v *Variable) GetName() interface{}

func (*Variable) GetValue Uses

func (v *Variable) GetValue() interface{}

GetValue alias to Variable.GetName()

type VariableDefinition Uses

type VariableDefinition struct {
    Kind         string
    Loc          *Location
    Variable     *Variable
    Type         Type
    DefaultValue Value
}

VariableDefinition implements Node

func NewVariableDefinition Uses

func NewVariableDefinition(vd *VariableDefinition) *VariableDefinition

func (*VariableDefinition) GetKind Uses

func (vd *VariableDefinition) GetKind() string

func (*VariableDefinition) GetLoc Uses

func (vd *VariableDefinition) GetLoc() *Location

Package ast imports 2 packages (graph) and is imported by 228 packages. Updated 2018-04-14. Refresh now. Tools for package owners.