public InlineFragment(TypeCondition?typeCondition, IEnumerable <Directive>?directives, SelectionSet selectionSet, LocationRange location) : base(location) { TypeCondition = typeCondition; Directives = directives?.ToArray() ?? EmptyArrayHelper.Empty <Directive>(); SelectionSet = selectionSet; }
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 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; }