1 write to Text
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RoutePattern\RoutePatternLexer.cs (1)
22
Text
= text;
36 references to Text
Microsoft.AspNetCore.App.Analyzers (36)
Infrastructure\RoutePattern\RoutePatternLexer.cs (33)
26
public VirtualChar CurrentChar => Position <
Text
.Length ?
Text
[Position] : default;
32
=>
Text
.GetSubSequence(TextSpan.FromBounds(start, end));
36
if (Position ==
Text
.Length)
44
return CreateToken(GetKind(ch),
Text
.GetSubSequence(new TextSpan(Position - 1, 1)));
68
=> TextSpan.FromBounds(
Text
[startInclusive].Span.Start,
Text
[endExclusive - 1].Span.End);
77
if (position + i >=
Text
.Length ||
78
Text
[position + i].Value != val[i])
89
if (Position ==
Text
.Length)
99
while (Position <
Text
.Length)
174
if (Position ==
Text
.Length)
182
while (Position <
Text
.Length)
252
if (Position ==
Text
.Length)
259
while (Position <
Text
.Length)
261
var ch =
Text
[Position];
303
if (
Text
[position].Value != c)
308
if (position + 1 >=
Text
.Length ||
Text
[position + 1].Value != c)
320
while (currentPosition <
Text
.Length &&
Text
[currentPosition].Value == c)
343
if (Position ==
Text
.Length)
351
while (Position <
Text
.Length)
353
var ch =
Text
[Position];
393
if (Position ==
Text
.Length)
400
while (Position <
Text
.Length)
402
var ch =
Text
[Position];
436
if (Position ==
Text
.Length)
442
while (Position <
Text
.Length)
444
var ch =
Text
[Position];
472
if (Position ==
Text
.Length)
478
while (current <
Text
.Length)
480
var ch =
Text
[current];
Infrastructure\RoutePattern\RoutePatternParser.cs (3)
65
Debug.Assert(_lexer.Position == _lexer.
Text
.Length);
81
return new RoutePatternTree(_lexer.
Text
, root, diagnostics.ToImmutable(), routeParameters.ToImmutable());
620
? new TextSpan(_lexer.
Text
.Last().Span.End, 0)