1 instantiation of XPathScanner
System.Private.Xml (1)
System\Xml\XPath\Internal\XPathParser.cs (1)
18
_scanner = new
XPathScanner
(xpathExpr);
84 references to XPathScanner
System.Private.Xml (84)
System\Xml\XPath\Internal\XPathParser.cs (84)
14
private
XPathScanner
_scanner;
26
if (parser._scanner.Kind !=
XPathScanner
.LexKind.Eof)
37
if (parser._scanner.Kind !=
XPathScanner
.LexKind.Eof)
105
_scanner.Kind ==
XPathScanner
.LexKind.Eq ? Operator.Op.EQ :
106
_scanner.Kind ==
XPathScanner
.LexKind.Ne ? Operator.Op.NE :
127
_scanner.Kind ==
XPathScanner
.LexKind.Lt ? Operator.Op.LT :
128
_scanner.Kind ==
XPathScanner
.LexKind.Le ? Operator.Op.LE :
129
_scanner.Kind ==
XPathScanner
.LexKind.Gt ? Operator.Op.GT :
130
_scanner.Kind ==
XPathScanner
.LexKind.Ge ? Operator.Op.GE :
151
_scanner.Kind ==
XPathScanner
.LexKind.Plus ? Operator.Op.PLUS :
152
_scanner.Kind ==
XPathScanner
.LexKind.Minus ? Operator.Op.MINUS :
173
_scanner.Kind ==
XPathScanner
.LexKind.Star ? Operator.Op.MUL :
191
while (_scanner.Kind ==
XPathScanner
.LexKind.Minus)
214
if (_scanner.Kind !=
XPathScanner
.LexKind.Union)
242
if (_scanner.Kind ==
XPathScanner
.LexKind.Slash)
247
else if (_scanner.Kind ==
XPathScanner
.LexKind.SlashSlash)
265
while (_scanner.Kind ==
XPathScanner
.LexKind.LBracket)
281
PassToken(
XPathScanner
.LexKind.LBracket);
283
PassToken(
XPathScanner
.LexKind.RBracket);
291
if (_scanner.Kind ==
XPathScanner
.LexKind.Slash)
302
else if (_scanner.Kind ==
XPathScanner
.LexKind.SlashSlash)
321
if (
XPathScanner
.LexKind.SlashSlash == _scanner.Kind)
326
else if (
XPathScanner
.LexKind.Slash == _scanner.Kind)
340
private static bool IsStep(
XPathScanner
.LexKind lexKind)
343
lexKind ==
XPathScanner
.LexKind.Dot ||
344
lexKind ==
XPathScanner
.LexKind.DotDot ||
345
lexKind ==
XPathScanner
.LexKind.At ||
346
lexKind ==
XPathScanner
.LexKind.Axe ||
347
lexKind ==
XPathScanner
.LexKind.Star ||
348
lexKind ==
XPathScanner
.LexKind.Name // NodeTest is also Name
356
if (
XPathScanner
.LexKind.Dot == _scanner.Kind)
361
else if (
XPathScanner
.LexKind.DotDot == _scanner.Kind)
371
case
XPathScanner
.LexKind.At: //>> '@'
375
case
XPathScanner
.LexKind.Axe: //>> AxisName '::'
388
while (
XPathScanner
.LexKind.LBracket == _scanner.Kind)
403
case
XPathScanner
.LexKind.Name:
418
PassToken(
XPathScanner
.LexKind.LParens);
422
if (_scanner.Kind !=
XPathScanner
.LexKind.RParens)
424
CheckToken(
XPathScanner
.LexKind.String);
430
PassToken(
XPathScanner
.LexKind.RParens);
443
case
XPathScanner
.LexKind.Star:
455
_scanner.Kind ==
XPathScanner
.LexKind.String ||
456
_scanner.Kind ==
XPathScanner
.LexKind.Number ||
457
_scanner.Kind ==
XPathScanner
.LexKind.Dollar ||
458
_scanner.Kind ==
XPathScanner
.LexKind.LParens ||
459
_scanner.Kind ==
XPathScanner
.LexKind.Name && _scanner.CanBeFunction && !IsNodeType;
468
case
XPathScanner
.LexKind.String:
472
case
XPathScanner
.LexKind.Number:
476
case
XPathScanner
.LexKind.Dollar:
478
CheckToken(
XPathScanner
.LexKind.Name);
482
case
XPathScanner
.LexKind.LParens:
489
PassToken(
XPathScanner
.LexKind.RParens);
491
case
XPathScanner
.LexKind.Name:
507
PassToken(
XPathScanner
.LexKind.Name);
508
PassToken(
XPathScanner
.LexKind.LParens);
509
if (_scanner.Kind !=
XPathScanner
.LexKind.RParens)
514
if (_scanner.Kind ==
XPathScanner
.LexKind.RParens)
518
PassToken(
XPathScanner
.LexKind.Comma);
521
PassToken(
XPathScanner
.LexKind.RParens);
599
if (_scanner.Kind !=
XPathScanner
.LexKind.Union)
615
case
XPathScanner
.LexKind.Slash:
618
if (_scanner.Kind ==
XPathScanner
.LexKind.Eof || _scanner.Kind ==
XPathScanner
.LexKind.Union)
623
case
XPathScanner
.LexKind.SlashSlash:
627
case
XPathScanner
.LexKind.Name:
635
case
XPathScanner
.LexKind.Slash:
638
case
XPathScanner
.LexKind.SlashSlash:
663
PassToken(
XPathScanner
.LexKind.LParens);
664
CheckToken(
XPathScanner
.LexKind.String);
667
PassToken(
XPathScanner
.LexKind.RParens);
673
PassToken(
XPathScanner
.LexKind.LParens);
674
CheckToken(
XPathScanner
.LexKind.String);
677
PassToken(
XPathScanner
.LexKind.Comma);
678
CheckToken(
XPathScanner
.LexKind.String);
681
PassToken(
XPathScanner
.LexKind.RParens);
693
if (
XPathScanner
.LexKind.SlashSlash == _scanner.Kind)
698
else if (
XPathScanner
.LexKind.Slash == _scanner.Kind)
714
case
XPathScanner
.LexKind.At: //>> '@'
718
case
XPathScanner
.LexKind.Axe: //>> AxisName '::'
734
while (
XPathScanner
.LexKind.LBracket == _scanner.Kind)
743
private void CheckToken(
XPathScanner
.LexKind t)
751
private void PassToken(
XPathScanner
.LexKind t)
765
_scanner.Kind ==
XPathScanner
.LexKind.Name &&
867
Debug.Assert(_scanner.Kind ==
XPathScanner
.LexKind.Axe);