public override SqlObject VisitIn_scalar_expression([NotNull] sqlParser.In_scalar_expressionContext context) { Contract.Requires(context != null); // scalar_expression K_NOT? K_IN '(' scalar_expression_list ')' SqlScalarExpression needle = (SqlScalarExpression)this.Visit(context.binary_scalar_expression()); bool not = context.K_NOT() != null; List <SqlScalarExpression> searchList = new List <SqlScalarExpression>(); foreach (sqlParser.Scalar_expressionContext scalarExpressionContext in context.scalar_expression_list().scalar_expression()) { searchList.Add((SqlScalarExpression)this.Visit(scalarExpressionContext)); } return(SqlInScalarExpression.Create(needle, not, searchList.ToImmutableArray())); }
/// <summary> /// Visit a parse tree produced by <see cref="sqlParser.in_scalar_expression"/>. /// <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 VisitIn_scalar_expression([NotNull] sqlParser.In_scalar_expressionContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="sqlParser.in_scalar_expression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitIn_scalar_expression([NotNull] sqlParser.In_scalar_expressionContext context) { }