21 writes to Position
Microsoft.AspNetCore.App.Analyzers (21)
Infrastructure\RoutePattern\RoutePatternLexer.cs (20)
42Position++; 108else if (ch.Value == '{' && IsUnescapedChar(ref Position, '{')) 113else if (ch.Value == '}' && IsUnescapedChar(ref Position, '}')) 122else if (ch.Value == '[' && IsUnescapedChar(ref Position, '[') && RoutePatternOptions.SupportTokenReplacement) 127else if (IsUnescapedChar(ref Position, ']') && RoutePatternOptions.SupportTokenReplacement) 132Position++; 197else if (ch.Value == '}' && IsUnescapedChar(ref Position, '}')) 201else if (ch.Value == '{' && IsUnescapedChar(ref Position, '{')) 210Position++; 266else if (ch.Value == '{' && IsUnescapedChar(ref Position, '{')) 270else if (IsUnescapedChar(ref Position, '}')) 283Position++; 355if (IsUnescapedChar(ref Position, '}')) 360else if (ch.Value == '{' && IsUnescapedChar(ref Position, '{')) 369Position++; 376Position = start; 404if (ch.Value == '[' && IsUnescapedChar(ref Position, '[')) 408else if (IsUnescapedCharLookahead(ref Position, ']')) 415Position++; 457Position++;
Infrastructure\RoutePattern\RoutePatternParser.cs (1)
433_lexer.Position--;
40 references to Position
Microsoft.AspNetCore.App.Analyzers (40)
Infrastructure\RoutePattern\RoutePatternLexer.cs (39)
26public VirtualChar CurrentChar => Position < Text.Length ? Text[Position] : default; 29=> GetSubPattern(start, Position); 36if (Position == Text.Length) 44return CreateToken(GetKind(ch), Text.GetSubSequence(new TextSpan(Position - 1, 1))); 71=> TextAt(Position, val); 89if (Position == Text.Length) 94var start = Position; 99while (Position < Text.Length) 116mismatchBracePosition = Position; 120questionMarkPosition = Position; 129mismatchBracketPosition = Position; 135if (Position == start) 174if (Position == Text.Length) 179var start = Position; 182while (Position < Text.Length) 185if (ch.Value is ':' or '=' && start != Position) 213if (Position == start) 252if (Position == Text.Length) 257var start = Position; 259while (Position < Text.Length) 261var ch = Text[Position]; 286if (Position == start) 343if (Position == Text.Length) 348var start = Position; 351while (Position < Text.Length) 353var ch = Text[Position]; 393if (Position == Text.Length) 398var start = Position; 400while (Position < Text.Length) 402var ch = Text[Position]; 418if (Position == start) 436if (Position == Text.Length) 441var start = Position; 442while (Position < Text.Length) 444var ch = Text[Position]; 460if (Position == start) 472if (Position == Text.Length) 477var current = Position;
Infrastructure\RoutePattern\RoutePatternParser.cs (1)
65Debug.Assert(_lexer.Position == _lexer.Text.Length);