36 references to Length
Microsoft.AspNetCore.App.Analyzers (36)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (5)
37
public bool IsMissing => VirtualChars.
Length
== 0;
63
if (VirtualChars.
Length
== 0)
68
var start = VirtualChars.
Length
== 0 ? int.MaxValue : VirtualChars[0].Span.Start;
69
var end = VirtualChars.
Length
== 0 ? int.MinValue : VirtualChars[VirtualChars.
Length
- 1].Span.End;
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxTrivia.cs (1)
27
Debug.Assert(virtualChars.
Length
> 0);
Infrastructure\RoutePattern\RoutePatternLexer.cs (19)
26
public VirtualChar CurrentChar => Position < Text.
Length
? Text[Position] : default;
36
if (Position == Text.
Length
)
77
if (position + i >= Text.
Length
||
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
)
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
)
393
if (Position == Text.
Length
)
400
while (Position < Text.
Length
)
436
if (Position == Text.
Length
)
442
while (Position < Text.
Length
)
472
if (Position == Text.
Length
)
478
while (current < Text.
Length
)
Infrastructure\RoutePattern\RoutePatternParser.cs (2)
65
Debug.Assert(_lexer.Position == _lexer.Text.
Length
);
254
encodeSlashes = catchAllNode.AsteriskToken.VirtualChars.
Length
== 1;
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (3)
79
if (result.
Length
> 0)
92
for (var i = 1; i < result.
Length
; i++)
101
for (var i = 1; i < result.
Length
; i++)
Infrastructure\VirtualChars\VirtualCharSequence.cs (5)
84
public bool IsEmpty =>
Length
== 0;
97
public VirtualChar Last() => this[
Length
- 1];
140
for (var i = this.
Length
- 1; i >= 0; i--)
179
=> this.GetSubSequence(TextSpan.FromBounds(count, this.
Length
));
194
return this.GetSubSequence(TextSpan.FromBounds(start, this.
Length
));
Infrastructure\VirtualChars\VirtualCharSequence.Enumerator.cs (1)
23
public bool MoveNext() => ++_position < _virtualCharSequence.
Length
;