1 write to _currentToken
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RoutePattern\RoutePatternParser.cs (1)
41_currentToken = _lexer.ScanNextToken();
34 references to _currentToken
Microsoft.AspNetCore.App.Analyzers (34)
Infrastructure\RoutePattern\RoutePatternParser.cs (34)
40var previous = _currentToken; 66Debug.Assert(_currentToken.Kind == RoutePatternKind.EndOfFile); 68var root = new RoutePatternCompilationUnit(rootParts, _currentToken); 352while (_currentToken.Kind != RoutePatternKind.EndOfFile) 361=> _currentToken.Kind switch 371while (_currentToken.Kind != RoutePatternKind.EndOfFile && 372_currentToken.Kind != RoutePatternKind.SlashToken) 382if (_currentToken.Kind == RoutePatternKind.OpenBraceToken) 384var openBraceToken = _currentToken; 388if (_currentToken.Kind != RoutePatternKind.OpenBraceToken) 397else if (_currentToken.Kind == RoutePatternKind.OpenBracketToken && _routePatternOptions.SupportTokenReplacement) 399var openBracketToken = _currentToken; 403if (_currentToken.Kind != RoutePatternKind.OpenBracketToken) 430if (_currentToken.Kind != RoutePatternKind.EndOfFile) 451if (_currentToken.Kind != RoutePatternKind.EndOfFile) 456new EmbeddedDiagnostic(Resources.AttributeRoute_TokenReplacement_EmptyTokenNotAllowed, _currentToken.GetFullSpan()!.Value)); 478if (_currentToken.Kind == kind) 489return result.AddDiagnosticIfNone(new EmbeddedDiagnostic(error, GetTokenStartPositionSpan(_currentToken))); 497if (_currentToken.Kind == RoutePatternKind.AsteriskToken) 499var firstAsteriskToken = _currentToken; 503if (_currentToken.Kind == RoutePatternKind.AsteriskToken) 507VirtualCharSequence.FromBounds(firstAsteriskToken.VirtualChars, _currentToken.VirtualChars)); 527if (_currentToken.Kind != RoutePatternKind.EndOfFile) 531new EmbeddedDiagnostic(Resources.FormatTemplateRoute_InvalidParameterName(""), _currentToken.GetFullSpan()!.Value)))); 538while (_currentToken.Kind != RoutePatternKind.EndOfFile) 540switch (_currentToken.Kind) 562var equalsToken = _currentToken; 575while (_currentToken.Kind != RoutePatternKind.EndOfFile && 576_currentToken.Kind != RoutePatternKind.CloseBraceToken && 577_currentToken.Kind != RoutePatternKind.ColonToken && 578_currentToken.Kind != RoutePatternKind.QuestionMarkToken && 579_currentToken.Kind != RoutePatternKind.EqualsToken) 583if (_currentToken.Kind == RoutePatternKind.OpenParenToken) 594_currentToken.Kind == RoutePatternKind.EndOfFile