public override object VisitDirectives(GraphQLParser.DirectivesContext context) { var directives = new Directives(); foreach (var dir in context.directive()) { directives.Add((Directive)Visit(dir)); } return(directives); }
public Directives Directives(IEnumerable <GraphQLDirective> directives) { var target = new Directives(); directives?.Apply(d => { var dir = new Directive(Name(d.Name)).WithLocation(d, _body); dir.Arguments = Arguments(d.Arguments); target.Add(dir); }); return(target); }
public Directives Directives(IEnumerable <GraphQLDirective> directives) { var target = new Directives(); if (directives != null) { foreach (var d in directives) { target.Add(Directive(d)); } } return(target); }
public Directives Directives(IEnumerable <GraphQLDirective> directives) { var target = new Directives(); if (directives != null) { foreach (var d in directives) { var dir = new Directive(Name(d.Name)).WithLocation(d, _body); dir.Arguments = Arguments(d.Arguments); target.Add(dir); } } return(target); }
protected bool Equals(Directives directives) { return(false); }
public FragmentDefinition() { Directives = new Directives(); }
public Operation() { OperationType = OperationType.Query; Directives = new Directives(); Variables = new VariableDefinitions(); }
public FragmentSpread() { Directives = new Directives(); }