3 writes to _buckets
Microsoft.CodeAnalysis.Workspaces (3)
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
165_buckets = (SegmentedArray<int>)source._buckets.Clone(); 908_buckets = new SegmentedArray<int>(newSize); 1004_buckets = buckets;
13 references to _buckets
Microsoft.CodeAnalysis.Workspaces (13)
src\Dependencies\Collections\SegmentedHashSet`1.cs (13)
160var capacity = source._buckets.Length; 165_buckets = (SegmentedArray<int>)source._buckets.Clone(); 202Debug.Assert(_buckets.Length > 0, "_buckets should be non-empty"); 205SegmentedArray.Clear(_buckets); 221var buckets = _buckets; 285var buckets = _buckets; 291if (_buckets.Length > 0) 398if (_buckets.Length > 0) 885if (_buckets.Length == 0) 1017if (_buckets.Length == 0) 1021Debug.Assert(_buckets.Length > 0); 1170Debug.Assert(_buckets.Length > 0, "_buckets shouldn't be empty; callers should check first"); 1327Debug.Assert((_buckets.Length > 0) && (_count > 0), "_buckets was empty but count greater than 0");