2 writes to _scanner
System.Private.Xml (2)
System\Xml\Xsl\XPath\XPathParser.cs (2)
30
_scanner
= scanner;
54
_scanner
= null;
90 references to _scanner
System.Private.Xml (90)
System\Xml\Xsl\XPath\XPathParser.cs (90)
26
Debug.Assert(
_scanner
== null && _builder == null);
83
if (
_scanner
!.Kind == LexKind.Slash)
85
_scanner
.NextLex();
88
if (IsStep(
_scanner
.Kind))
94
else if (
_scanner
.Kind == LexKind.SlashSlash)
96
_scanner
.NextLex();
123
throw
_scanner
!.CreateException(SR.Xslt_InputTooComplex);
127
if (
_scanner
!.Kind == LexKind.Slash)
129
_scanner
.NextLex();
132
else if (
_scanner
.Kind == LexKind.SlashSlash)
134
_scanner
.NextLex();
152
if (LexKind.Dot ==
_scanner
!.Kind)
154
_scanner
.NextLex();
156
if (LexKind.LBracket ==
_scanner
.Kind)
158
throw
_scanner
.CreateException(SR.XPath_PredicateAfterDot);
161
else if (LexKind.DotDot ==
_scanner
.Kind)
163
_scanner
.NextLex();
165
if (LexKind.LBracket ==
_scanner
.Kind)
167
throw
_scanner
.CreateException(SR.XPath_PredicateAfterDotDot);
173
switch (
_scanner
.Kind)
176
axis =
_scanner
.Axis;
177
_scanner
.NextLex();
178
_scanner
.NextLex();
182
_scanner
.NextLex();
190
throw
_scanner
.CreateException(SR.XPath_UnexpectedToken,
_scanner
.RawValue);
195
while (LexKind.LBracket ==
_scanner
.Kind)
220
int startChar =
_scanner
!.LexStart;
221
InternalParseNodeTest(
_scanner
, axis, out nodeType, out nodePrefix, out nodeName);
222
PushPosInfo(startChar,
_scanner
.PrevLexEnd);
313
_scanner
!.PassToken(LexKind.LBracket);
315
_scanner
.PassToken(LexKind.RBracket);
351
throw
_scanner
!.CreateException(SR.Xslt_InputTooComplex);
379
if (
_scanner
!.Kind == LexKind.Minus)
383
_scanner
.NextLex();
394
op = (
_scanner
.Kind <= LexKind.LastOperator) ? (XPathOperator)
_scanner
.Kind : XPathOperator.Unknown;
402
_scanner
.NextLex();
414
int startChar =
_scanner
!.LexStart;
417
if (
_scanner
.Kind == LexKind.Union)
419
PushPosInfo(startChar,
_scanner
.PrevLexEnd);
423
while (
_scanner
.Kind == LexKind.Union)
425
_scanner
.NextLex();
426
startChar =
_scanner
.LexStart;
428
PushPosInfo(startChar,
_scanner
.PrevLexEnd);
444
int startChar =
_scanner
!.LexStart;
446
int endChar =
_scanner
.PrevLexEnd;
448
if (
_scanner
.Kind == LexKind.Slash)
450
_scanner
.NextLex();
455
else if (
_scanner
.Kind == LexKind.SlashSlash)
457
_scanner
.NextLex();
480
int startChar =
_scanner
!.LexStart;
482
int endChar =
_scanner
.PrevLexEnd;
484
while (
_scanner
.Kind == LexKind.LBracket)
496
_scanner
!.Kind == LexKind.String ||
497
_scanner
.Kind == LexKind.Number ||
498
_scanner
.Kind == LexKind.Dollar ||
499
_scanner
.Kind == LexKind.LParens ||
500
_scanner
.Kind == LexKind.Name &&
_scanner
.CanBeFunction && !IsNodeType(
_scanner
)
511
switch (
_scanner
!.Kind)
514
opnd = _builder!.String(
_scanner
.StringValue);
515
_scanner
.NextLex();
518
opnd = _builder!.Number(XPathConvert.StringToDouble(
_scanner
.RawValue));
519
_scanner
.NextLex();
522
int startChar =
_scanner
.LexStart;
523
_scanner
.NextLex();
524
_scanner
.CheckToken(LexKind.Name);
525
PushPosInfo(startChar,
_scanner
.LexStart +
_scanner
.LexSize);
526
opnd = _builder!.Variable(
_scanner
.Prefix,
_scanner
.Name);
528
_scanner
.NextLex();
531
_scanner
.NextLex();
533
_scanner
.PassToken(LexKind.RParens);
537
_scanner
.Kind == LexKind.Name &&
_scanner
.CanBeFunction && !IsNodeType(
_scanner
),
552
string name =
_scanner
!.Name;
553
string prefix =
_scanner
.Prefix;
554
int startChar =
_scanner
.LexStart;
556
_scanner
.PassToken(LexKind.Name);
557
_scanner
.PassToken(LexKind.LParens);
559
if (
_scanner
.Kind != LexKind.RParens)
564
if (
_scanner
.Kind != LexKind.Comma)
566
_scanner
.CheckToken(LexKind.RParens);
569
_scanner
.NextLex(); // move off the ','
573
_scanner
.NextLex(); // move off the ')'
574
PushPosInfo(startChar,
_scanner
.PrevLexEnd);