1 write to _set
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
73
_set
= set;
30 references to _set
Microsoft.CodeAnalysis (30)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (20)
58
/// <see cref="
_set
"/> field, that counts as a dereference of <c>this</c>. Calling other instance members
77
public IEqualityComparer<T> KeyComparer =>
_set
.Comparer;
80
public int Count =>
_set
.Count;
82
public bool IsDefault =>
_set
== null;
85
public bool IsEmpty =>
_set
.Count == 0;
91
object ICollection.SyncRoot =>
_set
;
143
=>
_set
.Contains(value);
175
=> new(
_set
);
197
=>
_set
.IsProperSubsetOf(other);
201
=>
_set
.IsProperSupersetOf(other);
205
=>
_set
.IsSubsetOf(other);
209
=>
_set
.IsSupersetOf(other);
213
=>
_set
.Overlaps(other);
235
=>
_set
.SetEquals(other);
266
if (
_set
.TryGetValue(equalValue, out var value))
311
return new ImmutableSegmentedHashSet<T>(new SegmentedHashSet<T>(self.
_set
, equalityComparer));
315
=>
_set
?.GetHashCode() ?? 0;
321
=>
_set
== other.
_set
;
345
=>
_set
.CopyTo(array, arrayIndex);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (7)
20
var set = Volatile.Read(ref Unsafe.AsRef(in location.
_set
));
29
var set = Interlocked.Exchange(ref Unsafe.AsRef(in location.
_set
), value.
_set
);
38
var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location.
_set
), value.
_set
, comparand.
_set
);
51
=> set.
_set
;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (3)
56
internal readonly SegmentedHashSet<T> ReadOnlySet => _mutableSet ?? _set.
_set
;
68
_mutableSet = new SegmentedHashSet<T>(originalSet.
_set
, originalSet.KeyComparer);
139
GetOrCreateMutableSet().ExceptWith(otherSet.
_set
);