Beispiel #1
0
        public override string VisitFragmentSpread(FragmentSpread node)
        {
            var name       = Visit(node.Name);
            var directives = JoinNotNull(" ", VisitList(node.Directives));
            var res        = $"...{name}{Wrap(" ", directives)}";

            return(res);
        }
Beispiel #2
0
        public override INode VisitFragmentSpread(FragmentSpread node)
        {
            var updatedNode = EnterFragmentSpread(node);

            if (updatedNode == null)
            {
                return(null);
            }
            var name       = Visit(updatedNode.Name);
            var directives = VisitList(updatedNode.Directives);

            updatedNode = updatedNode.Update(name, directives);
            updatedNode = LeaveFragmentSpread(updatedNode);
            return(updatedNode);
        }
Beispiel #3
0
 public virtual TResult VisitFragmentSpread(FragmentSpread node)
 {
     return(DefaultVisit(node));
 }
Beispiel #4
0
 public override INode VisitFragmentSpread(FragmentSpread node)
 {
     Visit(node.Name);
     VisitList(node.Directives);
     return(DefaultVisit(node));
 }
Beispiel #5
0
 public virtual FragmentSpread LeaveFragmentSpread(FragmentSpread fragmentSpread)
 {
     return(Leave(fragmentSpread));
 }
Beispiel #6
0
 public virtual FragmentSpread EnterFragmentSpread(FragmentSpread fragmentSpread)
 {
     return(Enter(fragmentSpread));
 }