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