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)
160
var capacity = source.
_buckets
.Length;
165
_buckets = (SegmentedArray<int>)source.
_buckets
.Clone();
202
Debug.Assert(
_buckets
.Length > 0, "_buckets should be non-empty");
205
SegmentedArray.Clear(
_buckets
);
221
var buckets =
_buckets
;
285
var buckets =
_buckets
;
291
if (
_buckets
.Length > 0)
398
if (
_buckets
.Length > 0)
885
if (
_buckets
.Length == 0)
1017
if (
_buckets
.Length == 0)
1021
Debug.Assert(
_buckets
.Length > 0);
1170
Debug.Assert(
_buckets
.Length > 0, "_buckets shouldn't be empty; callers should check first");
1327
Debug.Assert((
_buckets
.Length > 0) && (_count > 0), "_buckets was empty but count greater than 0");