2 instantiations of XPathScanner
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (2)
26
XPathScanner scanner = new
XPathScanner
(xpathExpresion);
38
XPathScanner scanner = new
XPathScanner
(xpathPattern);
90 references to XPathScanner
dotnet-svcutil-lib (90)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (90)
17
private
XPathScanner
_scanner;
19
private XPathParser(
XPathScanner
scanner)
26
XPathScanner
scanner = new XPathScanner(xpathExpresion);
29
if (scanner.Kind !=
XPathScanner
.LexKind.Eof)
38
XPathScanner
scanner = new XPathScanner(xpathPattern);
41
if (scanner.Kind !=
XPathScanner
.LexKind.Eof)
109
_scanner.Kind ==
XPathScanner
.LexKind.Eq ? Operator.Op.EQ :
110
_scanner.Kind ==
XPathScanner
.LexKind.Ne ? Operator.Op.NE :
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 :
155
_scanner.Kind ==
XPathScanner
.LexKind.Plus ? Operator.Op.PLUS :
156
_scanner.Kind ==
XPathScanner
.LexKind.Minus ? Operator.Op.MINUS :
177
_scanner.Kind ==
XPathScanner
.LexKind.Star ? Operator.Op.MUL :
195
while (_scanner.Kind ==
XPathScanner
.LexKind.Minus)
218
if (_scanner.Kind !=
XPathScanner
.LexKind.Union)
230
private static bool IsNodeType(
XPathScanner
scaner)
251
if (_scanner.Kind ==
XPathScanner
.LexKind.Slash)
256
else if (_scanner.Kind ==
XPathScanner
.LexKind.SlashSlash)
274
while (_scanner.Kind ==
XPathScanner
.LexKind.LBracket)
290
PassToken(
XPathScanner
.LexKind.LBracket);
292
PassToken(
XPathScanner
.LexKind.RBracket);
300
if (_scanner.Kind ==
XPathScanner
.LexKind.Slash)
311
else if (_scanner.Kind ==
XPathScanner
.LexKind.SlashSlash)
330
if (
XPathScanner
.LexKind.SlashSlash == _scanner.Kind)
335
else if (
XPathScanner
.LexKind.Slash == _scanner.Kind)
349
private static bool IsStep(
XPathScanner
.LexKind lexKind)
352
lexKind ==
XPathScanner
.LexKind.Dot ||
353
lexKind ==
XPathScanner
.LexKind.DotDot ||
354
lexKind ==
XPathScanner
.LexKind.At ||
355
lexKind ==
XPathScanner
.LexKind.Axe ||
356
lexKind ==
XPathScanner
.LexKind.Star ||
357
lexKind ==
XPathScanner
.LexKind.Name // NodeTest is also Name
365
if (
XPathScanner
.LexKind.Dot == _scanner.Kind)
370
else if (
XPathScanner
.LexKind.DotDot == _scanner.Kind)
380
case
XPathScanner
.LexKind.At: //>> '@'
384
case
XPathScanner
.LexKind.Axe: //>> AxisName '::'
397
while (
XPathScanner
.LexKind.LBracket == _scanner.Kind)
412
case
XPathScanner
.LexKind.Name:
427
PassToken(
XPathScanner
.LexKind.LParens);
431
if (_scanner.Kind !=
XPathScanner
.LexKind.RParens)
433
CheckToken(
XPathScanner
.LexKind.String);
439
PassToken(
XPathScanner
.LexKind.RParens);
452
case
XPathScanner
.LexKind.Star:
463
private static bool IsPrimaryExpr(
XPathScanner
scanner)
466
scanner.Kind ==
XPathScanner
.LexKind.String ||
467
scanner.Kind ==
XPathScanner
.LexKind.Number ||
468
scanner.Kind ==
XPathScanner
.LexKind.Dollar ||
469
scanner.Kind ==
XPathScanner
.LexKind.LParens ||
470
scanner.Kind ==
XPathScanner
.LexKind.Name && scanner.CanBeFunction && !IsNodeType(scanner)
481
case
XPathScanner
.LexKind.String:
485
case
XPathScanner
.LexKind.Number:
489
case
XPathScanner
.LexKind.Dollar:
491
CheckToken(
XPathScanner
.LexKind.Name);
495
case
XPathScanner
.LexKind.LParens:
502
PassToken(
XPathScanner
.LexKind.RParens);
504
case
XPathScanner
.LexKind.Name:
520
PassToken(
XPathScanner
.LexKind.Name);
521
PassToken(
XPathScanner
.LexKind.LParens);
522
if (_scanner.Kind !=
XPathScanner
.LexKind.RParens)
527
if (_scanner.Kind ==
XPathScanner
.LexKind.RParens)
531
PassToken(
XPathScanner
.LexKind.Comma);
534
PassToken(
XPathScanner
.LexKind.RParens);
612
if (_scanner.Kind !=
XPathScanner
.LexKind.Union)
628
case
XPathScanner
.LexKind.Slash:
631
if (_scanner.Kind ==
XPathScanner
.LexKind.Eof || _scanner.Kind ==
XPathScanner
.LexKind.Union)
636
case
XPathScanner
.LexKind.SlashSlash:
640
case
XPathScanner
.LexKind.Name:
648
case
XPathScanner
.LexKind.Slash:
651
case
XPathScanner
.LexKind.SlashSlash:
676
PassToken(
XPathScanner
.LexKind.LParens);
677
CheckToken(
XPathScanner
.LexKind.String);
680
PassToken(
XPathScanner
.LexKind.RParens);
686
PassToken(
XPathScanner
.LexKind.LParens);
687
CheckToken(
XPathScanner
.LexKind.String);
690
PassToken(
XPathScanner
.LexKind.Comma);
691
CheckToken(
XPathScanner
.LexKind.String);
694
PassToken(
XPathScanner
.LexKind.RParens);
706
if (
XPathScanner
.LexKind.SlashSlash == _scanner.Kind)
711
else if (
XPathScanner
.LexKind.Slash == _scanner.Kind)
727
case
XPathScanner
.LexKind.At: //>> '@'
731
case
XPathScanner
.LexKind.Axe: //>> AxisName '::'
747
while (
XPathScanner
.LexKind.LBracket == _scanner.Kind)
756
private void CheckToken(
XPathScanner
.LexKind t)
764
private void PassToken(
XPathScanner
.LexKind t)
778
_scanner.Kind ==
XPathScanner
.LexKind.Name &&
878
private Axis.AxisType GetAxis(
XPathScanner
scaner)
880
Debug.Assert(scaner.Kind ==
XPathScanner
.LexKind.Axe);