1 write to scanner
System.Xml (1)
System\Xml\XPath\Internal\XPathParser.cs (1)
21
this.
scanner
= scanner;
79 references to scanner
System.Xml (79)
System\Xml\XPath\Internal\XPathParser.cs (79)
95
this.
scanner
.Kind == XPathScanner.LexKind.Eq ? Operator.Op.EQ :
96
this.
scanner
.Kind == XPathScanner.LexKind.Ne ? Operator.Op.NE :
114
this.
scanner
.Kind == XPathScanner.LexKind.Lt ? Operator.Op.LT :
115
this.
scanner
.Kind == XPathScanner.LexKind.Le ? Operator.Op.LE :
116
this.
scanner
.Kind == XPathScanner.LexKind.Gt ? Operator.Op.GT :
117
this.
scanner
.Kind == XPathScanner.LexKind.Ge ? Operator.Op.GE :
135
this.
scanner
.Kind == XPathScanner.LexKind.Plus ? Operator.Op.PLUS :
136
this.
scanner
.Kind == XPathScanner.LexKind.Minus ? Operator.Op.MINUS :
154
this.
scanner
.Kind == XPathScanner.LexKind.Star ? Operator.Op.MUL :
170
while (this.
scanner
.Kind == XPathScanner.LexKind.Minus) {
188
if (this.
scanner
.Kind != XPathScanner.LexKind.Union) {
215
if (IsPrimaryExpr(this.
scanner
)) { // in this moment we shoud distinct LocationPas vs FilterExpr (which starts from is PrimaryExpr)
217
if (this.
scanner
.Kind == XPathScanner.LexKind.Slash) {
221
else if (this.
scanner
.Kind == XPathScanner.LexKind.SlashSlash) {
236
while (this.
scanner
.Kind == XPathScanner.LexKind.LBracket) {
259
if (this.
scanner
.Kind == XPathScanner.LexKind.Slash) {
263
if (IsStep(this.
scanner
.Kind)) {
268
else if (this.
scanner
.Kind == XPathScanner.LexKind.SlashSlash) {
283
if (XPathScanner.LexKind.SlashSlash == this.
scanner
.Kind) {
287
else if (XPathScanner.LexKind.Slash == this.
scanner
.Kind) {
313
if (XPathScanner.LexKind.Dot == this.
scanner
.Kind) { //>> '.'
317
else if (XPathScanner.LexKind.DotDot == this.
scanner
.Kind) { //>> '..'
323
switch (this.
scanner
.Kind) {
329
axisType = GetAxis(this.
scanner
);
341
while (XPathScanner.LexKind.LBracket == this.
scanner
.Kind) {
352
switch (this.
scanner
.Kind) {
354
if (this.
scanner
.CanBeFunction && IsNodeType(this.
scanner
)) {
358
this.
scanner
.Name == "comment" ? XPathNodeType.Comment :
359
this.
scanner
.Name == "text" ? XPathNodeType.Text :
360
this.
scanner
.Name == "node" ? XPathNodeType.All :
361
this.
scanner
.Name == "processing-instruction" ? XPathNodeType.ProcessingInstruction :
370
if (this.
scanner
.Kind != XPathScanner.LexKind.RParens) { //>> 'processing-instruction (' Literal ')'
372
nodeName = this.
scanner
.StringValue;
380
nodePrefix = this.
scanner
.Prefix;
381
nodeName = this.
scanner
.Name;
394
throw XPathException.Create(Res.Xp_NodeSetExpected, this.
scanner
.SourceText);
411
Debug.Assert(IsPrimaryExpr(this.
scanner
));
413
switch (this.
scanner
.Kind) {
415
opnd = new Operand(this.
scanner
.StringValue);
419
opnd = new Operand(this.
scanner
.NumberValue);
425
opnd = new Variable(this.
scanner
.Name, this.
scanner
.Prefix);
437
if (this.
scanner
.CanBeFunction && ! IsNodeType(this.
scanner
)) {
448
string name = this.
scanner
.Name;
449
string prefix = this.
scanner
.Prefix;
452
if (this.
scanner
.Kind != XPathScanner.LexKind.RParens) {
455
if (this.
scanner
.Kind == XPathScanner.LexKind.RParens) {
467
throw XPathException.Create(Res.Xp_InvalidNumArgs, name, this.
scanner
.SourceText);
480
throw XPathException.Create(Res.Xp_InvalidNumArgs, name, this.
scanner
.SourceText);
494
throw XPathException.Create(Res.Xp_InvalidArgumentType, name, this.
scanner
.SourceText);
524
if (this.
scanner
.Kind != XPathScanner.LexKind.Union) {
536
switch (this.
scanner
.Kind) {
540
if (this.
scanner
.Kind == XPathScanner.LexKind.Eof || this.
scanner
.Kind == XPathScanner.LexKind.Union) {
549
if (this.
scanner
.CanBeFunction) {
552
switch (this.
scanner
.Kind) {
572
Debug.Assert(this.
scanner
.CanBeFunction);
574
if (this.
scanner
.Prefix.Length == 0) {
575
if (this.
scanner
.Name == "id") {
580
argList.Add(new Operand(this.
scanner
.StringValue));
585
if (this.
scanner
.Name == "key") {
589
argList.Add(new Operand(this.
scanner
.StringValue));
593
argList.Add(new Operand(this.
scanner
.StringValue));
606
if (XPathScanner.LexKind.SlashSlash == this.
scanner
.Kind) {
610
else if (XPathScanner.LexKind.Slash == this.
scanner
.Kind) {
622
switch (this.
scanner
.Kind) {
628
axisType = GetAxis(this.
scanner
);
630
throw XPathException.Create(Res.Xp_InvalidToken,
scanner
.SourceText);
642
while (XPathScanner.LexKind.LBracket == this.
scanner
.Kind) {
651
if (this.
scanner
.Kind != t) {
652
throw XPathException.Create(Res.Xp_InvalidToken, this.
scanner
.SourceText);
662
this.
scanner
.NextLex();
667
this.
scanner
.Kind == XPathScanner.LexKind.Name &&
668
this.
scanner
.Prefix.Length == 0 &&
669
this.
scanner
.Name.Equals(op)
675
throw XPathException.Create(Res.Xp_NodeSetExpected, this.
scanner
.SourceText);
765
throw XPathException.Create(Res.Xp_InvalidToken,
scanner
.SourceText);