@@ 633-643 (lines=11) @@ | ||
630 | public static function validateUnaryOpArguments($expressionToken, $argExpression) |
|
631 | { |
|
632 | //Unary not |
|
633 | if (strcmp($expressionToken->Text, ODataConstants::KEYWORD_NOT) == 0 ) { |
|
634 | $function = self::findFunctionWithPromotion( |
|
635 | self::notOperationFunctions(), |
|
636 | array($argExpression) |
|
637 | ); |
|
638 | if ($function == null) { |
|
639 | self::incompatibleError($expressionToken, array($argExpression)); |
|
640 | } |
|
641 | ||
642 | return; |
|
643 | } |
|
644 | ||
645 | //Unary minus (negation) |
|
646 | if (strcmp($expressionToken->Text, '-') == 0) { |
|
@@ 646-650 (lines=5) @@ | ||
643 | } |
|
644 | ||
645 | //Unary minus (negation) |
|
646 | if (strcmp($expressionToken->Text, '-') == 0) { |
|
647 | if (self::findFunctionWithPromotion(self::negateOperationFunctions(), array($argExpression)) == null) { |
|
648 | self::incompatibleError($expressionToken, array($argExpression)); |
|
649 | } |
|
650 | } |
|
651 | } |
|
652 | ||
653 | /** |