2 writes to _scanner
System.Private.Xml (2)
System\Xml\Xsl\Xslt\XPathPatternParser.cs (2)
33
_scanner
= scanner;
43
_scanner
= null;
58 references to _scanner
System.Private.Xml (58)
System\Xml\Xsl\Xslt\XPathPatternParser.cs (58)
27
Debug.Assert(
_scanner
== null && _ptrnBuilder == null);
36
_scanner
.CheckToken(LexKind.Eof);
56
while (
_scanner
!.Kind == LexKind.Union)
58
_scanner
.NextLex();
71
switch (
_scanner
!.Kind)
74
_scanner
.NextLex();
77
if (XPathParser.IsStep(
_scanner
.Kind))
83
_scanner
.NextLex();
92
if (
_scanner
.CanBeFunction &&
_scanner
.Prefix.Length == 0 && (
_scanner
.Name == "id" ||
_scanner
.Name == "key"))
95
switch (
_scanner
.Kind)
98
_scanner
.NextLex();
102
_scanner
.NextLex();
124
Debug.Assert(
_scanner
!.CanBeFunction);
125
Debug.Assert(
_scanner
.Prefix.Length == 0);
126
Debug.Assert(
_scanner
.Name == "id" ||
_scanner
.Name == "key");
129
if (
_scanner
.Name == "id")
131
_scanner
.NextLex();
132
_scanner
.PassToken(LexKind.LParens);
133
_scanner
.CheckToken(LexKind.String);
134
args.Add(_ptrnBuilder!.String(
_scanner
.StringValue));
135
_scanner
.NextLex();
136
_scanner
.PassToken(LexKind.RParens);
141
_scanner
.NextLex();
142
_scanner
.PassToken(LexKind.LParens);
143
_scanner
.CheckToken(LexKind.String);
144
args.Add(_ptrnBuilder!.String(
_scanner
.StringValue));
145
_scanner
.NextLex();
146
_scanner
.PassToken(LexKind.Comma);
147
_scanner
.CheckToken(LexKind.String);
148
args.Add(_ptrnBuilder.String(
_scanner
.StringValue));
149
_scanner
.NextLex();
150
_scanner
.PassToken(LexKind.RParens);
167
throw
_scanner
!.CreateException(SR.Xslt_InputTooComplex);
171
if (
_scanner
!.Kind == LexKind.Slash)
173
_scanner
.NextLex();
176
else if (
_scanner
.Kind == LexKind.SlashSlash)
178
_scanner
.NextLex();
199
switch (
_scanner
!.Kind)
203
throw
_scanner
.CreateException(SR.XPath_InvalidAxisInPattern);
206
_scanner
.NextLex();
209
axis =
_scanner
.Axis;
212
throw
_scanner
.CreateException(SR.XPath_InvalidAxisInPattern);
214
_scanner
.NextLex(); // Skip '::'
215
_scanner
.NextLex();
223
throw
_scanner
.CreateException(SR.XPath_UnexpectedToken,
_scanner
.RawValue);
228
XPathParser.InternalParseNodeTest(
_scanner
, axis, out nodeType, out nodePrefix, out nodeName);
236
while (
_scanner
.Kind == LexKind.LBracket)
245
while (
_scanner
.Kind == LexKind.LBracket)
258
Debug.Assert(
_scanner
!.Kind == LexKind.LBracket);
259
_scanner
.NextLex();
260
QilNode result = _predicateParser.Parse(
_scanner
, _ptrnBuilder!.GetPredicateBuilder(context), LexKind.RBracket);
261
Debug.Assert(
_scanner
.Kind == LexKind.RBracket);
262
_scanner
.NextLex();