3 writes to _entries
Microsoft.CodeAnalysis (3)
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
166
_entries
= (SegmentedArray<Entry>)source._entries.Clone();
921
_entries
= entries;
1005
_entries
= entries;
25 references to _entries
Microsoft.CodeAnalysis (25)
src\Dependencies\Collections\SegmentedHashSet`1.cs (25)
129
if (_count > 0 &&
_entries
.Length / _count > ShrinkThreshold)
166
_entries = (SegmentedArray<Entry>)source.
_entries
.Clone();
176
var entries = source.
_entries
;
203
Debug.Assert(
_entries
.Length > 0, "_entries should be non-empty");
209
SegmentedArray.Clear(
_entries
, 0, count);
218
/// <summary>Gets the index of the item in <see cref="
_entries
"/>, or -1 if it's not in the set.</summary>
224
var entries =
_entries
;
281
/// <summary>Gets a reference to the specified hashcode's bucket, containing an index into <see cref="
_entries
"/>.</summary>
293
var entries =
_entries
;
403
actualValue =
_entries
[index]._value;
819
var entries =
_entries
;
839
var entries =
_entries
;
879
var currentCapacity =
_entries
.Length;
899
Debug.Assert(
_entries
.Length > 0, "_entries should be non-empty");
900
Debug.Assert(newSize >=
_entries
.Length);
905
var entries = CreateNewSegmentedArrayReusingOldSegments(
_entries
, newSize);
955
var oldEntries =
_entries
;
965
var entries =
_entries
;
1013
/// <param name="location">The index into <see cref="
_entries
"/> of the element.</param>
1023
var entries =
_entries
;
1102
entries =
_entries
;
1147
var entries =
_entries
;
1196
ref var entry = ref
_entries
[i];
1284
Remove(
_entries
[i]._value);
1412
ref var entry = ref _hashSet.
_entries
[_index++];