Пример #1
0
 public override INode VisitInlineFragment(InlineFragment node)
 {
     Visit(node.TypeCondition);
     VisitList(node.Directives);
     Visit(node.SelectionSet);
     return(DefaultVisit(node));
 }
Пример #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);
        }
Пример #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);
        }
Пример #4
0
 public virtual TResult VisitInlineFragment(InlineFragment node)
 {
     return(DefaultVisit(node));
 }
Пример #5
0
 public virtual InlineFragment LeaveInlineFragment(InlineFragment inlineFragment)
 {
     return(Leave(inlineFragment));
 }
Пример #6
0
 public virtual InlineFragment EnterInlineFragment(InlineFragment inlineFragment)
 {
     return(Enter(inlineFragment));
 }