public override Form VisitForm(QLMainParser.FormContext context)
        {
            List <FormObject> formObjects = context.formSection()
                                            .formObject()
                                            .Select(child => child.Accept(new FormObjectVisitor()))
                                            .ToList();

            return(new Form(formObjects, new PositionInText(context)));
        }
示例#2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="QLMainParser.form"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitForm([NotNull] QLMainParser.FormContext context)
 {
     return(VisitChildren(context));
 }