1 write to _scanner
System.Private.Xml (1)
System\Xml\XPath\Internal\XPathParser.cs (1)
18
_scanner
= new XPathScanner(xpathExpr);
90 references to _scanner
System.Private.Xml (90)
System\Xml\XPath\Internal\XPathParser.cs (90)
26
if (parser.
_scanner
.Kind != XPathScanner.LexKind.Eof)
28
throw XPathException.Create(SR.Xp_InvalidToken, parser.
_scanner
.SourceText);
37
if (parser.
_scanner
.Kind != XPathScanner.LexKind.Eof)
39
throw XPathException.Create(SR.Xp_InvalidToken, parser.
_scanner
.SourceText);
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)
227
_scanner
.Prefix.Length == 0 &&
228
(
_scanner
.Name == "node" ||
229
_scanner
.Name == "text" ||
230
_scanner
.Name == "processing-instruction" ||
231
_scanner
.Name == "comment");
242
if (
_scanner
.Kind == XPathScanner.LexKind.Slash)
247
else if (
_scanner
.Kind == XPathScanner.LexKind.SlashSlash)
265
while (
_scanner
.Kind == XPathScanner.LexKind.LBracket)
291
if (
_scanner
.Kind == XPathScanner.LexKind.Slash)
296
if (IsStep(
_scanner
.Kind))
302
else if (
_scanner
.Kind == XPathScanner.LexKind.SlashSlash)
321
if (XPathScanner.LexKind.SlashSlash ==
_scanner
.Kind)
326
else if (XPathScanner.LexKind.Slash ==
_scanner
.Kind)
356
if (XPathScanner.LexKind.Dot ==
_scanner
.Kind)
361
else if (XPathScanner.LexKind.DotDot ==
_scanner
.Kind)
369
switch (
_scanner
.Kind)
388
while (XPathScanner.LexKind.LBracket ==
_scanner
.Kind)
401
switch (
_scanner
.Kind)
404
if (
_scanner
.CanBeFunction && IsNodeType)
409
_scanner
.Name == "comment" ? XPathNodeType.Comment :
410
_scanner
.Name == "text" ? XPathNodeType.Text :
411
_scanner
.Name == "node" ? XPathNodeType.All :
412
_scanner
.Name == "processing-instruction" ? XPathNodeType.ProcessingInstruction :
422
if (
_scanner
.Kind != XPathScanner.LexKind.RParens)
425
nodeName =
_scanner
.StringValue;
434
nodePrefix =
_scanner
.Prefix;
435
nodeName =
_scanner
.Name;
449
throw XPathException.Create(SR.Xp_NodeSetExpected,
_scanner
.SourceText);
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;
466
switch (
_scanner
.Kind)
469
opnd = new Operand(
_scanner
.StringValue);
473
opnd = new Operand(
_scanner
.NumberValue);
479
opnd = new Variable(
_scanner
.Name,
_scanner
.Prefix);
492
if (
_scanner
.CanBeFunction && !IsNodeType)
505
string name =
_scanner
.Name;
506
string prefix =
_scanner
.Prefix;
509
if (
_scanner
.Kind != XPathScanner.LexKind.RParens)
514
if (
_scanner
.Kind == XPathScanner.LexKind.RParens)
530
throw XPathException.Create(SR.Xp_InvalidNumArgs, name,
_scanner
.SourceText);
548
throw XPathException.Create(SR.Xp_InvalidNumArgs, name,
_scanner
.SourceText);
567
throw XPathException.Create(SR.Xp_InvalidArgumentType, name,
_scanner
.SourceText);
599
if (
_scanner
.Kind != XPathScanner.LexKind.Union)
613
switch (
_scanner
.Kind)
618
if (
_scanner
.Kind == XPathScanner.LexKind.Eof ||
_scanner
.Kind == XPathScanner.LexKind.Union)
628
if (
_scanner
.CanBeFunction)
633
switch (
_scanner
.Kind)
655
Debug.Assert(
_scanner
.CanBeFunction);
657
if (
_scanner
.Prefix.Length == 0)
659
if (
_scanner
.Name == "id")
665
argList.Add(new Operand(
_scanner
.StringValue));
670
if (
_scanner
.Name == "key")
675
argList.Add(new Operand(
_scanner
.StringValue));
679
argList.Add(new Operand(
_scanner
.StringValue));
693
if (XPathScanner.LexKind.SlashSlash ==
_scanner
.Kind)
698
else if (XPathScanner.LexKind.Slash ==
_scanner
.Kind)
712
switch (
_scanner
.Kind)
722
throw XPathException.Create(SR.Xp_InvalidToken,
_scanner
.SourceText);
734
while (XPathScanner.LexKind.LBracket ==
_scanner
.Kind)
745
if (
_scanner
.Kind != t)
747
throw XPathException.Create(SR.Xp_InvalidToken,
_scanner
.SourceText);
759
_scanner
.NextLex();
765
_scanner
.Kind == XPathScanner.LexKind.Name &&
766
_scanner
.Prefix.Length == 0 &&
767
_scanner
.Name.Equals(op)
775
throw XPathException.Create(SR.Xp_NodeSetExpected,
_scanner
.SourceText);
867
Debug.Assert(
_scanner
.Kind == XPathScanner.LexKind.Axe);
869
if (!s_AxesTable.TryGetValue(
_scanner
.Name, out axis))
871
throw XPathException.Create(SR.Xp_InvalidToken,
_scanner
.SourceText);