1 write to _scanner
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (1)
21_scanner = scanner;
79 references to _scanner
dotnet-svcutil-lib (79)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (79)
109_scanner.Kind == XPathScanner.LexKind.Eq ? Operator.Op.EQ : 110_scanner.Kind == XPathScanner.LexKind.Ne ? Operator.Op.NE : 131_scanner.Kind == XPathScanner.LexKind.Lt ? Operator.Op.LT : 132_scanner.Kind == XPathScanner.LexKind.Le ? Operator.Op.LE : 133_scanner.Kind == XPathScanner.LexKind.Gt ? Operator.Op.GT : 134_scanner.Kind == XPathScanner.LexKind.Ge ? Operator.Op.GE : 155_scanner.Kind == XPathScanner.LexKind.Plus ? Operator.Op.PLUS : 156_scanner.Kind == XPathScanner.LexKind.Minus ? Operator.Op.MINUS : 177_scanner.Kind == XPathScanner.LexKind.Star ? Operator.Op.MUL : 195while (_scanner.Kind == XPathScanner.LexKind.Minus) 218if (_scanner.Kind != XPathScanner.LexKind.Union) 248if (IsPrimaryExpr(_scanner)) 251if (_scanner.Kind == XPathScanner.LexKind.Slash) 256else if (_scanner.Kind == XPathScanner.LexKind.SlashSlash) 274while (_scanner.Kind == XPathScanner.LexKind.LBracket) 300if (_scanner.Kind == XPathScanner.LexKind.Slash) 305if (IsStep(_scanner.Kind)) 311else if (_scanner.Kind == XPathScanner.LexKind.SlashSlash) 330if (XPathScanner.LexKind.SlashSlash == _scanner.Kind) 335else if (XPathScanner.LexKind.Slash == _scanner.Kind) 365if (XPathScanner.LexKind.Dot == _scanner.Kind) 370else if (XPathScanner.LexKind.DotDot == _scanner.Kind) 378switch (_scanner.Kind) 385axisType = GetAxis(_scanner); 397while (XPathScanner.LexKind.LBracket == _scanner.Kind) 410switch (_scanner.Kind) 413if (_scanner.CanBeFunction && IsNodeType(_scanner)) 418_scanner.Name == "comment" ? XPathNodeType.Comment : 419_scanner.Name == "text" ? XPathNodeType.Text : 420_scanner.Name == "node" ? XPathNodeType.All : 421_scanner.Name == "processing-instruction" ? XPathNodeType.ProcessingInstruction : 431if (_scanner.Kind != XPathScanner.LexKind.RParens) 434nodeName = _scanner.StringValue; 443nodePrefix = _scanner.Prefix; 444nodeName = _scanner.Name; 458throw XPathException.Create(ResXml.Xp_NodeSetExpected, _scanner.SourceText); 477Debug.Assert(IsPrimaryExpr(_scanner)); 479switch (_scanner.Kind) 482opnd = new Operand(_scanner.StringValue); 486opnd = new Operand(_scanner.NumberValue); 492opnd = new Variable(_scanner.Name, _scanner.Prefix); 505if (_scanner.CanBeFunction && !IsNodeType(_scanner)) 518string name = _scanner.Name; 519string prefix = _scanner.Prefix; 522if (_scanner.Kind != XPathScanner.LexKind.RParens) 527if (_scanner.Kind == XPathScanner.LexKind.RParens) 543throw XPathException.Create(ResXml.Xp_InvalidNumArgs, name, _scanner.SourceText); 561throw XPathException.Create(ResXml.Xp_InvalidNumArgs, name, _scanner.SourceText); 580throw XPathException.Create(ResXml.Xp_InvalidArgumentType, name, _scanner.SourceText); 612if (_scanner.Kind != XPathScanner.LexKind.Union) 626switch (_scanner.Kind) 631if (_scanner.Kind == XPathScanner.LexKind.Eof || _scanner.Kind == XPathScanner.LexKind.Union) 641if (_scanner.CanBeFunction) 646switch (_scanner.Kind) 668Debug.Assert(_scanner.CanBeFunction); 670if (_scanner.Prefix.Length == 0) 672if (_scanner.Name == "id") 678argList.Add(new Operand(_scanner.StringValue)); 683if (_scanner.Name == "key") 688argList.Add(new Operand(_scanner.StringValue)); 692argList.Add(new Operand(_scanner.StringValue)); 706if (XPathScanner.LexKind.SlashSlash == _scanner.Kind) 711else if (XPathScanner.LexKind.Slash == _scanner.Kind) 725switch (_scanner.Kind) 732axisType = GetAxis(_scanner); 735throw XPathException.Create(ResXml.Xp_InvalidToken, _scanner.SourceText); 747while (XPathScanner.LexKind.LBracket == _scanner.Kind) 758if (_scanner.Kind != t) 760throw XPathException.Create(ResXml.Xp_InvalidToken, _scanner.SourceText); 772_scanner.NextLex(); 778_scanner.Kind == XPathScanner.LexKind.Name && 779_scanner.Prefix.Length == 0 && 780_scanner.Name.Equals(op) 788throw XPathException.Create(ResXml.Xp_NodeSetExpected, _scanner.SourceText); 884throw XPathException.Create(ResXml.Xp_InvalidToken, _scanner.SourceText);