Exemplo n.º 1
0
 public override INode VisitInlineFragment(InlineFragment node)
 {
     Visit(node.TypeCondition);
     VisitList(node.Directives);
     Visit(node.SelectionSet);
     return(DefaultVisit(node));
 }
Exemplo n.º 2
0
        public override string VisitInlineFragment(InlineFragment node)
        {
            var typeCondition  = Visit(node.TypeCondition);
            var directives     = JoinNotNull(" ", VisitList(node.Directives));
            var selectionSet   = Visit(node.SelectionSet);
            var inlineFragment = $"... on {typeCondition} {Wrap("", directives, " ")}{selectionSet}";

            return(inlineFragment);
        }
Exemplo n.º 3
0
        public override INode VisitInlineFragment(InlineFragment node)
        {
            var updatedNode = EnterInlineFragment(node);

            if (updatedNode == null)
            {
                return(null);
            }
            var typeCondition = Visit(updatedNode.TypeCondition);
            var directives    = VisitList(updatedNode.Directives);
            var selectionSet  = Visit(updatedNode.SelectionSet);

            updatedNode = updatedNode.Update(typeCondition, directives, selectionSet);
            updatedNode = LeaveInlineFragment(updatedNode);
            return(updatedNode);
        }
Exemplo n.º 4
0
 public virtual TResult VisitInlineFragment(InlineFragment node)
 {
     return(DefaultVisit(node));
 }
Exemplo n.º 5
0
 public virtual InlineFragment LeaveInlineFragment(InlineFragment inlineFragment)
 {
     return(Leave(inlineFragment));
 }
Exemplo n.º 6
0
 public virtual InlineFragment EnterInlineFragment(InlineFragment inlineFragment)
 {
     return(Enter(inlineFragment));
 }