Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Index ¶
- Variables
- func OneArgument(curr []*ast.Argument, more ...*ast.Argument) (*ast.Argument, error)
- func OneBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) (*ast.BooleanValue, error)
- func OneDirective(curr []*ast.Directive, more ...*ast.Directive) (*ast.Directive, error)
- func OneDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) (*ast.DirectiveDefinition, error)
- func OneDocument(curr []*ast.Document, more ...*ast.Document) (*ast.Document, error)
- func OneEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) (*ast.EnumDefinition, error)
- func OneEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) (*ast.EnumValue, error)
- func OneEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) (*ast.EnumValueDefinition, error)
- func OneField(curr []*ast.Field, more ...*ast.Field) (*ast.Field, error)
- func OneFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) (*ast.FieldDefinition, error)
- func OneFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) (*ast.FloatValue, error)
- func OneFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) (*ast.FragmentDefinition, error)
- func OneFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) (*ast.FragmentSpread, error)
- func OneInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) (*ast.InlineFragment, error)
- func OneInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) (*ast.InputObjectDefinition, error)
- func OneInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) (*ast.InputValueDefinition, error)
- func OneIntValue(curr []*ast.IntValue, more ...*ast.IntValue) (*ast.IntValue, error)
- func OneInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) (*ast.InterfaceDefinition, error)
- func OneList(curr []*ast.List, more ...*ast.List) (*ast.List, error)
- func OneName(curr []*ast.Name, more ...*ast.Name) (*ast.Name, error)
- func OneNamed(curr []*ast.Named, more ...*ast.Named) (*ast.Named, error)
- func OneNode(curr []ast.Node, more ...ast.Node) (ast.Node, error)
- func OneNonNull(curr []*ast.NonNull, more ...*ast.NonNull) (*ast.NonNull, error)
- func OneObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) (*ast.ObjectDefinition, error)
- func OneObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) (*ast.ObjectField, error)
- func OneObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) (*ast.ObjectValue, error)
- func OneOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) (*ast.OperationDefinition, error)
- func OneOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) (*ast.OperationTypeDefinition, error)
- func OneScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) (*ast.ScalarDefinition, error)
- func OneSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) (*ast.SchemaDefinition, error)
- func OneSelection(curr []ast.Selection, more ...ast.Selection) (ast.Selection, error)
- func OneSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) (*ast.SelectionSet, error)
- func OneStringValue(curr []*ast.StringValue, more ...*ast.StringValue) (*ast.StringValue, error)
- func OneType(curr []ast.Type, more ...ast.Type) (ast.Type, error)
- func OneTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) (*ast.TypeExtensionDefinition, error)
- func OneUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) (*ast.UnionDefinition, error)
- func OneValue(curr []ast.Value, more ...ast.Value) (ast.Value, error)
- func OneVariable(curr []*ast.Variable, more ...*ast.Variable) (*ast.Variable, error)
- func OneVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) (*ast.VariableDefinition, error)
- func SimilarArgument(curr []*ast.Argument, more ...*ast.Argument) ([]*ast.Argument, error)
- func SimilarBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) ([]*ast.BooleanValue, error)
- func SimilarDirective(curr []*ast.Directive, more ...*ast.Directive) ([]*ast.Directive, error)
- func SimilarDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) ([]*ast.DirectiveDefinition, error)
- func SimilarDocument(curr []*ast.Document, more ...*ast.Document) ([]*ast.Document, error)
- func SimilarEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) ([]*ast.EnumDefinition, error)
- func SimilarEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) ([]*ast.EnumValue, error)
- func SimilarEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) ([]*ast.EnumValueDefinition, error)
- func SimilarField(curr []*ast.Field, more ...*ast.Field) ([]*ast.Field, error)
- func SimilarFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) ([]*ast.FieldDefinition, error)
- func SimilarFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) ([]*ast.FloatValue, error)
- func SimilarFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) ([]*ast.FragmentDefinition, error)
- func SimilarFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) ([]*ast.FragmentSpread, error)
- func SimilarInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) ([]*ast.InlineFragment, error)
- func SimilarInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) ([]*ast.InputObjectDefinition, error)
- func SimilarInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) ([]*ast.InputValueDefinition, error)
- func SimilarIntValue(curr []*ast.IntValue, more ...*ast.IntValue) ([]*ast.IntValue, error)
- func SimilarInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) ([]*ast.InterfaceDefinition, error)
- func SimilarList(curr []*ast.List, more ...*ast.List) ([]*ast.List, error)
- func SimilarName(curr []*ast.Name, more ...*ast.Name) ([]*ast.Name, error)
- func SimilarNamed(curr []*ast.Named, more ...*ast.Named) ([]*ast.Named, error)
- func SimilarNode(curr []ast.Node, more ...ast.Node) ([]ast.Node, error)
- func SimilarNonNull(curr []*ast.NonNull, more ...*ast.NonNull) ([]*ast.NonNull, error)
- func SimilarObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) ([]*ast.ObjectDefinition, error)
- func SimilarObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) ([]*ast.ObjectField, error)
- func SimilarObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) ([]*ast.ObjectValue, error)
- func SimilarOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) ([]*ast.OperationDefinition, error)
- func SimilarOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) ([]*ast.OperationTypeDefinition, error)
- func SimilarScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) ([]*ast.ScalarDefinition, error)
- func SimilarSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) ([]*ast.SchemaDefinition, error)
- func SimilarSelection(curr []ast.Selection, more ...ast.Selection) ([]ast.Selection, error)
- func SimilarSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) ([]*ast.SelectionSet, error)
- func SimilarStringValue(curr []*ast.StringValue, more ...*ast.StringValue) ([]*ast.StringValue, error)
- func SimilarType(curr []ast.Type, more ...ast.Type) ([]ast.Type, error)
- func SimilarTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) ([]*ast.TypeExtensionDefinition, error)
- func SimilarUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) ([]*ast.UnionDefinition, error)
- func SimilarValue(curr []ast.Value, more ...ast.Value) ([]ast.Value, error)
- func SimilarVariable(curr []*ast.Variable, more ...*ast.Variable) ([]*ast.Variable, error)
- func SimilarVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) ([]*ast.VariableDefinition, error)
- type Merger
- func (m *Merger) OneArgument(curr []*ast.Argument, more ...*ast.Argument) (*ast.Argument, error)
- func (m *Merger) OneBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) (*ast.BooleanValue, error)
- func (m *Merger) OneDirective(curr []*ast.Directive, more ...*ast.Directive) (*ast.Directive, error)
- func (m *Merger) OneDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) (*ast.DirectiveDefinition, error)
- func (m *Merger) OneDocument(curr []*ast.Document, more ...*ast.Document) (*ast.Document, error)
- func (m *Merger) OneEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) (*ast.EnumDefinition, error)
- func (m *Merger) OneEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) (*ast.EnumValue, error)
- func (m *Merger) OneEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) (*ast.EnumValueDefinition, error)
- func (m *Merger) OneField(curr []*ast.Field, more ...*ast.Field) (*ast.Field, error)
- func (m *Merger) OneFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) (*ast.FieldDefinition, error)
- func (m *Merger) OneFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) (*ast.FloatValue, error)
- func (m *Merger) OneFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) (*ast.FragmentDefinition, error)
- func (m *Merger) OneFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) (*ast.FragmentSpread, error)
- func (m *Merger) OneInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) (*ast.InlineFragment, error)
- func (m *Merger) OneInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) (*ast.InputObjectDefinition, error)
- func (m *Merger) OneInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) (*ast.InputValueDefinition, error)
- func (m *Merger) OneIntValue(curr []*ast.IntValue, more ...*ast.IntValue) (*ast.IntValue, error)
- func (m *Merger) OneInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) (*ast.InterfaceDefinition, error)
- func (m *Merger) OneList(curr []*ast.List, more ...*ast.List) (*ast.List, error)
- func (m *Merger) OneName(curr []*ast.Name, more ...*ast.Name) (*ast.Name, error)
- func (m *Merger) OneNamed(curr []*ast.Named, more ...*ast.Named) (*ast.Named, error)
- func (m *Merger) OneNode(curr []ast.Node, more ...ast.Node) (ast.Node, error)
- func (m *Merger) OneNonNull(curr []*ast.NonNull, more ...*ast.NonNull) (*ast.NonNull, error)
- func (m *Merger) OneObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) (*ast.ObjectDefinition, error)
- func (m *Merger) OneObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) (*ast.ObjectField, error)
- func (m *Merger) OneObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) (*ast.ObjectValue, error)
- func (m *Merger) OneOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) (*ast.OperationDefinition, error)
- func (m *Merger) OneOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) (*ast.OperationTypeDefinition, error)
- func (m *Merger) OneScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) (*ast.ScalarDefinition, error)
- func (m *Merger) OneSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) (*ast.SchemaDefinition, error)
- func (m *Merger) OneSelection(curr []ast.Selection, more ...ast.Selection) (ast.Selection, error)
- func (m *Merger) OneSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) (*ast.SelectionSet, error)
- func (m *Merger) OneStringValue(curr []*ast.StringValue, more ...*ast.StringValue) (*ast.StringValue, error)
- func (m *Merger) OneType(curr []ast.Type, more ...ast.Type) (ast.Type, error)
- func (m *Merger) OneTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) (*ast.TypeExtensionDefinition, error)
- func (m *Merger) OneUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) (*ast.UnionDefinition, error)
- func (m *Merger) OneValue(curr []ast.Value, more ...ast.Value) (ast.Value, error)
- func (m *Merger) OneVariable(curr []*ast.Variable, more ...*ast.Variable) (*ast.Variable, error)
- func (m *Merger) OneVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) (*ast.VariableDefinition, error)
- func (m *Merger) Onebool(curr []bool, more ...bool) (bool, error)
- func (m *Merger) Onestring(curr []string, more ...string) (string, error)
- func (m *Merger) SimilarArgument(curr []*ast.Argument, more ...*ast.Argument) ([]*ast.Argument, error)
- func (m *Merger) SimilarBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) ([]*ast.BooleanValue, error)
- func (m *Merger) SimilarDirective(curr []*ast.Directive, more ...*ast.Directive) ([]*ast.Directive, error)
- func (m *Merger) SimilarDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) ([]*ast.DirectiveDefinition, error)
- func (m *Merger) SimilarDocument(curr []*ast.Document, more ...*ast.Document) ([]*ast.Document, error)
- func (m *Merger) SimilarEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) ([]*ast.EnumDefinition, error)
- func (m *Merger) SimilarEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) ([]*ast.EnumValue, error)
- func (m *Merger) SimilarEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) ([]*ast.EnumValueDefinition, error)
- func (m *Merger) SimilarField(curr []*ast.Field, more ...*ast.Field) ([]*ast.Field, error)
- func (m *Merger) SimilarFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) ([]*ast.FieldDefinition, error)
- func (m *Merger) SimilarFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) ([]*ast.FloatValue, error)
- func (m *Merger) SimilarFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) ([]*ast.FragmentDefinition, error)
- func (m *Merger) SimilarFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) ([]*ast.FragmentSpread, error)
- func (m *Merger) SimilarInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) ([]*ast.InlineFragment, error)
- func (m *Merger) SimilarInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) ([]*ast.InputObjectDefinition, error)
- func (m *Merger) SimilarInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) ([]*ast.InputValueDefinition, error)
- func (m *Merger) SimilarIntValue(curr []*ast.IntValue, more ...*ast.IntValue) ([]*ast.IntValue, error)
- func (m *Merger) SimilarInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) ([]*ast.InterfaceDefinition, error)
- func (m *Merger) SimilarList(curr []*ast.List, more ...*ast.List) ([]*ast.List, error)
- func (m *Merger) SimilarName(curr []*ast.Name, more ...*ast.Name) ([]*ast.Name, error)
- func (m *Merger) SimilarNamed(curr []*ast.Named, more ...*ast.Named) ([]*ast.Named, error)
- func (m *Merger) SimilarNode(curr []ast.Node, more ...ast.Node) ([]ast.Node, error)
- func (m *Merger) SimilarNonNull(curr []*ast.NonNull, more ...*ast.NonNull) ([]*ast.NonNull, error)
- func (m *Merger) SimilarObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) ([]*ast.ObjectDefinition, error)
- func (m *Merger) SimilarObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) ([]*ast.ObjectField, error)
- func (m *Merger) SimilarObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) ([]*ast.ObjectValue, error)
- func (m *Merger) SimilarOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) ([]*ast.OperationDefinition, error)
- func (m *Merger) SimilarOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) ([]*ast.OperationTypeDefinition, error)
- func (m *Merger) SimilarScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) ([]*ast.ScalarDefinition, error)
- func (m *Merger) SimilarSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) ([]*ast.SchemaDefinition, error)
- func (m *Merger) SimilarSelection(curr []ast.Selection, more ...ast.Selection) ([]ast.Selection, error)
- func (m *Merger) SimilarSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) ([]*ast.SelectionSet, error)
- func (m *Merger) SimilarStringValue(curr []*ast.StringValue, more ...*ast.StringValue) ([]*ast.StringValue, error)
- func (m *Merger) SimilarType(curr []ast.Type, more ...ast.Type) ([]ast.Type, error)
- func (m *Merger) SimilarTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) ([]*ast.TypeExtensionDefinition, error)
- func (m *Merger) SimilarUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) ([]*ast.UnionDefinition, error)
- func (m *Merger) SimilarValue(curr []ast.Value, more ...ast.Value) ([]ast.Value, error)
- func (m *Merger) SimilarVariable(curr []*ast.Variable, more ...*ast.Variable) ([]*ast.Variable, error)
- func (m *Merger) SimilarVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) ([]*ast.VariableDefinition, error)
Constants ¶
This section is empty.
Variables ¶
var Basic = &Merger{
getValueID: defaultValueID,
getNodeID: defaultNodeID,
}
Basic is the default merger strategy
Functions ¶
func OneArgument ¶
OneArgument attempts to merge all members of Argument into a singe *ast.Argument. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneBooleanValue ¶
func OneBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) (*ast.BooleanValue, error)
OneBooleanValue attempts to merge all members of BooleanValue into a singe *ast.BooleanValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneDirective ¶
OneDirective attempts to merge all members of Directive into a singe *ast.Directive. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneDirectiveDefinition ¶
func OneDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) (*ast.DirectiveDefinition, error)
OneDirectiveDefinition attempts to merge all members of DirectiveDefinition into a singe *ast.DirectiveDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneDocument ¶
OneDocument attempts to merge all members of Document into a singe *ast.Document. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneEnumDefinition ¶
func OneEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) (*ast.EnumDefinition, error)
OneEnumDefinition attempts to merge all members of EnumDefinition into a singe *ast.EnumDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneEnumValue ¶
OneEnumValue attempts to merge all members of EnumValue into a singe *ast.EnumValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneEnumValueDefinition ¶
func OneEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) (*ast.EnumValueDefinition, error)
OneEnumValueDefinition attempts to merge all members of EnumValueDefinition into a singe *ast.EnumValueDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneField ¶
OneField attempts to merge all members of Field into a singe *ast.Field. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneFieldDefinition ¶
func OneFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) (*ast.FieldDefinition, error)
OneFieldDefinition attempts to merge all members of FieldDefinition into a singe *ast.FieldDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneFloatValue ¶
func OneFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) (*ast.FloatValue, error)
OneFloatValue attempts to merge all members of FloatValue into a singe *ast.FloatValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneFragmentDefinition ¶
func OneFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) (*ast.FragmentDefinition, error)
OneFragmentDefinition attempts to merge all members of FragmentDefinition into a singe *ast.FragmentDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneFragmentSpread ¶
func OneFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) (*ast.FragmentSpread, error)
OneFragmentSpread attempts to merge all members of FragmentSpread into a singe *ast.FragmentSpread. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneInlineFragment ¶
func OneInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) (*ast.InlineFragment, error)
OneInlineFragment attempts to merge all members of InlineFragment into a singe *ast.InlineFragment. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneInputObjectDefinition ¶
func OneInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) (*ast.InputObjectDefinition, error)
OneInputObjectDefinition attempts to merge all members of InputObjectDefinition into a singe *ast.InputObjectDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneInputValueDefinition ¶
func OneInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) (*ast.InputValueDefinition, error)
OneInputValueDefinition attempts to merge all members of InputValueDefinition into a singe *ast.InputValueDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneIntValue ¶
OneIntValue attempts to merge all members of IntValue into a singe *ast.IntValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneInterfaceDefinition ¶
func OneInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) (*ast.InterfaceDefinition, error)
OneInterfaceDefinition attempts to merge all members of InterfaceDefinition into a singe *ast.InterfaceDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneList ¶
OneList attempts to merge all members of List into a singe *ast.List. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneName ¶
OneName attempts to merge all members of Name into a singe *ast.Name. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneNamed ¶
OneNamed attempts to merge all members of Named into a singe *ast.Named. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneNode ¶
OneNode attempts to merge all members of Node into a singe ast.Node. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneNonNull ¶
OneNonNull attempts to merge all members of NonNull into a singe *ast.NonNull. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneObjectDefinition ¶
func OneObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) (*ast.ObjectDefinition, error)
OneObjectDefinition attempts to merge all members of ObjectDefinition into a singe *ast.ObjectDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneObjectField ¶
func OneObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) (*ast.ObjectField, error)
OneObjectField attempts to merge all members of ObjectField into a singe *ast.ObjectField. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneObjectValue ¶
func OneObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) (*ast.ObjectValue, error)
OneObjectValue attempts to merge all members of ObjectValue into a singe *ast.ObjectValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneOperationDefinition ¶
func OneOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) (*ast.OperationDefinition, error)
OneOperationDefinition attempts to merge all members of OperationDefinition into a singe *ast.OperationDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneOperationTypeDefinition ¶
func OneOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) (*ast.OperationTypeDefinition, error)
OneOperationTypeDefinition attempts to merge all members of OperationTypeDefinition into a singe *ast.OperationTypeDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneScalarDefinition ¶
func OneScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) (*ast.ScalarDefinition, error)
OneScalarDefinition attempts to merge all members of ScalarDefinition into a singe *ast.ScalarDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneSchemaDefinition ¶
func OneSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) (*ast.SchemaDefinition, error)
OneSchemaDefinition attempts to merge all members of SchemaDefinition into a singe *ast.SchemaDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneSelection ¶
OneSelection attempts to merge all members of Selection into a singe ast.Selection. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneSelectionSet ¶
func OneSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) (*ast.SelectionSet, error)
OneSelectionSet attempts to merge all members of SelectionSet into a singe *ast.SelectionSet. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneStringValue ¶
func OneStringValue(curr []*ast.StringValue, more ...*ast.StringValue) (*ast.StringValue, error)
OneStringValue attempts to merge all members of StringValue into a singe *ast.StringValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneType ¶
OneType attempts to merge all members of Type into a singe ast.Type. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneTypeExtensionDefinition ¶
func OneTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) (*ast.TypeExtensionDefinition, error)
OneTypeExtensionDefinition attempts to merge all members of TypeExtensionDefinition into a singe *ast.TypeExtensionDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneUnionDefinition ¶
func OneUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) (*ast.UnionDefinition, error)
OneUnionDefinition attempts to merge all members of UnionDefinition into a singe *ast.UnionDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneValue ¶
OneValue attempts to merge all members of Value into a singe ast.Value. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneVariable ¶
OneVariable attempts to merge all members of Variable into a singe *ast.Variable. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func OneVariableDefinition ¶
func OneVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) (*ast.VariableDefinition, error)
OneVariableDefinition attempts to merge all members of VariableDefinition into a singe *ast.VariableDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.
func SimilarArgument ¶
SimilarArgument merges declarations of Argument that share the same Argument value. This uses the default basic merge strategy.
func SimilarBooleanValue ¶
func SimilarBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) ([]*ast.BooleanValue, error)
SimilarBooleanValue merges declarations of BooleanValue that share the same BooleanValue value. This uses the default basic merge strategy.
func SimilarDirective ¶
SimilarDirective merges declarations of Directive that share the same Directive value. This uses the default basic merge strategy.
func SimilarDirectiveDefinition ¶
func SimilarDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) ([]*ast.DirectiveDefinition, error)
SimilarDirectiveDefinition merges declarations of DirectiveDefinition that share the same DirectiveDefinition value. This uses the default basic merge strategy.
func SimilarDocument ¶
SimilarDocument merges declarations of Document that share the same Document value. This uses the default basic merge strategy.
func SimilarEnumDefinition ¶
func SimilarEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) ([]*ast.EnumDefinition, error)
SimilarEnumDefinition merges declarations of EnumDefinition that share the same EnumDefinition value. This uses the default basic merge strategy.
func SimilarEnumValue ¶
SimilarEnumValue merges declarations of EnumValue that share the same EnumValue value. This uses the default basic merge strategy.
func SimilarEnumValueDefinition ¶
func SimilarEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) ([]*ast.EnumValueDefinition, error)
SimilarEnumValueDefinition merges declarations of EnumValueDefinition that share the same EnumValueDefinition value. This uses the default basic merge strategy.
func SimilarField ¶
SimilarField merges declarations of Field that share the same Field value. This uses the default basic merge strategy.
func SimilarFieldDefinition ¶
func SimilarFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) ([]*ast.FieldDefinition, error)
SimilarFieldDefinition merges declarations of FieldDefinition that share the same FieldDefinition value. This uses the default basic merge strategy.
func SimilarFloatValue ¶
func SimilarFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) ([]*ast.FloatValue, error)
SimilarFloatValue merges declarations of FloatValue that share the same FloatValue value. This uses the default basic merge strategy.
func SimilarFragmentDefinition ¶
func SimilarFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) ([]*ast.FragmentDefinition, error)
SimilarFragmentDefinition merges declarations of FragmentDefinition that share the same FragmentDefinition value. This uses the default basic merge strategy.
func SimilarFragmentSpread ¶
func SimilarFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) ([]*ast.FragmentSpread, error)
SimilarFragmentSpread merges declarations of FragmentSpread that share the same FragmentSpread value. This uses the default basic merge strategy.
func SimilarInlineFragment ¶
func SimilarInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) ([]*ast.InlineFragment, error)
SimilarInlineFragment merges declarations of InlineFragment that share the same InlineFragment value. This uses the default basic merge strategy.
func SimilarInputObjectDefinition ¶
func SimilarInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) ([]*ast.InputObjectDefinition, error)
SimilarInputObjectDefinition merges declarations of InputObjectDefinition that share the same InputObjectDefinition value. This uses the default basic merge strategy.
func SimilarInputValueDefinition ¶
func SimilarInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) ([]*ast.InputValueDefinition, error)
SimilarInputValueDefinition merges declarations of InputValueDefinition that share the same InputValueDefinition value. This uses the default basic merge strategy.
func SimilarIntValue ¶
SimilarIntValue merges declarations of IntValue that share the same IntValue value. This uses the default basic merge strategy.
func SimilarInterfaceDefinition ¶
func SimilarInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) ([]*ast.InterfaceDefinition, error)
SimilarInterfaceDefinition merges declarations of InterfaceDefinition that share the same InterfaceDefinition value. This uses the default basic merge strategy.
func SimilarList ¶
SimilarList merges declarations of List that share the same List value. This uses the default basic merge strategy.
func SimilarName ¶
SimilarName merges declarations of Name that share the same Name value. This uses the default basic merge strategy.
func SimilarNamed ¶
SimilarNamed merges declarations of Named that share the same Named value. This uses the default basic merge strategy.
func SimilarNode ¶
SimilarNode merges declarations of Node that share the same Node value. This uses the default basic merge strategy.
func SimilarNonNull ¶
SimilarNonNull merges declarations of NonNull that share the same NonNull value. This uses the default basic merge strategy.
func SimilarObjectDefinition ¶
func SimilarObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) ([]*ast.ObjectDefinition, error)
SimilarObjectDefinition merges declarations of ObjectDefinition that share the same ObjectDefinition value. This uses the default basic merge strategy.
func SimilarObjectField ¶
func SimilarObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) ([]*ast.ObjectField, error)
SimilarObjectField merges declarations of ObjectField that share the same ObjectField value. This uses the default basic merge strategy.
func SimilarObjectValue ¶
func SimilarObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) ([]*ast.ObjectValue, error)
SimilarObjectValue merges declarations of ObjectValue that share the same ObjectValue value. This uses the default basic merge strategy.
func SimilarOperationDefinition ¶
func SimilarOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) ([]*ast.OperationDefinition, error)
SimilarOperationDefinition merges declarations of OperationDefinition that share the same OperationDefinition value. This uses the default basic merge strategy.
func SimilarOperationTypeDefinition ¶
func SimilarOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) ([]*ast.OperationTypeDefinition, error)
SimilarOperationTypeDefinition merges declarations of OperationTypeDefinition that share the same OperationTypeDefinition value. This uses the default basic merge strategy.
func SimilarScalarDefinition ¶
func SimilarScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) ([]*ast.ScalarDefinition, error)
SimilarScalarDefinition merges declarations of ScalarDefinition that share the same ScalarDefinition value. This uses the default basic merge strategy.
func SimilarSchemaDefinition ¶
func SimilarSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) ([]*ast.SchemaDefinition, error)
SimilarSchemaDefinition merges declarations of SchemaDefinition that share the same SchemaDefinition value. This uses the default basic merge strategy.
func SimilarSelection ¶
SimilarSelection merges declarations of Selection that share the same Selection value. This uses the default basic merge strategy.
func SimilarSelectionSet ¶
func SimilarSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) ([]*ast.SelectionSet, error)
SimilarSelectionSet merges declarations of SelectionSet that share the same SelectionSet value. This uses the default basic merge strategy.
func SimilarStringValue ¶
func SimilarStringValue(curr []*ast.StringValue, more ...*ast.StringValue) ([]*ast.StringValue, error)
SimilarStringValue merges declarations of StringValue that share the same StringValue value. This uses the default basic merge strategy.
func SimilarType ¶
SimilarType merges declarations of Type that share the same Type value. This uses the default basic merge strategy.
func SimilarTypeExtensionDefinition ¶
func SimilarTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) ([]*ast.TypeExtensionDefinition, error)
SimilarTypeExtensionDefinition merges declarations of TypeExtensionDefinition that share the same TypeExtensionDefinition value. This uses the default basic merge strategy.
func SimilarUnionDefinition ¶
func SimilarUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) ([]*ast.UnionDefinition, error)
SimilarUnionDefinition merges declarations of UnionDefinition that share the same UnionDefinition value. This uses the default basic merge strategy.
func SimilarValue ¶
SimilarValue merges declarations of Value that share the same Value value. This uses the default basic merge strategy.
func SimilarVariable ¶
SimilarVariable merges declarations of Variable that share the same Variable value. This uses the default basic merge strategy.
func SimilarVariableDefinition ¶
func SimilarVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) ([]*ast.VariableDefinition, error)
SimilarVariableDefinition merges declarations of VariableDefinition that share the same VariableDefinition value. This uses the default basic merge strategy.
Types ¶
type Merger ¶
type Merger struct {
// contains filtered or unexported fields
}
Merger ...
func (*Merger) OneArgument ¶
OneArgument attempts to merge all members of Argument into a singe *ast.Argument. If this cannot be done, this method will return an error.
func (*Merger) OneBooleanValue ¶
func (m *Merger) OneBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) (*ast.BooleanValue, error)
OneBooleanValue attempts to merge all members of BooleanValue into a singe *ast.BooleanValue. If this cannot be done, this method will return an error.
func (*Merger) OneDirective ¶
func (m *Merger) OneDirective(curr []*ast.Directive, more ...*ast.Directive) (*ast.Directive, error)
OneDirective attempts to merge all members of Directive into a singe *ast.Directive. If this cannot be done, this method will return an error.
func (*Merger) OneDirectiveDefinition ¶
func (m *Merger) OneDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) (*ast.DirectiveDefinition, error)
OneDirectiveDefinition attempts to merge all members of DirectiveDefinition into a singe *ast.DirectiveDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneDocument ¶
OneDocument attempts to merge all members of Document into a singe *ast.Document. If this cannot be done, this method will return an error.
func (*Merger) OneEnumDefinition ¶
func (m *Merger) OneEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) (*ast.EnumDefinition, error)
OneEnumDefinition attempts to merge all members of EnumDefinition into a singe *ast.EnumDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneEnumValue ¶
func (m *Merger) OneEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) (*ast.EnumValue, error)
OneEnumValue attempts to merge all members of EnumValue into a singe *ast.EnumValue. If this cannot be done, this method will return an error.
func (*Merger) OneEnumValueDefinition ¶
func (m *Merger) OneEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) (*ast.EnumValueDefinition, error)
OneEnumValueDefinition attempts to merge all members of EnumValueDefinition into a singe *ast.EnumValueDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneField ¶
OneField attempts to merge all members of Field into a singe *ast.Field. If this cannot be done, this method will return an error.
func (*Merger) OneFieldDefinition ¶
func (m *Merger) OneFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) (*ast.FieldDefinition, error)
OneFieldDefinition attempts to merge all members of FieldDefinition into a singe *ast.FieldDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneFloatValue ¶
func (m *Merger) OneFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) (*ast.FloatValue, error)
OneFloatValue attempts to merge all members of FloatValue into a singe *ast.FloatValue. If this cannot be done, this method will return an error.
func (*Merger) OneFragmentDefinition ¶
func (m *Merger) OneFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) (*ast.FragmentDefinition, error)
OneFragmentDefinition attempts to merge all members of FragmentDefinition into a singe *ast.FragmentDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneFragmentSpread ¶
func (m *Merger) OneFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) (*ast.FragmentSpread, error)
OneFragmentSpread attempts to merge all members of FragmentSpread into a singe *ast.FragmentSpread. If this cannot be done, this method will return an error.
func (*Merger) OneInlineFragment ¶
func (m *Merger) OneInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) (*ast.InlineFragment, error)
OneInlineFragment attempts to merge all members of InlineFragment into a singe *ast.InlineFragment. If this cannot be done, this method will return an error.
func (*Merger) OneInputObjectDefinition ¶
func (m *Merger) OneInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) (*ast.InputObjectDefinition, error)
OneInputObjectDefinition attempts to merge all members of InputObjectDefinition into a singe *ast.InputObjectDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneInputValueDefinition ¶
func (m *Merger) OneInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) (*ast.InputValueDefinition, error)
OneInputValueDefinition attempts to merge all members of InputValueDefinition into a singe *ast.InputValueDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneIntValue ¶
OneIntValue attempts to merge all members of IntValue into a singe *ast.IntValue. If this cannot be done, this method will return an error.
func (*Merger) OneInterfaceDefinition ¶
func (m *Merger) OneInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) (*ast.InterfaceDefinition, error)
OneInterfaceDefinition attempts to merge all members of InterfaceDefinition into a singe *ast.InterfaceDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneList ¶
OneList attempts to merge all members of List into a singe *ast.List. If this cannot be done, this method will return an error.
func (*Merger) OneName ¶
OneName attempts to merge all members of Name into a singe *ast.Name. If this cannot be done, this method will return an error.
func (*Merger) OneNamed ¶
OneNamed attempts to merge all members of Named into a singe *ast.Named. If this cannot be done, this method will return an error.
func (*Merger) OneNode ¶
OneNode attempts to merge all members of Node into a singe ast.Node. If this cannot be done, this method will return an error.
func (*Merger) OneNonNull ¶
OneNonNull attempts to merge all members of NonNull into a singe *ast.NonNull. If this cannot be done, this method will return an error.
func (*Merger) OneObjectDefinition ¶
func (m *Merger) OneObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) (*ast.ObjectDefinition, error)
OneObjectDefinition attempts to merge all members of ObjectDefinition into a singe *ast.ObjectDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneObjectField ¶
func (m *Merger) OneObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) (*ast.ObjectField, error)
OneObjectField attempts to merge all members of ObjectField into a singe *ast.ObjectField. If this cannot be done, this method will return an error.
func (*Merger) OneObjectValue ¶
func (m *Merger) OneObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) (*ast.ObjectValue, error)
OneObjectValue attempts to merge all members of ObjectValue into a singe *ast.ObjectValue. If this cannot be done, this method will return an error.
func (*Merger) OneOperationDefinition ¶
func (m *Merger) OneOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) (*ast.OperationDefinition, error)
OneOperationDefinition attempts to merge all members of OperationDefinition into a singe *ast.OperationDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneOperationTypeDefinition ¶
func (m *Merger) OneOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) (*ast.OperationTypeDefinition, error)
OneOperationTypeDefinition attempts to merge all members of OperationTypeDefinition into a singe *ast.OperationTypeDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneScalarDefinition ¶
func (m *Merger) OneScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) (*ast.ScalarDefinition, error)
OneScalarDefinition attempts to merge all members of ScalarDefinition into a singe *ast.ScalarDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneSchemaDefinition ¶
func (m *Merger) OneSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) (*ast.SchemaDefinition, error)
OneSchemaDefinition attempts to merge all members of SchemaDefinition into a singe *ast.SchemaDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneSelection ¶
OneSelection attempts to merge all members of Selection into a singe ast.Selection. If this cannot be done, this method will return an error.
func (*Merger) OneSelectionSet ¶
func (m *Merger) OneSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) (*ast.SelectionSet, error)
OneSelectionSet attempts to merge all members of SelectionSet into a singe *ast.SelectionSet. If this cannot be done, this method will return an error.
func (*Merger) OneStringValue ¶
func (m *Merger) OneStringValue(curr []*ast.StringValue, more ...*ast.StringValue) (*ast.StringValue, error)
OneStringValue attempts to merge all members of StringValue into a singe *ast.StringValue. If this cannot be done, this method will return an error.
func (*Merger) OneType ¶
OneType attempts to merge all members of Type into a singe ast.Type. If this cannot be done, this method will return an error.
func (*Merger) OneTypeExtensionDefinition ¶
func (m *Merger) OneTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) (*ast.TypeExtensionDefinition, error)
OneTypeExtensionDefinition attempts to merge all members of TypeExtensionDefinition into a singe *ast.TypeExtensionDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneUnionDefinition ¶
func (m *Merger) OneUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) (*ast.UnionDefinition, error)
OneUnionDefinition attempts to merge all members of UnionDefinition into a singe *ast.UnionDefinition. If this cannot be done, this method will return an error.
func (*Merger) OneValue ¶
OneValue attempts to merge all members of Value into a singe ast.Value. If this cannot be done, this method will return an error.
func (*Merger) OneVariable ¶
OneVariable attempts to merge all members of Variable into a singe *ast.Variable. If this cannot be done, this method will return an error.
func (*Merger) OneVariableDefinition ¶
func (m *Merger) OneVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) (*ast.VariableDefinition, error)
OneVariableDefinition attempts to merge all members of VariableDefinition into a singe *ast.VariableDefinition. If this cannot be done, this method will return an error.
func (*Merger) SimilarArgument ¶
func (m *Merger) SimilarArgument(curr []*ast.Argument, more ...*ast.Argument) ([]*ast.Argument, error)
SimilarArgument merges declarations of Argument that share the same Argument value.
func (*Merger) SimilarBooleanValue ¶
func (m *Merger) SimilarBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) ([]*ast.BooleanValue, error)
SimilarBooleanValue merges declarations of BooleanValue that share the same BooleanValue value.
func (*Merger) SimilarDirective ¶
func (m *Merger) SimilarDirective(curr []*ast.Directive, more ...*ast.Directive) ([]*ast.Directive, error)
SimilarDirective merges declarations of Directive that share the same Directive value.
func (*Merger) SimilarDirectiveDefinition ¶
func (m *Merger) SimilarDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) ([]*ast.DirectiveDefinition, error)
SimilarDirectiveDefinition merges declarations of DirectiveDefinition that share the same DirectiveDefinition value.
func (*Merger) SimilarDocument ¶
func (m *Merger) SimilarDocument(curr []*ast.Document, more ...*ast.Document) ([]*ast.Document, error)
SimilarDocument merges declarations of Document that share the same Document value.
func (*Merger) SimilarEnumDefinition ¶
func (m *Merger) SimilarEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) ([]*ast.EnumDefinition, error)
SimilarEnumDefinition merges declarations of EnumDefinition that share the same EnumDefinition value.
func (*Merger) SimilarEnumValue ¶
func (m *Merger) SimilarEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) ([]*ast.EnumValue, error)
SimilarEnumValue merges declarations of EnumValue that share the same EnumValue value.
func (*Merger) SimilarEnumValueDefinition ¶
func (m *Merger) SimilarEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) ([]*ast.EnumValueDefinition, error)
SimilarEnumValueDefinition merges declarations of EnumValueDefinition that share the same EnumValueDefinition value.
func (*Merger) SimilarField ¶
SimilarField merges declarations of Field that share the same Field value.
func (*Merger) SimilarFieldDefinition ¶
func (m *Merger) SimilarFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) ([]*ast.FieldDefinition, error)
SimilarFieldDefinition merges declarations of FieldDefinition that share the same FieldDefinition value.
func (*Merger) SimilarFloatValue ¶
func (m *Merger) SimilarFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) ([]*ast.FloatValue, error)
SimilarFloatValue merges declarations of FloatValue that share the same FloatValue value.
func (*Merger) SimilarFragmentDefinition ¶
func (m *Merger) SimilarFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) ([]*ast.FragmentDefinition, error)
SimilarFragmentDefinition merges declarations of FragmentDefinition that share the same FragmentDefinition value.
func (*Merger) SimilarFragmentSpread ¶
func (m *Merger) SimilarFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) ([]*ast.FragmentSpread, error)
SimilarFragmentSpread merges declarations of FragmentSpread that share the same FragmentSpread value.
func (*Merger) SimilarInlineFragment ¶
func (m *Merger) SimilarInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) ([]*ast.InlineFragment, error)
SimilarInlineFragment merges declarations of InlineFragment that share the same InlineFragment value.
func (*Merger) SimilarInputObjectDefinition ¶
func (m *Merger) SimilarInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) ([]*ast.InputObjectDefinition, error)
SimilarInputObjectDefinition merges declarations of InputObjectDefinition that share the same InputObjectDefinition value.
func (*Merger) SimilarInputValueDefinition ¶
func (m *Merger) SimilarInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) ([]*ast.InputValueDefinition, error)
SimilarInputValueDefinition merges declarations of InputValueDefinition that share the same InputValueDefinition value.
func (*Merger) SimilarIntValue ¶
func (m *Merger) SimilarIntValue(curr []*ast.IntValue, more ...*ast.IntValue) ([]*ast.IntValue, error)
SimilarIntValue merges declarations of IntValue that share the same IntValue value.
func (*Merger) SimilarInterfaceDefinition ¶
func (m *Merger) SimilarInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) ([]*ast.InterfaceDefinition, error)
SimilarInterfaceDefinition merges declarations of InterfaceDefinition that share the same InterfaceDefinition value.
func (*Merger) SimilarList ¶
SimilarList merges declarations of List that share the same List value.
func (*Merger) SimilarName ¶
SimilarName merges declarations of Name that share the same Name value.
func (*Merger) SimilarNamed ¶
SimilarNamed merges declarations of Named that share the same Named value.
func (*Merger) SimilarNode ¶
SimilarNode merges declarations of Node that share the same Node value.
func (*Merger) SimilarNonNull ¶
SimilarNonNull merges declarations of NonNull that share the same NonNull value.
func (*Merger) SimilarObjectDefinition ¶
func (m *Merger) SimilarObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) ([]*ast.ObjectDefinition, error)
SimilarObjectDefinition merges declarations of ObjectDefinition that share the same ObjectDefinition value.
func (*Merger) SimilarObjectField ¶
func (m *Merger) SimilarObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) ([]*ast.ObjectField, error)
SimilarObjectField merges declarations of ObjectField that share the same ObjectField value.
func (*Merger) SimilarObjectValue ¶
func (m *Merger) SimilarObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) ([]*ast.ObjectValue, error)
SimilarObjectValue merges declarations of ObjectValue that share the same ObjectValue value.
func (*Merger) SimilarOperationDefinition ¶
func (m *Merger) SimilarOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) ([]*ast.OperationDefinition, error)
SimilarOperationDefinition merges declarations of OperationDefinition that share the same OperationDefinition value.
func (*Merger) SimilarOperationTypeDefinition ¶
func (m *Merger) SimilarOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) ([]*ast.OperationTypeDefinition, error)
SimilarOperationTypeDefinition merges declarations of OperationTypeDefinition that share the same OperationTypeDefinition value.
func (*Merger) SimilarScalarDefinition ¶
func (m *Merger) SimilarScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) ([]*ast.ScalarDefinition, error)
SimilarScalarDefinition merges declarations of ScalarDefinition that share the same ScalarDefinition value.
func (*Merger) SimilarSchemaDefinition ¶
func (m *Merger) SimilarSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) ([]*ast.SchemaDefinition, error)
SimilarSchemaDefinition merges declarations of SchemaDefinition that share the same SchemaDefinition value.
func (*Merger) SimilarSelection ¶
func (m *Merger) SimilarSelection(curr []ast.Selection, more ...ast.Selection) ([]ast.Selection, error)
SimilarSelection merges declarations of Selection that share the same Selection value.
func (*Merger) SimilarSelectionSet ¶
func (m *Merger) SimilarSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) ([]*ast.SelectionSet, error)
SimilarSelectionSet merges declarations of SelectionSet that share the same SelectionSet value.
func (*Merger) SimilarStringValue ¶
func (m *Merger) SimilarStringValue(curr []*ast.StringValue, more ...*ast.StringValue) ([]*ast.StringValue, error)
SimilarStringValue merges declarations of StringValue that share the same StringValue value.
func (*Merger) SimilarType ¶
SimilarType merges declarations of Type that share the same Type value.
func (*Merger) SimilarTypeExtensionDefinition ¶
func (m *Merger) SimilarTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) ([]*ast.TypeExtensionDefinition, error)
SimilarTypeExtensionDefinition merges declarations of TypeExtensionDefinition that share the same TypeExtensionDefinition value.
func (*Merger) SimilarUnionDefinition ¶
func (m *Merger) SimilarUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) ([]*ast.UnionDefinition, error)
SimilarUnionDefinition merges declarations of UnionDefinition that share the same UnionDefinition value.
func (*Merger) SimilarValue ¶
SimilarValue merges declarations of Value that share the same Value value.
func (*Merger) SimilarVariable ¶
func (m *Merger) SimilarVariable(curr []*ast.Variable, more ...*ast.Variable) ([]*ast.Variable, error)
SimilarVariable merges declarations of Variable that share the same Variable value.
func (*Merger) SimilarVariableDefinition ¶
func (m *Merger) SimilarVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) ([]*ast.VariableDefinition, error)
SimilarVariableDefinition merges declarations of VariableDefinition that share the same VariableDefinition value.
Source Files ¶
- mergers_argument_gen.go
- mergers_booleanvalue_gen.go
- mergers_directive_gen.go
- mergers_directivedefinition_gen.go
- mergers_document_gen.go
- mergers_enumdefinition_gen.go
- mergers_enumvalue_gen.go
- mergers_enumvaluedefinition_gen.go
- mergers_field_gen.go
- mergers_fielddefinition_gen.go
- mergers_floatvalue_gen.go
- mergers_fragmentdefinition_gen.go
- mergers_fragmentspread_gen.go
- mergers_inlinefragment_gen.go
- mergers_inputobjectdefinition_gen.go
- mergers_inputvaluedefinition_gen.go
- mergers_interfacedefinition_gen.go
- mergers_intvalue_gen.go
- mergers_list_gen.go
- mergers_name_gen.go
- mergers_named_gen.go
- mergers_node_gen.go
- mergers_nonnull_gen.go
- mergers_objectdefinition_gen.go
- mergers_objectfield_gen.go
- mergers_objectvalue_gen.go
- mergers_operationdefinition_gen.go
- mergers_operationtypedefinition_gen.go
- mergers_scalardefinition_gen.go
- mergers_schemadefinition_gen.go
- mergers_selection_gen.go
- mergers_selectionset_gen.go
- mergers_stringvalue_gen.go
- mergers_type_gen.go
- mergers_typeextensiondefinition_gen.go
- mergers_uniondefinition_gen.go
- mergers_value_gen.go
- mergers_variable_gen.go
- mergers_variabledefinition_gen.go
- strategy.go