Implemented interface members:
1 write to Count
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
242_builder.Count--;
44 references to Count
Microsoft.CodeAnalysis.Extensions.Package (44)
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
93ThrowIfTrue(_index + values.Count > _values.Length);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
714if (comparer != null && builder.Count > 1) 841Debug.Assert(builder.Count > 1); 912Debug.Assert(builder.Count == count); 1207var result = (builder.Count == array.Length) ? array : builder.ToImmutable();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
107public readonly int Count => _builder?.Count ?? _count;
src\Dependencies\PooledObjects\ArrayBuilder.cs (37)
44var result = new T[_builder.Count]; 90if (Count == 0) 94else if (_builder.Capacity == Count) 149=> Count == 0; 216=> FindIndex(0, this.Count, match); 219=> FindIndex(startIndex, this.Count - startIndex, match); 236=> FindIndex(0, Count, match, arg); 239=> FindIndex(startIndex, Count - startIndex, match, arg); 349if (this.Count <= 1) 374=> Count == 0 ? default : Last(); 391if (Count == 0) 405if (Count == 0) 410var result = new U[Count]; 434if (Count == 0) 438else if (_builder.Capacity == Count) 487if (this.Count != 0) 508Debug.Assert(builder.Count == 0); 564if (this.Count == 1) 572if (this.Count == 0) 579var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 580for (var i = 0; i < Count; i++) 625Debug.Assert(start + length <= items.Count); 692Debug.Assert(limit <= Count); 704EnsureCapacity(Count + count); 717for (var i = 0; i < Count; i++) 732if (Count <= 1) 742for (int i = 1; i < Count; i++) 756var result = ArrayBuilder<S>.GetInstance(Count); 828switch (Count) 846var result = new TResult[Count]; 864switch (Count) 882var result = new TResult[Count]; 900switch (Count) 918var result = new TResult[Count]; 935RemoveAt(Count - 1); 941if (Count > 0) 952=> this[Count - 1];
src\Dependencies\PooledObjects\ArrayBuilder.Enumerator.cs (1)
36return _index < _builder.Count;