4 writes to _count
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\SegmentedHashSet`1.cs (4)
169_count = source._count; 206_count = 0; 981_count = capacity; 1101_count = count + 1;
21 references to _count
Microsoft.CodeAnalysis.Workspaces (21)
src\Dependencies\Collections\SegmentedHashSet`1.cs (21)
129if (_count > 0 && _entries.Length / _count > ShrinkThreshold) 169_count = source._count; 177for (var i = 0; i < source._count; i++) 199var count = _count; 356public int Count => _count - _freeCount; 820for (var i = 0; i < _count && count != 0; i++) 841for (var i = 0; i < _count; i++) 895private void Resize() => Resize(HashHelpers.ExpandPrime(_count)); 902var count = _count; 962var oldCount = _count; 1094var count = _count; 1148for (var i = 0; i < _count; i++) 1174var originalCount = _count; 1242var originalCount = _count; 1315if (_count == 0) 1327Debug.Assert((_buckets.Length > 0) && (_count > 0), "_buckets was empty but count greater than 0"); 1329var originalCount = _count; 1410while ((uint)_index < (uint)_hashSet._count) 1420_index = _hashSet._count + 1; 1433if (_index == 0 || (_index == _hashSet._count + 1))