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