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)
26if (parser._scanner.Kind != XPathScanner.LexKind.Eof) 28throw XPathException.Create(SR.Xp_InvalidToken, parser._scanner.SourceText); 37if (parser._scanner.Kind != XPathScanner.LexKind.Eof) 39throw 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 : 191while (_scanner.Kind == XPathScanner.LexKind.Minus) 214if (_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"); 242if (_scanner.Kind == XPathScanner.LexKind.Slash) 247else if (_scanner.Kind == XPathScanner.LexKind.SlashSlash) 265while (_scanner.Kind == XPathScanner.LexKind.LBracket) 291if (_scanner.Kind == XPathScanner.LexKind.Slash) 296if (IsStep(_scanner.Kind)) 302else if (_scanner.Kind == XPathScanner.LexKind.SlashSlash) 321if (XPathScanner.LexKind.SlashSlash == _scanner.Kind) 326else if (XPathScanner.LexKind.Slash == _scanner.Kind) 356if (XPathScanner.LexKind.Dot == _scanner.Kind) 361else if (XPathScanner.LexKind.DotDot == _scanner.Kind) 369switch (_scanner.Kind) 388while (XPathScanner.LexKind.LBracket == _scanner.Kind) 401switch (_scanner.Kind) 404if (_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 : 422if (_scanner.Kind != XPathScanner.LexKind.RParens) 425nodeName = _scanner.StringValue; 434nodePrefix = _scanner.Prefix; 435nodeName = _scanner.Name; 449throw 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; 466switch (_scanner.Kind) 469opnd = new Operand(_scanner.StringValue); 473opnd = new Operand(_scanner.NumberValue); 479opnd = new Variable(_scanner.Name, _scanner.Prefix); 492if (_scanner.CanBeFunction && !IsNodeType) 505string name = _scanner.Name; 506string prefix = _scanner.Prefix; 509if (_scanner.Kind != XPathScanner.LexKind.RParens) 514if (_scanner.Kind == XPathScanner.LexKind.RParens) 530throw XPathException.Create(SR.Xp_InvalidNumArgs, name, _scanner.SourceText); 548throw XPathException.Create(SR.Xp_InvalidNumArgs, name, _scanner.SourceText); 567throw XPathException.Create(SR.Xp_InvalidArgumentType, name, _scanner.SourceText); 599if (_scanner.Kind != XPathScanner.LexKind.Union) 613switch (_scanner.Kind) 618if (_scanner.Kind == XPathScanner.LexKind.Eof || _scanner.Kind == XPathScanner.LexKind.Union) 628if (_scanner.CanBeFunction) 633switch (_scanner.Kind) 655Debug.Assert(_scanner.CanBeFunction); 657if (_scanner.Prefix.Length == 0) 659if (_scanner.Name == "id") 665argList.Add(new Operand(_scanner.StringValue)); 670if (_scanner.Name == "key") 675argList.Add(new Operand(_scanner.StringValue)); 679argList.Add(new Operand(_scanner.StringValue)); 693if (XPathScanner.LexKind.SlashSlash == _scanner.Kind) 698else if (XPathScanner.LexKind.Slash == _scanner.Kind) 712switch (_scanner.Kind) 722throw XPathException.Create(SR.Xp_InvalidToken, _scanner.SourceText); 734while (XPathScanner.LexKind.LBracket == _scanner.Kind) 745if (_scanner.Kind != t) 747throw 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) 775throw XPathException.Create(SR.Xp_NodeSetExpected, _scanner.SourceText); 867Debug.Assert(_scanner.Kind == XPathScanner.LexKind.Axe); 869if (!s_AxesTable.TryGetValue(_scanner.Name, out axis)) 871throw XPathException.Create(SR.Xp_InvalidToken, _scanner.SourceText);