public override SqlObject VisitLike_scalar_expression([NotNull] sqlParser.Like_scalar_expressionContext context) { Contract.Requires(context != null); SqlScalarExpression expression = (SqlScalarExpression)this.Visit(context.binary_scalar_expression()[0]); SqlScalarExpression pattern = (SqlScalarExpression)this.Visit(context.binary_scalar_expression()[1]); bool not = context.K_NOT() != null; SqlStringLiteral escapeSequence = (context.escape_expression() != null) ? (SqlStringLiteral)this.Visit(context.escape_expression()) : null; return(SqlLikeScalarExpression.Create(expression, pattern, not, escapeSequence)); }
/// <summary> /// Exit a parse tree produced by <see cref="sqlParser.like_scalar_expression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitLike_scalar_expression([NotNull] sqlParser.Like_scalar_expressionContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="sqlParser.like_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 VisitLike_scalar_expression([NotNull] sqlParser.Like_scalar_expressionContext context) { return(VisitChildren(context)); }