Exemplo n.º 1
0
 public FragmentDefinition(string name, TypeCondition typeCondition, IEnumerable <Directive>?directives, SelectionSet selectionSet, LocationRange location) : base(location)
 {
     Name          = name;
     TypeCondition = typeCondition;
     SelectionSet  = selectionSet;
     Directives    = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
 public InterfaceTypeDefinition(string name, string?description, IEnumerable <Directive>?directives, IEnumerable <FieldDefinition>?fields, LocationRange location) : base(location)
 {
     Name        = name;
     Description = description;
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
     Fields      = fields?.ToArray() ?? EmptyArrayHelper.Empty <FieldDefinition>();
 }
Exemplo n.º 3
0
 public DirectiveDefinition(string name, string?description, IEnumerable <string> directiveLocations, IEnumerable <InputValueDefinition>?arguments, LocationRange location) : base(location)
 {
     Name               = name;
     Description        = description;
     DirectiveLocations = directiveLocations.ToArray();
     Arguments          = arguments?.ToArray() ?? EmptyArrayHelper.Empty <InputValueDefinition>();
 }
Exemplo n.º 4
0
 public EnumTypeDefinition(string name, string?description, IEnumerable <EnumValueDefinition> enumValues, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     Name        = name;
     Description = description;
     EnumValues  = enumValues.ToArray();
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
Exemplo n.º 5
0
 public UnionTypeDefinition(string name, string?description, IEnumerable <Directive>?directives, IEnumerable <TypeName> unionMembers, LocationRange location) : base(location)
 {
     Name         = name;
     Description  = description;
     UnionMembers = unionMembers.ToArray();
     Directives   = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
Exemplo n.º 6
0
 public OperationDefinition(OperationType operationType, string?name, IEnumerable <VariableDefinition>?variables, SelectionSet selectionSet, LocationRange location)
 {
     this.OperationType = operationType;
     this.Name          = name;
     this.Variables     = variables?.ToArray() ?? EmptyArrayHelper.Empty <VariableDefinition>();
     this.SelectionSet  = selectionSet;
     this.Location      = location;
 }
Exemplo n.º 7
0
 public InputValueDefinition(string name, string?description, ITypeNode typeNode, IValueNode?defaultValue, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     Name         = name;
     Description  = description;
     TypeNode     = typeNode;
     DefaultValue = defaultValue;
     Directives   = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
Exemplo n.º 8
0
 public Field(string name, string?alias, IEnumerable <Argument>?arguments, IEnumerable <Directive>?directives, SelectionSet?selectionSet, LocationRange location)
     : base(location)
 {
     Name         = name;
     Alias        = alias;
     SelectionSet = selectionSet;
     Arguments    = arguments?.ToArray() ?? EmptyArrayHelper.Empty <Argument>();
     Directives   = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
Exemplo n.º 9
0
 public FieldDefinition(
     string name,
     string?description,
     ITypeNode typeNode,
     IEnumerable <InputValueDefinition>?arguments,
     IEnumerable <Directive>?directives,
     LocationRange location) : base(location)
 {
     Name        = name;
     Description = description;
     TypeNode    = typeNode;
     Arguments   = arguments?.ToArray() ?? EmptyArrayHelper.Empty <InputValueDefinition>();
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
Exemplo n.º 10
0
 public InlineFragment(TypeCondition?typeCondition, IEnumerable <Directive>?directives, SelectionSet selectionSet, LocationRange location) : base(location)
 {
     TypeCondition = typeCondition;
     Directives    = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
     SelectionSet  = selectionSet;
 }
Exemplo n.º 11
0
 public EnumValueDefinition(EnumValue enumValue, string?description, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     EnumValue   = enumValue;
     Description = description;
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
Exemplo n.º 12
0
 public Directive(string name, IEnumerable <Argument>?arguments, LocationRange location) : base(location)
 {
     Name      = name;
     Arguments = arguments?.ToArray() ?? EmptyArrayHelper.Empty <Argument>();
 }
Exemplo n.º 13
0
 public SchemaDefinition(string?description, IEnumerable <Directive>?directives, IEnumerable <OperationTypeDefinition> operationTypes, LocationRange location) : base(location)
 {
     Description    = description;
     Directives     = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
     OperationTypes = operationTypes.ToArray();
 }
Exemplo n.º 14
0
 public FragmentSpread(string fragmentName, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     FragmentName = fragmentName;
     Directives   = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }