187 references to Operators
System.Data (187)
fx\src\data\System\Data\Filter\BinaryNode.cs (49)
74if (op == Operators.Is) { 78if (un.op != Operators.Not) { 81op = Operators.IsNot; 85if (((ZeroOpNode)right).op != Operators.Null) { 103return new ZeroOpNode(Operators.Null); 108return new ZeroOpNode(Operators.True); 110return new ZeroOpNode(Operators.False); 167if (op == Operators.EqualTo || op == Operators.NotEqual) { 201if (op == Operators.EqualTo || op == Operators.NotEqual) { 250if (op != Operators.Or && op != Operators.And && op != Operators.In && op != Operators.Is && op != Operators.IsNot) { 295case Operators.Plus: 396case Operators.Minus: 484case Operators.Multiply: 550case Operators.Divide: 616case Operators.EqualTo: 620return(0 == BinaryCompare (vLeft, vRight, resultType, Operators.EqualTo)); 622case Operators.GreaterThen: 628case Operators.LessThen: 634case Operators.GreaterOrEqual: 640case Operators.LessOrEqual: 646case Operators.NotEqual: 652case Operators.Is: 659case Operators.IsNot: 666case Operators.And: 712case Operators.Or: 782case Operators.Modulo: 813case Operators.In: 845if (0 == BinaryCompare(vLeft, vRight, resultType, Operators.EqualTo)) { 1004if ((left == StorageType.Guid) && (right == StorageType.Guid) && Operators.IsRelational(op)) 1006if ((left == StorageType.String) && (right == StorageType.Guid) && Operators.IsRelational(op)) 1008if ((left == StorageType.Guid) && (right == StorageType.String) && Operators.IsRelational(op)) 1021if (Operators.IsLogical(op)){ 1032if (Operators.IsRelational(op) && left == StorageType.DateTimeOffset && right == StorageType.DateTimeOffset) 1037if ((op == Operators.Plus) && ((left == StorageType.String) || (right == StorageType.String))) 1044if (Operators.IsArithmetical(op)) { 1055if ((op == Operators.Divide) && IsInteger(result)) { 1093if (Operators.IsLogical(op)){ 1101if (op == Operators.Plus){ 1123if (op == Operators.Plus || op == Operators.Minus){ 1131if (!Operators.IsRelational(op)) 1144if (Operators.IsArithmetical(op)) { 1154if ((op == Operators.Divide) && IsIntegerSql(result)) {
fx\src\data\System\Data\Filter\ExpressionParser.cs (83)
67new ReservedWords("And", Tokens.BinaryOp, Operators.And), 73new ReservedWords("Between", Tokens.BinaryOp, Operators.Between), 75new ReservedWords("Child", Tokens.Child, Operators.Noop), 76new ReservedWords("False", Tokens.ZeroOp, Operators.False), 77new ReservedWords("In", Tokens.BinaryOp, Operators.In), 78new ReservedWords("Is", Tokens.BinaryOp, Operators.Is), 79new ReservedWords("Like", Tokens.BinaryOp, Operators.Like), 80new ReservedWords("Not", Tokens.UnaryOp, Operators.Not), 81new ReservedWords("Null", Tokens.ZeroOp, Operators.Null), 82new ReservedWords("Or", Tokens.BinaryOp, Operators.Or), 83new ReservedWords("Parent", Tokens.Parent, Operators.Noop), 84new ReservedWords("True", Tokens.ZeroOp, Operators.True), 104internal int op = Operators.Noop; 148op = Operators.Noop; 153ops[topOperator++] = new OperatorInfo(Nodes.Noop, Operators.Noop, Operators.priStart); 188BuildExpression(Operators.priLow); 216if (opInfo.type == Nodes.Binop && opInfo.op == Operators.In && token != Tokens.Parent) { 314if (opInfo.type == Nodes.Binop && opInfo.op == Operators.In) { 320ops[topOperator++] = new OperatorInfo(Nodes.Call, Operators.Noop, Operators.priParen); 324ops[topOperator++] = new OperatorInfo(Nodes.Paren, Operators.Noop, Operators.priParen); 331BuildExpression(Operators.priProc); 359ops[topOperator++] = new OperatorInfo(Nodes.Call, Operators.Noop, Operators.priParen); 367BuildExpression(Operators.priLow); 385Debug.Assert(opInfo.priority == Operators.priParen, "melformed operator stack."); 407node = new UnaryNode(_table, Operators.Noop, node); 426BuildExpression(Operators.priLow); 451if (op == Operators.Plus) { 452op = Operators.UnaryPlus; 455else if (op == Operators.Minus) { 457op = Operators.Negative; 462throw ExprException.MissingOperandBefore(Operators.ToString(op)); 472BuildExpression(Operators.Priority(op)); 475ops[topOperator++] = new OperatorInfo(Nodes.Binop, op, Operators.Priority(op)); 483ops[topOperator++] = new OperatorInfo(Nodes.Unop, op, Operators.Priority(op)); 494ops[topOperator++] = new OperatorInfo(Nodes.Zop, op, Operators.priMax); 626Debug.Assert(pri > Operators.priStart && pri <= Operators.priMax, "Invalid priority value"); 652case Operators.Between: 653case Operators.BetweenAnd: 654case Operators.BitwiseAnd: 655case Operators.BitwiseOr: 656case Operators.BitwiseXor: 657case Operators.BitwiseNot: 660case Operators.Is: // 661case Operators.Or: 662case Operators.And: 663case Operators.EqualTo: 664case Operators.NotEqual: 665case Operators.Like: 666case Operators.LessThen: 667case Operators.LessOrEqual: 668case Operators.GreaterThen: 669case Operators.GreaterOrEqual: 670case Operators.In: 674Debug.Assert(opInfo.op == Operators.Plus || 675opInfo.op == Operators.Minus || 676opInfo.op == Operators.Multiply || 677opInfo.op == Operators.Divide || 678opInfo.op == Operators.Modulo, 686if (opInfo.op == Operators.Like) { 703case Operators.Not: 706case Operators.BitwiseNot: 709case Operators.Negative: 753op = Operators.Noop; 787op = Operators.EqualTo; 795op = Operators.GreaterOrEqual; 798op = Operators.GreaterThen; 805op = Operators.LessOrEqual; 809op = Operators.NotEqual; 812op = Operators.LessThen; 817op = Operators.Plus; 822op = Operators.Minus; 827op = Operators.Multiply; 832op = Operators.Divide; 837op = Operators.Modulo; 843op = Operators.BitwiseAnd; 848op = Operators.BitwiseOr; 852op = Operators.BitwiseXor; 856op = Operators.BitwiseNot;
fx\src\data\System\Data\Filter\FilterException.cs (4)
118return _Syntax(Res.GetString(Res.Expr_MissingOperand, Operators.ToString(before.op))); 218return _Eval(Res.GetString(Res.Expr_TypeMismatchInBinop, Operators.ToString(op), type1.ToString(), type2.ToString())); 222return _Eval(Res.GetString(Res.Expr_AmbiguousBinop, Operators.ToString(op), type1.ToString(), type2.ToString())); 226return _Eval(Res.GetString(Res.Expr_UnsupportedOperator, Operators.ToString(op)));
fx\src\data\System\Data\Filter\UnaryNode.cs (4)
53case Operators.Noop: 55case Operators.UnaryPlus: 62case Operators.Negative: 119case Operators.Not:
fx\src\data\System\Data\Filter\ZeroOpNode.cs (9)
25Debug.Assert(op == Operators.True || op == Operators.False || op == Operators.Null, "Invalid zero-op"); 33case Operators.True: 35case Operators.False: 37case Operators.Null: 40Debug.Assert(op == Operators.True || op == Operators.False || op == Operators.Null, "Invalid zero-op");
fx\src\data\System\Data\Select.cs (38)
52return ((op >= Operators.EqualTo && op <= Operators.LessOrEqual) || op == Operators.Is || op == Operators.IsNot); 60if (expr.op == Operators.Or) { 65if (expr.op == Operators.And) { 76while (unaryNode.op == Operators.Noop && unaryNode.right is UnaryNode && ((UnaryNode)unaryNode.right).op == Operators.Noop) { 79if (unaryNode.op == Operators.Noop && unaryNode.right is BinaryNode) { 98while (unaryNode.op == Operators.Noop && unaryNode.right is UnaryNode && ((UnaryNode)unaryNode.right).op == Operators.Noop) { 101if (unaryNode.op == Operators.Noop && unaryNode.right is BinaryNode) { 117this.linearExpression = (this.linearExpression == null ? e : new BinaryNode(table, Operators.And, e, this.linearExpression)); 124canColumn.expr = (canColumn.expr == null ? expr : new BinaryNode(table, Operators.And, expr, canColumn.expr)); 125if (expr.op == Operators.EqualTo) { 137case Operators.GreaterThen: expr.op = Operators.LessThen; break; 138case Operators.LessThen: expr.op = Operators.GreaterThen; break; 139case Operators.GreaterOrEqual: expr.op = Operators.LessOrEqual; break; 140case Operators.LessOrEqual: expr.op = Operators.GreaterOrEqual; break; 144canColumn.expr = (canColumn.expr == null ? expr : new BinaryNode(table, Operators.And, expr, canColumn.expr)); 145if (expr.op == Operators.EqualTo) { 153this.linearExpression = (this.linearExpression == null ? expr : new BinaryNode(table, Operators.And, expr, this.linearExpression)); 381if (Operators.In == bnode.op || 412this.linearExpression = (this.linearExpression == null ? candidateColumns[i].expr : new BinaryNode(table, Operators.And, candidateColumns[i].expr, this.linearExpression)); 532if (expr.op == Operators.And) { 544if (expr.op != Operators.Is && expr.op != Operators.IsNot) { 587case Operators.EqualTo: c = (c == 0 ? 0 : c < 0 ? -1 : 1); break; 588case Operators.GreaterThen: c = (c > 0 ? 0 : -1); break; 589case Operators.LessThen: c = (c < 0 ? 0 : 1); break; 590case Operators.GreaterOrEqual: c = (c >= 0 ? 0 : -1); break; 591case Operators.LessOrEqual: c = (c <= 0 ? 0 : 1); break; 592case Operators.Is: c = (vLeft == DBNull.Value ? 0 : -1); break; 593case Operators.IsNot: c = (vLeft != DBNull.Value ? 0 : 1); break;