Ejemplo n.º 1
0
        public override object VisitVariableDefinitions(GraphQLParser.VariableDefinitionsContext context)
        {
            var variables = new VariableDefinitions();

            context.variableDefinition().Apply(childContext =>
            {
                var variable = Visit(childContext) as VariableDefinition;
                variables.Add(variable);
            });

            return(variables);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="GraphQLParser.variableDefinitions"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitVariableDefinitions([NotNull] GraphQLParser.VariableDefinitionsContext context)
 {
 }