public override object VisitInlineFragment(GraphQLParser.InlineFragmentContext context) { var fragment = new InlineFragment(); fragment.Type = context.typeCondition().typeName().NAME().GetText(); if (context.directives() != null) { fragment.Directives = Visit(context.directives()) as Directives; } if (context.selectionSet() != null) { fragment.Selections = Visit(context.selectionSet()) as Selections; } return(fragment); }
/// <summary> /// Exit a parse tree produced by <see cref="GraphQLParser.inlineFragment"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitInlineFragment([NotNull] GraphQLParser.InlineFragmentContext context) { }