195 references to XPathTokenID
System.ServiceModel (195)
System\ServiceModel\Configuration\XPathMessageFilterElementComparer.cs (1)
47
if (
XPathTokenID
.NameTest == token.TokenID)
System\ServiceModel\Dispatcher\XPathLexer.cs (135)
284
LParen = 0x00000001 |
XPathTokenID
.Terminal,
285
RParen = 0x00000002 |
XPathTokenID
.Terminal,
286
LBracket = 0x00000003 |
XPathTokenID
.Terminal,
287
RBracket = 0x00000004 |
XPathTokenID
.Terminal,
288
Period = 0x00000005 |
XPathTokenID
.Terminal,
289
DblPeriod = 0x00000006 |
XPathTokenID
.Terminal,
290
AtSign = 0x00000007 |
XPathTokenID
.Terminal,
291
Comma = 0x00000008 |
XPathTokenID
.Terminal,
292
DblColon = 0x00000009 |
XPathTokenID
.Terminal,
293
Whitespace = 0x0000000A |
XPathTokenID
.Terminal,
295
Eq = 0x0000000B |
XPathTokenID
.Operator,
296
Neq = 0x0000000C |
XPathTokenID
.Operator,
297
Gt = 0x0000000D |
XPathTokenID
.Operator,
298
Gte = 0x0000000E |
XPathTokenID
.Operator,
299
Lt = 0x0000000F |
XPathTokenID
.Operator,
300
Lte = 0x00000010 |
XPathTokenID
.Operator,
301
Plus = 0x00000012 |
XPathTokenID
.Operator,
302
Minus = 0x00000013 |
XPathTokenID
.Operator,
303
Slash = 0x00000014 |
XPathTokenID
.Operator,
304
Multiply = 0x00000015 |
XPathTokenID
.Operator,
305
Pipe = 0x00000016 |
XPathTokenID
.Operator,
306
DblSlash = 0x00000017 |
XPathTokenID
.Operator,
307
Mod = 0x00000018 |
XPathTokenID
.NamedOperator,
308
And = 0x00000019 |
XPathTokenID
.NamedOperator,
309
Or = 0x0000001A |
XPathTokenID
.NamedOperator,
310
Div = 0x0000001B |
XPathTokenID
.NamedOperator,
312
Integer = 0x0000001C |
XPathTokenID
.Number,
313
Decimal = 0x0000001D |
XPathTokenID
.Number,
314
String = 0x0000001E |
XPathTokenID
.Literal,
316
Comment = 0x0000001F |
XPathTokenID
.NodeType,
317
Text = 0x00000020 |
XPathTokenID
.NodeType,
318
Processing = 0x00000021 |
XPathTokenID
.NodeType,
319
Node = 0x00000022 |
XPathTokenID
.NodeType,
320
Wildcard = 0x00000023 |
XPathTokenID
.NameTest,
321
NameWildcard = 0x00000024 |
XPathTokenID
.NameTest,
324
Ancestor = 0x00000027 |
XPathTokenID
.Axis,
325
AncestorOrSelf = 0x00000028 |
XPathTokenID
.Axis,
326
Attribute = 0x00000029 |
XPathTokenID
.Axis,
327
Child = 0x0000002A |
XPathTokenID
.Axis,
328
Descendant = 0x0000002B |
XPathTokenID
.Axis,
329
DescendantOrSelf = 0x0000002C |
XPathTokenID
.Axis,
330
Following = 0x0000002D |
XPathTokenID
.Axis,
331
FollowingSibling = 0x0000002E |
XPathTokenID
.Axis,
332
Namespace = 0x0000002F |
XPathTokenID
.Axis,
333
Parent = 0x00000030 |
XPathTokenID
.Axis,
334
Preceding = 0x00000031 |
XPathTokenID
.Axis,
335
PrecedingSibling = 0x00000032 |
XPathTokenID
.Axis,
336
Self = 0x00000033 |
XPathTokenID
.Axis
345
XPathTokenID
tokenID;
349
this.tokenID =
XPathTokenID
.Unknown;
376
internal
XPathTokenID
TokenID
389
this.tokenID =
XPathTokenID
.Unknown;
392
internal void Set(
XPathTokenID
id)
398
internal void Set(
XPathTokenID
id, double number)
404
internal void Set(
XPathTokenID
id, string name)
413
internal void Set(
XPathTokenID
id, XPathParser.QName qname)
425
XPathTokenID
previousID;
441
namedTypes.Add("and",
XPathTokenID
.And);
442
namedTypes.Add("or",
XPathTokenID
.Or);
443
namedTypes.Add("mod",
XPathTokenID
.Mod);
444
namedTypes.Add("div",
XPathTokenID
.Div);
447
namedTypes.Add("ancestor",
XPathTokenID
.Ancestor);
448
namedTypes.Add("ancestor-or-self",
XPathTokenID
.AncestorOrSelf);
449
namedTypes.Add("attribute",
XPathTokenID
.Attribute);
450
namedTypes.Add("child",
XPathTokenID
.Child);
451
namedTypes.Add("descendant",
XPathTokenID
.Descendant);
452
namedTypes.Add("descendant-or-self",
XPathTokenID
.DescendantOrSelf);
453
namedTypes.Add("following",
XPathTokenID
.Following);
454
namedTypes.Add("following-sibling",
XPathTokenID
.FollowingSibling);
455
namedTypes.Add("namespace",
XPathTokenID
.Namespace);
456
namedTypes.Add("parent",
XPathTokenID
.Parent);
457
namedTypes.Add("preceding",
XPathTokenID
.Preceding);
458
namedTypes.Add("preceding-sibling",
XPathTokenID
.PrecedingSibling);
459
namedTypes.Add("self",
XPathTokenID
.Self);
462
namedTypes.Add("comment",
XPathTokenID
.Comment);
463
namedTypes.Add("text",
XPathTokenID
.Text);
464
namedTypes.Add("processing-instruction",
XPathTokenID
.Processing);
465
namedTypes.Add("node",
XPathTokenID
.Node);
486
this.previousID =
XPathTokenID
.Unknown;
604
token.Set(
XPathTokenID
.LParen);
608
token.Set(
XPathTokenID
.RParen);
612
token.Set(
XPathTokenID
.LBracket);
616
token.Set(
XPathTokenID
.RBracket);
624
token.Set(
XPathTokenID
.DblPeriod);
635
token.Set(
XPathTokenID
.Period);
641
token.Set(
XPathTokenID
.AtSign);
645
token.Set(
XPathTokenID
.Comma);
654
token.Set(
XPathTokenID
.DblColon);
669
token.Set(
XPathTokenID
.DblSlash);
673
token.Set(
XPathTokenID
.Slash);
678
token.Set(
XPathTokenID
.Pipe);
682
token.Set(
XPathTokenID
.Plus);
686
token.Set(
XPathTokenID
.Minus);
690
token.Set(
XPathTokenID
.Eq);
699
token.Set(
XPathTokenID
.Neq);
712
token.Set(
XPathTokenID
.Lte);
716
token.Set(
XPathTokenID
.Lt);
725
token.Set(
XPathTokenID
.Gte);
729
token.Set(
XPathTokenID
.Gt);
738
token.Set(
XPathTokenID
.Multiply);
742
token.Set(
XPathTokenID
.Wildcard, new XPathParser.QName(string.Empty, QueryDataModel.Wildcard));
754
token.Set(
XPathTokenID
.Variable, qname);
767
token.Set(
XPathTokenID
.Unknown);
790
XPathTokenID
id =
XPathTokenID
.Unknown;
802
id =
XPathTokenID
.NameTest;
808
id =
XPathTokenID
.NameWildcard;
819
id =
XPathTokenID
.NameTest;
838
if (id !=
XPathTokenID
.Function)
861
id =
XPathTokenID
.Function;
919
XPathTokenID
id =
XPathTokenID
.Integer;
928
id =
XPathTokenID
.Decimal;
963
token.Set(
XPathTokenID
.Literal, CurrentSubstring());
973
return (this.previousID !=
XPathTokenID
.Unknown) &&
974
(this.previousID !=
XPathTokenID
.AtSign) &&
975
(this.previousID !=
XPathTokenID
.DblColon) &&
976
(this.previousID !=
XPathTokenID
.LParen) &&
977
(this.previousID !=
XPathTokenID
.LBracket) &&
978
(this.previousID !=
XPathTokenID
.Comma) &&
979
(this.previousID &
XPathTokenID
.Operator) == 0 &&
980
(this.previousID &
XPathTokenID
.NamedOperator) == 0;
983
private
XPathTokenID
GetNamedOperator(XPathParser.QName qname)
992
XPathTokenID
id = GetNamedType(qname.Name);
993
if (this.resolveKeywords && (id &
XPathTokenID
.NamedOperator) == 0)
1001
private
XPathTokenID
GetAxisName(XPathParser.QName qname)
1010
XPathTokenID
id = GetNamedType(qname.Name);
1011
if (this.resolveKeywords && (id &
XPathTokenID
.Axis) == 0)
1019
private
XPathTokenID
GetNodeTypeOrFunction(XPathParser.QName qname)
1021
XPathTokenID
id = GetNamedType(qname.Name);
1024
if ((id &
XPathTokenID
.NodeType) == 0)
1026
id =
XPathTokenID
.Function;
1037
private
XPathTokenID
GetNamedType(string name)
1042
return (
XPathTokenID
)namedTypes[name];
1046
return
XPathTokenID
.Unknown;
System\ServiceModel\Dispatcher\XPathParser.cs (59)
49
if (
XPathTokenID
.Whitespace != this.lexer.Token.TokenID)
58
XPathToken NextToken(
XPathTokenID
id)
75
XPathToken NextToken(
XPathTokenID
id, QueryCompileError error)
87
XPathToken NextTokenClass(
XPathTokenID
tokenClass)
156
case
XPathTokenID
.Slash:
161
case
XPathTokenID
.DblSlash:
201
case
XPathTokenID
.Plus:
205
case
XPathTokenID
.Minus:
231
if (null != eqExpr && null != this.NextToken(
XPathTokenID
.And))
242
} while (null != this.NextToken(
XPathTokenID
.And));
252
if (null != this.NextToken(
XPathTokenID
.AtSign))
260
if (null != (token = this.NextTokenClass(
XPathTokenID
.Axis)))
268
case
XPathTokenID
.Attribute:
272
case
XPathTokenID
.Child:
276
case
XPathTokenID
.Descendant:
280
case
XPathTokenID
.DescendantOrSelf:
284
case
XPathTokenID
.Self:
290
this.NextToken(
XPathTokenID
.DblColon, QueryCompileError.InvalidAxisSpecifier);
318
case
XPathTokenID
.Eq:
322
case
XPathTokenID
.Neq:
386
XPathToken functionToken = this.NextToken(
XPathTokenID
.Function);
394
this.NextToken(
XPathTokenID
.LParen, QueryCompileError.InvalidFunction);
404
if (null == this.NextToken(
XPathTokenID
.Comma))
447
this.NextToken(
XPathTokenID
.RParen, QueryCompileError.InvalidFunction);
472
if (null != (literal = this.NextToken(
XPathTokenID
.Literal)))
502
case
XPathTokenID
.Multiply:
506
case
XPathTokenID
.Div:
510
case
XPathTokenID
.Mod:
540
if (null != (token = this.NextTokenClass(
XPathTokenID
.NameTest)))
548
case
XPathTokenID
.Wildcard:
552
case
XPathTokenID
.NameTest:
556
case
XPathTokenID
.NameWildcard:
567
if (null == (token = this.NextTokenClass(
XPathTokenID
.NodeType)))
579
case
XPathTokenID
.Comment:
583
case
XPathTokenID
.Text:
587
case
XPathTokenID
.Processing:
591
case
XPathTokenID
.Node:
603
this.NextToken(
XPathTokenID
.LParen, QueryCompileError.InvalidNodeTest);
604
this.NextToken(
XPathTokenID
.RParen, QueryCompileError.InvalidNodeTest);
618
if (null != (number = this.NextTokenClass(
XPathTokenID
.Number)))
630
if (null != andExpr && null != this.NextToken(
XPathTokenID
.Or))
641
} while (null != this.NextToken(
XPathTokenID
.Or));
662
if (null != this.NextToken(
XPathTokenID
.Slash))
679
else if (null != this.NextToken(
XPathTokenID
.DblSlash))
726
if (null != this.NextToken(
XPathTokenID
.LBracket))
734
this.NextToken(
XPathTokenID
.RBracket, QueryCompileError.InvalidPredicate);
746
if (null != this.NextToken(
XPathTokenID
.LParen))
749
if (null == expr || null == this.NextToken(
XPathTokenID
.RParen))
800
if (null != this.NextToken(
XPathTokenID
.Slash))
804
else if (null != this.NextToken(
XPathTokenID
.DblSlash))
848
case
XPathTokenID
.Lt:
852
case
XPathTokenID
.Lte:
856
case
XPathTokenID
.Gt:
860
case
XPathTokenID
.Gte:
896
if (null != this.NextToken(
XPathTokenID
.Period))
901
else if (null != this.NextToken(
XPathTokenID
.DblPeriod))
937
for (; null != this.NextToken(
XPathTokenID
.Minus); anyNegate = true, negate = !negate);
958
if (null != this.NextToken(
XPathTokenID
.Pipe))
981
XPathToken varTok = this.NextToken(
XPathTokenID
.Variable);