public override object VisitFactored_select_stmt([NotNull] SqlParser.Factored_select_stmtContext context) { var statement = (SelectStatement)VisitSelect_core(context.select_core()); if (context.ordering_term() != null) { statement.Orderby = new List <OrderbyColumn>(); foreach (var item in context.ordering_term()) { statement.Orderby.Add((OrderbyColumn)VisitOrdering_term(item)); } } if (context.limit_clause() != null) { ProcessLimitClause(context.limit_clause(), statement); } if (context.compound_clause() != null && context.compound_clause().Length > 0) { statement.IsCompound = true; statement.CompoundStatements = new List <CompoundSelectStatement>(); foreach (var item in context.compound_clause()) { var compoundStatement = (CompoundSelectStatement)VisitCompound_clause(item); statement.CompoundStatements.Add(compoundStatement); } } return(statement); }
/// <summary> /// Visit a parse tree produced by <see cref="SqlParser.factored_select_stmt"/>. /// <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 VisitFactored_select_stmt([NotNull] SqlParser.Factored_select_stmtContext context) { return(VisitChildren(context)); }