1 write to scanner
System.Data.SqlXml (1)
System\Xml\Xsl\Xslt\XPathPatternParser.cs (1)
34
this.
scanner
= scanner;
58 references to scanner
System.Data.SqlXml (58)
System\Xml\Xsl\Xslt\XPathPatternParser.cs (58)
29
Debug.Assert(this.
scanner
== null && this.ptrnBuilder == null);
37
this.
scanner
.CheckToken(LexKind.Eof);
54
while (
scanner
.Kind == LexKind.Union) {
55
scanner
.NextLex();
67
switch (
scanner
.Kind) {
69
scanner
.NextLex();
72
if (XPathParser.IsStep(
scanner
.Kind)) {
77
scanner
.NextLex();
86
if (
scanner
.CanBeFunction &&
scanner
.Prefix.Length == 0 && (
scanner
.Name == "id" ||
scanner
.Name == "key")) {
88
switch (
scanner
.Kind) {
90
scanner
.NextLex();
94
scanner
.NextLex();
115
Debug.Assert(
scanner
.CanBeFunction);
116
Debug.Assert(
scanner
.Prefix.Length == 0);
117
Debug.Assert(
scanner
.Name == "id" ||
scanner
.Name == "key");
120
if (
scanner
.Name == "id") {
121
scanner
.NextLex();
122
scanner
.PassToken(LexKind.LParens);
123
scanner
.CheckToken(LexKind.String);
124
args.Add(ptrnBuilder.String(
scanner
.StringValue));
125
scanner
.NextLex();
126
scanner
.PassToken(LexKind.RParens);
129
scanner
.NextLex();
130
scanner
.PassToken(LexKind.LParens);
131
scanner
.CheckToken(LexKind.String);
132
args.Add(ptrnBuilder.String(
scanner
.StringValue));
133
scanner
.NextLex();
134
scanner
.PassToken(LexKind.Comma);
135
scanner
.CheckToken(LexKind.String);
136
args.Add(ptrnBuilder.String(
scanner
.StringValue));
137
scanner
.NextLex();
138
scanner
.PassToken(LexKind.RParens);
152
throw
scanner
.CreateException(System.Xml.Utils.Res.Xslt_InputTooComplex);
156
if (
scanner
.Kind == LexKind.Slash) {
157
scanner
.NextLex();
159
} else if (
scanner
.Kind == LexKind.SlashSlash) {
160
scanner
.NextLex();
180
switch (
scanner
.Kind) {
183
throw
scanner
.CreateException(Res.XPath_InvalidAxisInPattern);
186
scanner
.NextLex();
189
axis =
scanner
.Axis;
191
throw
scanner
.CreateException(Res.XPath_InvalidAxisInPattern);
193
scanner
.NextLex(); // Skip '::'
194
scanner
.NextLex();
202
throw
scanner
.CreateException(Res.XPath_UnexpectedToken,
scanner
.RawValue);
207
XPathParser.InternalParseNodeTest(
scanner
, axis, out nodeType, out nodePrefix, out nodeName);
214
while (
scanner
.Kind == LexKind.LBracket) {
221
while (
scanner
.Kind == LexKind.LBracket) {
232
Debug.Assert(
scanner
.Kind == LexKind.LBracket);
233
scanner
.NextLex();
234
QilNode result = predicateParser.Parse(
scanner
, ptrnBuilder.GetPredicateBuilder(context), LexKind.RBracket);
235
Debug.Assert(
scanner
.Kind == LexKind.RBracket);
236
scanner
.NextLex();