Implemented interface members:
23 references to Count
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (23)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
83
public int Count => _list.
Count
;
88
public bool IsEmpty => _list.
Count
== 0;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (3)
35
public readonly int Count => ReadOnlyList.
Count
;
64
if ((uint)index >= (uint)ReadOnlyList.
Count
)
108
if (ReadOnlyList.
Count
!= 0)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (9)
290
return
Count
- 1;
316
SegmentedArray.Copy(list._items, 0, _items, _size, list.
Count
);
379
=> BinarySearch(0,
Count
, item, null);
382
=> BinarySearch(0,
Count
, item, comparer);
737
Count
== 0 ? GetEmptyEnumerator() :
928
SegmentedArray.Copy(list._items, 0, _items, index, list.
Count
);
1186
=> Reverse(0,
Count
);
1218
=> Sort(0,
Count
, null);
1223
=> Sort(0,
Count
, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (3)
82
if (values.
Count
== 0)
86
var array = new SegmentedArray<Node>(values.
Count
);
89
BuildCompleteTree(values, sourceStartInclusive: 0, sourceEndExclusive: values.
Count
, array, destinationIndex: 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
145
var count = _initialIndentBlockOperations.Count - 1 + operations.
Count
;
154
for (var i = 0; i < operations.
Count
; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (3)
82
for (var i = 1; i < _tokens.
Count
; i++)
132
public int TokenCount => _tokens.
Count
;
518
for (var i = tokenIndex; i < _tokens.
Count
; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Iterator.cs (1)
29
_maxCount = _tokensIncludingZeroWidth.
Count
- 1;