public FragmentSpread FragmentSpread(GraphQLFragmentSpread source) { var name = source.Name != null?Name(source.Name) : null; var spread = new FragmentSpread(name).WithLocation(source, _body); spread.Directives = Directives(source.Directives); return(spread); }
public override object VisitFragmentSpread(GraphQLParser.FragmentSpreadContext context) { var fragment = new FragmentSpread(); fragment.Name = context.fragmentName().GetText(); if (context.directives() != null) { fragment.Directives = Visit(context.directives()) as Directives; } return(fragment); }
protected bool Equals(FragmentSpread other) { return(string.Equals(Name, other.Name)); }