public override object VisitCompound_clause([NotNull] SqlParser.Compound_clauseContext context) { var statement = new CompoundSelectStatement(); if (context.compound_operator().K_UNION() != null && context.compound_operator().K_ALL() != null) { statement.CompoundType = CompoundType.UnionAll; } else if (context.compound_operator().K_UNION() != null) { statement.CompoundType = CompoundType.Union; } statement.Statement = (SelectStatement)VisitSelect_core(context.select_core()); return(statement); }
/// <summary> /// Visit a parse tree produced by <see cref="SqlParser.compound_clause"/>. /// <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 VisitCompound_clause([NotNull] SqlParser.Compound_clauseContext context) { return(VisitChildren(context)); }