コード例 #1
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>();
 }
コード例 #2
0
ファイル: Directive.cs プロジェクト: mdekrey/GraphLinqQL
 public Directive(string name, IEnumerable <Argument>?arguments, LocationRange location) : base(location)
 {
     Name      = name;
     Arguments = arguments?.ToArray() ?? EmptyArrayHelper.Empty <Argument>();
 }
コード例 #3
0
ファイル: ArrayValue.cs プロジェクト: mdekrey/GraphLinqQL
 public ArrayValue(IEnumerable <IValueNode> values, LocationRange location) : base(location)
 {
     Values = values;
 }
コード例 #4
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>();
 }
コード例 #5
0
ファイル: InlineFragment.cs プロジェクト: mdekrey/GraphLinqQL
 public InlineFragment(TypeCondition?typeCondition, IEnumerable <Directive>?directives, SelectionSet selectionSet, LocationRange location) : base(location)
 {
     TypeCondition = typeCondition;
     Directives    = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
     SelectionSet  = selectionSet;
 }
コード例 #6
0
 public ListType(ITypeNode elementType, LocationRange location) : base(location)
 {
     ElementType = elementType;
 }
コード例 #7
0
ファイル: SelectionSet.cs プロジェクト: mdekrey/GraphLinqQL
 public SelectionSet(IEnumerable <ISelection> selections, LocationRange location)
     : base(location)
 {
     Selections = selections.ToArray();
 }
コード例 #8
0
ファイル: ObjectValue.cs プロジェクト: mdekrey/GraphLinqQL
 public ObjectValue(IDictionary <string, IValueNode> fields, LocationRange location) : base(location)
 {
     Fields = new ReadOnlyDictionary <string, IValueNode>(new Dictionary <string, IValueNode>(fields));
 }
コード例 #9
0
ファイル: NodeBase.cs プロジェクト: mdekrey/GraphLinqQL
 public NodeBase(LocationRange location)
 {
     this.Location = location;
 }
コード例 #10
0
ファイル: Document.cs プロジェクト: mdekrey/GraphLinqQL
 public Document(IEnumerable <IDefinitionNode> children, LocationRange location)
     : base(location)
 {
     this.Children = children.ToArray();
 }
コード例 #11
0
ファイル: Variable.cs プロジェクト: mdekrey/GraphLinqQL
 public Variable(string name, LocationRange location) : base(location)
 {
     Name = name;
 }
コード例 #12
0
ファイル: FragmentSpread.cs プロジェクト: mdekrey/GraphLinqQL
 public FragmentSpread(string fragmentName, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     FragmentName = fragmentName;
     Directives   = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
コード例 #13
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>();
 }
コード例 #14
0
 public EnumValueDefinition(EnumValue enumValue, string?description, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     EnumValue   = enumValue;
     Description = description;
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
コード例 #15
0
 public InputObjectTypeDefinition(string name, string?description, IEnumerable <Directive>?directives, IEnumerable <InputValueDefinition>?fields, LocationRange location) : base(location)
 {
     Name        = name;
     Description = description;
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
     InputValues = fields?.ToArray() ?? EmptyArrayHelper.Empty <InputValueDefinition>();
 }
コード例 #16
0
ファイル: TypeName.cs プロジェクト: mdekrey/GraphLinqQL
 public TypeName(string name, LocationRange location) : base(location)
 {
     Name = name;
 }
コード例 #17
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>();
 }
コード例 #18
0
ファイル: EnumValue.cs プロジェクト: mdekrey/GraphLinqQL
 public EnumValue(string tokenValue, LocationRange location) : base(location)
 {
     TokenValue = tokenValue;
 }
コード例 #19
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();
 }
コード例 #20
0
 public ObjectTypeDefinition(string name, string?description, IEnumerable <TypeName>?interfaces, IEnumerable <Directive>?directives, IEnumerable <FieldDefinition>?fields, LocationRange location) : base(location)
 {
     Name        = name;
     Description = description;
     Interfaces  = interfaces?.ToArray() ?? EmptyArrayHelper.Empty <TypeName>();
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
     Fields      = fields?.ToArray() ?? EmptyArrayHelper.Empty <FieldDefinition>();
 }
コード例 #21
0
 public ScalarTypeDefinition(string name, string?description, IEnumerable <Directive>?directives, LocationRange location) : base(location)
 {
     Name        = name;
     Description = description;
     Directives  = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>();
 }
コード例 #22
0
ファイル: BooleanValue.cs プロジェクト: mdekrey/GraphLinqQL
 public BooleanValue(string tokenValue, LocationRange location) : base(location)
 {
     TokenValue = tokenValue == "true";
 }
コード例 #23
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;
 }
コード例 #24
0
ファイル: Field.cs プロジェクト: mdekrey/GraphLinqQL
 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>();
 }
コード例 #25
0
 public NullValue(LocationRange location) : base(location)
 {
 }
コード例 #26
0
 public TripleQuotedStringValue(string quotedStringValue, LocationRange location) : base(location)
 {
     QuotedStringValue = quotedStringValue;
 }
コード例 #27
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>();
 }