Esempio n. 1
0
        internal override Expression /*!*/ ToCondition(LexicalScope /*!*/ currentScope)
        {
            var newExpression = _expression.ToCondition(currentScope);

            if (newExpression != _expression)
            {
                return(new NotExpression(newExpression, Location));
            }

            return(this);
        }
Esempio n. 2
0
        internal override Expression /*!*/ ToCondition(LexicalScope /*!*/ currentScope)
        {
            var newLeft  = _left.ToCondition(currentScope);
            var newRight = _right.ToCondition(currentScope);

            if (newLeft != _left || newRight != _right)
            {
                return(new AndExpression(newLeft, newRight, Location));
            }

            return(this);
        }
Esempio n. 3
0
 internal override Expression /*!*/ ToCondition()
 {
     _left.ToCondition();
     _right.ToCondition();
     return(this);
 }
Esempio n. 4
0
 internal override Expression /*!*/ ToCondition()
 {
     _expression.ToCondition();
     return(this);
 }