Implemented interface members:
27 references to Count
Microsoft.CodeAnalysis.Workspaces (27)
Classification\ClassifierHelper.cs (2)
99for (var i = spans.Count - 1; i >= 0; i--) 157for (var i = 0; i < spans.Count; i++)
Classification\IRemoteSemanticClassificationService.cs (2)
76var classificationTriples = new FixedSizeArrayBuilder<int>(classifiedSpans.Count * 3); 101classifiedSpans.EnsureCapacity(classifiedSpans.Count + (ClassificationTriples.Length / 3));
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (2)
81public int Count => _list.Count; 86public bool IsEmpty => _list.Count == 0;
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (3)
33public readonly int Count => ReadOnlyList.Count; 62if ((uint)index >= (uint)ReadOnlyList.Count) 106if (ReadOnlyList.Count != 0)
src\Dependencies\Collections\SegmentedList`1.cs (9)
288return Count - 1; 314SegmentedArray.Copy(list._items, 0, _items, _size, list.Count); 377=> BinarySearch(0, Count, item, null); 380=> BinarySearch(0, Count, item, comparer); 735Count == 0 ? GetEmptyEnumerator() : 926SegmentedArray.Copy(list._items, 0, _items, index, list.Count); 1184=> Reverse(0, Count); 1216=> Sort(0, Count, null); 1221=> Sort(0, Count, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (3)
82if (values.Count == 0) 86var array = new SegmentedArray<Node>(values.Count); 89BuildCompleteTree(values, sourceStartInclusive: 0, sourceEndExclusive: values.Count, array, destinationIndex: 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (2)
146var count = _initialIndentBlockOperations.Count - 1 + operations.Count; 155for (var i = 0; i < operations.Count; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (3)
84for (var i = 1; i < _tokens.Count; i++) 134public int TokenCount => _tokens.Count; 520for (var i = tokenIndex; i < _tokens.Count; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Iterator.cs (1)
29_maxCount = _tokensIncludingZeroWidth.Count - 1;