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)
40
var previous =
_currentToken
;
66
Debug.Assert(
_currentToken
.Kind == RoutePatternKind.EndOfFile);
68
var root = new RoutePatternCompilationUnit(rootParts,
_currentToken
);
352
while (
_currentToken
.Kind != RoutePatternKind.EndOfFile)
361
=>
_currentToken
.Kind switch
371
while (
_currentToken
.Kind != RoutePatternKind.EndOfFile &&
372
_currentToken
.Kind != RoutePatternKind.SlashToken)
382
if (
_currentToken
.Kind == RoutePatternKind.OpenBraceToken)
384
var openBraceToken =
_currentToken
;
388
if (
_currentToken
.Kind != RoutePatternKind.OpenBraceToken)
397
else if (
_currentToken
.Kind == RoutePatternKind.OpenBracketToken && _routePatternOptions.SupportTokenReplacement)
399
var openBracketToken =
_currentToken
;
403
if (
_currentToken
.Kind != RoutePatternKind.OpenBracketToken)
430
if (
_currentToken
.Kind != RoutePatternKind.EndOfFile)
451
if (
_currentToken
.Kind != RoutePatternKind.EndOfFile)
456
new EmbeddedDiagnostic(Resources.AttributeRoute_TokenReplacement_EmptyTokenNotAllowed,
_currentToken
.GetFullSpan()!.Value));
478
if (
_currentToken
.Kind == kind)
489
return result.AddDiagnosticIfNone(new EmbeddedDiagnostic(error, GetTokenStartPositionSpan(
_currentToken
)));
497
if (
_currentToken
.Kind == RoutePatternKind.AsteriskToken)
499
var firstAsteriskToken =
_currentToken
;
503
if (
_currentToken
.Kind == RoutePatternKind.AsteriskToken)
507
VirtualCharSequence.FromBounds(firstAsteriskToken.VirtualChars,
_currentToken
.VirtualChars));
527
if (
_currentToken
.Kind != RoutePatternKind.EndOfFile)
531
new EmbeddedDiagnostic(Resources.FormatTemplateRoute_InvalidParameterName(""),
_currentToken
.GetFullSpan()!.Value))));
538
while (
_currentToken
.Kind != RoutePatternKind.EndOfFile)
540
switch (
_currentToken
.Kind)
562
var equalsToken =
_currentToken
;
575
while (
_currentToken
.Kind != RoutePatternKind.EndOfFile &&
576
_currentToken
.Kind != RoutePatternKind.CloseBraceToken &&
577
_currentToken
.Kind != RoutePatternKind.ColonToken &&
578
_currentToken
.Kind != RoutePatternKind.QuestionMarkToken &&
579
_currentToken
.Kind != RoutePatternKind.EqualsToken)
583
if (
_currentToken
.Kind == RoutePatternKind.OpenParenToken)
594
_currentToken
.Kind == RoutePatternKind.EndOfFile