9 instantiations of Operator
dotnet-svcutil-lib (9)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (9)
80
opnd = new
Operator
(Operator.Op.OR, opnd, ParseAndExpr(qyInput));
96
opnd = new
Operator
(Operator.Op.AND, opnd, ParseEqualityExpr(qyInput));
118
opnd = new
Operator
(op, opnd, ParseRelationalExpr(qyInput));
142
opnd = new
Operator
(op, opnd, ParseAdditiveExpr(qyInput));
164
opnd = new
Operator
(op, opnd, ParseMultiplicativeExpr(qyInput));
187
opnd = new
Operator
(op, opnd, ParseUnaryExpr(qyInput));
203
return new
Operator
(Operator.Op.MUL, ParseUnionExpr(qyInput), new Operand(-1));
226
opnd = new
Operator
(Operator.Op.UNION, opnd, opnd2);
617
opnd = new
Operator
(Operator.Op.UNION, opnd, ParseLocationPathPattern(qyInput));
138 references to Operator
dotnet-svcutil-lib (138)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanExpr.cs (6)
20
public BooleanExpr(
Operator
.Op op, Query opnd1, Query opnd2)
22
Debug.Assert(op ==
Operator
.Op.AND || op ==
Operator
.Op.OR);
34
_isOr = (op ==
Operator
.Op.OR);
65
w.WriteAttributeString("op", (_isOr ?
Operator
.Op.OR :
Operator
.Op.AND).ToString());
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\LogicalExpr.cs (66)
16
private
Operator
.Op _op;
20
public LogicalExpr(
Operator
.Op op, Query opnd1, Query opnd2)
23
Operator
.Op.LT == op ||
Operator
.Op.GT == op ||
24
Operator
.Op.LE == op ||
Operator
.Op.GE == op ||
25
Operator
.Op.EQ == op ||
Operator
.Op.NE == op
46
Operator
.Op op = _op;
53
op =
Operator
.InvertOperator(op);
62
if (op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE)
72
private delegate bool cmpXslt(
Operator
.Op op, object val1, object val2);
91
private static bool cmpQueryQueryE(
Operator
.Op op, object val1, object val2)
93
Debug.Assert(op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE);
94
bool isEQ = (op ==
Operator
.Op.EQ);
124
private static bool cmpQueryQueryO(
Operator
.Op op, object val1, object val2)
127
op ==
Operator
.Op.LT || op ==
Operator
.Op.GT ||
128
op ==
Operator
.Op.LE || op ==
Operator
.Op.GE
157
private static bool cmpQueryNumber(
Operator
.Op op, object val1, object val2)
172
private static bool cmpQueryStringE(
Operator
.Op op, object val1, object val2)
187
private static bool cmpQueryStringO(
Operator
.Op op, object val1, object val2)
202
private static bool cmpRtfQueryE(
Operator
.Op op, object val1, object val2)
217
private static bool cmpRtfQueryO(
Operator
.Op op, object val1, object val2)
232
private static bool cmpQueryBoolE(
Operator
.Op op, object val1, object val2)
240
private static bool cmpQueryBoolO(
Operator
.Op op, object val1, object val2)
248
private static bool cmpBoolBoolE(
Operator
.Op op, bool n1, bool n2)
250
Debug.Assert(op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE,
253
return (op ==
Operator
.Op.EQ) == (n1 == n2);
255
private static bool cmpBoolBoolE(
Operator
.Op op, object val1, object val2)
262
private static bool cmpBoolBoolO(
Operator
.Op op, object val1, object val2)
269
private static bool cmpBoolNumberE(
Operator
.Op op, object val1, object val2)
276
private static bool cmpBoolNumberO(
Operator
.Op op, object val1, object val2)
283
private static bool cmpBoolStringE(
Operator
.Op op, object val1, object val2)
290
private static bool cmpRtfBoolE(
Operator
.Op op, object val1, object val2)
297
private static bool cmpBoolStringO(
Operator
.Op op, object val1, object val2)
305
private static bool cmpRtfBoolO(
Operator
.Op op, object val1, object val2)
313
private static bool cmpNumberNumber(
Operator
.Op op, double n1, double n2)
317
case
Operator
.Op.LT: return (n1 < n2);
318
case
Operator
.Op.GT: return (n1 > n2);
319
case
Operator
.Op.LE: return (n1 <= n2);
320
case
Operator
.Op.GE: return (n1 >= n2);
321
case
Operator
.Op.EQ: return (n1 == n2);
322
case
Operator
.Op.NE: return (n1 != n2);
327
private static bool cmpNumberNumberO(
Operator
.Op op, double n1, double n2)
331
case
Operator
.Op.LT: return (n1 < n2);
332
case
Operator
.Op.GT: return (n1 > n2);
333
case
Operator
.Op.LE: return (n1 <= n2);
334
case
Operator
.Op.GE: return (n1 >= n2);
339
private static bool cmpNumberNumber(
Operator
.Op op, object val1, object val2)
346
private static bool cmpStringNumber(
Operator
.Op op, object val1, object val2)
353
private static bool cmpRtfNumber(
Operator
.Op op, object val1, object val2)
360
private static bool cmpStringStringE(
Operator
.Op op, string n1, string n2)
362
Debug.Assert(op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE,
365
return (op ==
Operator
.Op.EQ) == (n1 == n2);
367
private static bool cmpStringStringE(
Operator
.Op op, object val1, object val2)
373
private static bool cmpRtfStringE(
Operator
.Op op, object val1, object val2)
379
private static bool cmpRtfRtfE(
Operator
.Op op, object val1, object val2)
386
private static bool cmpStringStringO(
Operator
.Op op, object val1, object val2)
393
private static bool cmpRtfStringO(
Operator
.Op op, object val1, object val2)
400
private static bool cmpRtfRtfO(
Operator
.Op op, object val1, object val2)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumericExpr.cs (18)
16
private
Operator
.Op _op;
20
public NumericExpr(
Operator
.Op op, Query opnd1, Query opnd2)
23
op ==
Operator
.Op.PLUS || op ==
Operator
.Op.MINUS ||
24
op ==
Operator
.Op.MUL || op ==
Operator
.Op.DIV ||
25
op ==
Operator
.Op.MOD
60
private static double GetValue(
Operator
.Op op, double n1, double n2)
62
Debug.Assert(op ==
Operator
.Op.PLUS || op ==
Operator
.Op.MINUS || op ==
Operator
.Op.MOD || op ==
Operator
.Op.DIV || op ==
Operator
.Op.MUL);
65
case
Operator
.Op.PLUS: return n1 + n2;
66
case
Operator
.Op.MINUS: return n1 - n2;
67
case
Operator
.Op.MOD: return n1 % n2;
68
case
Operator
.Op.DIV: return n1 / n2;
69
case
Operator
.Op.MUL: return n1 * n2;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Operator.cs (2)
50
static public
Operator
.Op InvertOperator(
Operator
.Op op)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (18)
263
prevCond = new LogicalExpr(
Operator
.Op.EQ, new NodeFunctions(FT.FuncPosition, null), prevCond);
265
cond = new BooleanExpr(
Operator
.Op.AND, prevCond, cond);
313
private Query ProcessOperator(
Operator
root, out Props props)
321
case
Operator
.Op.PLUS:
322
case
Operator
.Op.MINUS:
323
case
Operator
.Op.MUL:
324
case
Operator
.Op.MOD:
325
case
Operator
.Op.DIV:
327
case
Operator
.Op.LT:
328
case
Operator
.Op.GT:
329
case
Operator
.Op.LE:
330
case
Operator
.Op.GE:
331
case
Operator
.Op.EQ:
332
case
Operator
.Op.NE:
334
case
Operator
.Op.OR:
335
case
Operator
.Op.AND:
337
case
Operator
.Op.UNION:
475
result = ProcessOperator((
Operator
)root, out props);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (28)
80
opnd = new Operator(
Operator
.Op.OR, opnd, ParseAndExpr(qyInput));
96
opnd = new Operator(
Operator
.Op.AND, opnd, ParseEqualityExpr(qyInput));
108
Operator
.Op op = (
109
_scanner.Kind == XPathScanner.LexKind.Eq ?
Operator
.Op.EQ :
110
_scanner.Kind == XPathScanner.LexKind.Ne ?
Operator
.Op.NE :
111
/*default :*/
Operator
.Op.INVALID
113
if (op ==
Operator
.Op.INVALID)
130
Operator
.Op op = (
131
_scanner.Kind == XPathScanner.LexKind.Lt ?
Operator
.Op.LT :
132
_scanner.Kind == XPathScanner.LexKind.Le ?
Operator
.Op.LE :
133
_scanner.Kind == XPathScanner.LexKind.Gt ?
Operator
.Op.GT :
134
_scanner.Kind == XPathScanner.LexKind.Ge ?
Operator
.Op.GE :
135
/*default :*/
Operator
.Op.INVALID
137
if (op ==
Operator
.Op.INVALID)
154
Operator
.Op op = (
155
_scanner.Kind == XPathScanner.LexKind.Plus ?
Operator
.Op.PLUS :
156
_scanner.Kind == XPathScanner.LexKind.Minus ?
Operator
.Op.MINUS :
157
/*default :*/
Operator
.Op.INVALID
159
if (op ==
Operator
.Op.INVALID)
176
Operator
.Op op = (
177
_scanner.Kind == XPathScanner.LexKind.Star ?
Operator
.Op.MUL :
178
TestOp("div") ?
Operator
.Op.DIV :
179
TestOp("mod") ?
Operator
.Op.MOD :
180
/*default :*/
Operator
.Op.INVALID
182
if (op ==
Operator
.Op.INVALID)
203
return new Operator(
Operator
.Op.MUL, ParseUnionExpr(qyInput), new Operand(-1));
226
opnd = new Operator(
Operator
.Op.UNION, opnd, opnd2);
617
opnd = new Operator(
Operator
.Op.UNION, opnd, ParseLocationPathPattern(qyInput));