Пример #1
0
        /// <summary>
        /// Generates System.CodeDom.CodeExpression from the given expression.
        /// </summary>
        /// <param name="expression">Expression from which System.CodeDom.CodeExpression is generated.</param>
        /// <returns>Generated System.CodeDom.CodeExpression.</returns>
        public virtual CodeExpression Visit(LinqExclusiveOrExpression expression)
        {
            CodeExpression left  = this.GenerateCode(expression.Left);
            CodeExpression right = this.GenerateCode(expression.Right);

            return(new CodeExclusiveOrExpression(left, right));
        }
Пример #2
0
        /// <summary>
        /// Evaluates the specified expression.
        /// </summary>
        /// <param name="expression">The expression to evaluate.</param>
        /// <returns>Value of the expression.</returns>
        public QueryValue Visit(LinqExclusiveOrExpression expression)
        {
            QueryScalarValue left, right;

            this.EvaluateBinaryArguments(expression, out left, out right);
            return(left.ExclusiveOr(right));
        }
Пример #3
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the LinqExclusiveOrExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public virtual string Visit(LinqExclusiveOrExpression expression)
 {
     throw new TaupoNotSupportedException("Not supported");
 }
Пример #4
0
 /// <summary>
 /// Replaces the given expression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Replaced expression.</returns>
 public virtual QueryExpression Visit(LinqExclusiveOrExpression expression)
 {
     return(this.VisitBinaryExpression(expression, (l, r, t) => new LinqExclusiveOrExpression(l, r, t)));
 }
Пример #5
0
 /// <summary>
 /// Resolves types for the specified expression.
 /// </summary>
 /// <param name="expression">The expression to resolve types for.</param>
 /// <returns>Expression with resolved types.</returns>
 public QueryExpression Visit(LinqExclusiveOrExpression expression)
 {
     return(this.VisitBinaryArithmeticExpression(expression, (l, r, t) => new LinqExclusiveOrExpression(l, r, t)));
 }