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 77public IEqualityComparer<T> KeyComparer => _set.Comparer; 80public int Count => _set.Count; 82public bool IsDefault => _set == null; 85public bool IsEmpty => _set.Count == 0; 91object 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); 266if (_set.TryGetValue(equalValue, out var value)) 311return 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)
20var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 29var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 38var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set); 51=> set._set;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (3)
56internal readonly SegmentedHashSet<T> ReadOnlySet => _mutableSet ?? _set._set; 68_mutableSet = new SegmentedHashSet<T>(originalSet._set, originalSet.KeyComparer); 139GetOrCreateMutableSet().ExceptWith(otherSet._set);