2 writes to _buckets
Microsoft.CodeAnalysis.CodeStyle (2)
ImmutableHashMap.cs (2)
820_buckets = buckets; 850_buckets = new Bucket[2];
16 references to _buckets
Microsoft.CodeAnalysis.CodeStyle (16)
ImmutableHashMap.cs (16)
851_buckets[this.ComputePhysicalSlot(s1)] = bucket1; 852_buckets[this.ComputePhysicalSlot(s2)] = bucket2; 869var existing = _buckets[physicalSlot]; 876var newBuckets = _buckets.ReplaceAt(physicalSlot, added); 887var newBuckets = _buckets.InsertAt(physicalSlot, bucket); 899var existing = _buckets[physicalSlot]; 903if (_buckets.Length == 1) 907else if (_buckets.Length == 2) 909return physicalSlot == 0 ? _buckets[1] : _buckets[0]; 913return new HashBucket(_hashRoll, RemoveBit(logicalSlot, _used), _buckets.RemoveAt(physicalSlot), _count - existing.Count); 916else if (_buckets[physicalSlot] != result) 918return new HashBucket(_hashRoll, _used, _buckets.ReplaceAt(physicalSlot, result), _count - existing.Count + result.Count); 931return _buckets[physicalSlot].Get(hash, key, comparer); 938=> _buckets; 966if (_buckets.Length == 32)