12 references to Length
Microsoft.CodeAnalysis.CodeStyle (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (3)
81
if (LeadingTrivia.Length == 0 && VirtualChars.
Length
== 0 && TrailingTrivia.Length == 0)
86
Math.Min(VirtualChars.
Length
== 0 ? int.MaxValue : VirtualChars[0].Span.Start,
91
Math.Max(VirtualChars.
Length
== 0 ? int.MinValue : VirtualChars[^1].Span.End,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTrivia.cs (1)
28
Debug.Assert(virtualChars.
Length
> 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (3)
82
if (result.
Length
> 0)
95
for (var i = 1; i < result.
Length
; i++)
104
for (var i = 1; i < result.
Length
; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (4)
80
public bool IsEmpty =>
Length
== 0;
132
for (var i = this.
Length
- 1; i >= 0; i--)
165
=> this.GetSubSequence(TextSpan.FromBounds(count, this.
Length
));
178
return this.GetSubSequence(TextSpan.FromBounds(start, this.
Length
));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.Enumerator.cs (1)
16
public bool MoveNext() => ++_position < virtualCharSequence.
Length
;