1 write to _list
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
81=> _list = list;
49 references to _list
Microsoft.CodeAnalysis (49)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (40)
67/// <see cref="_list"/> field, that counts as a dereference of <c>this</c>. Calling other instance members 83public int Count => _list.Count; 85public bool IsDefault => _list == null; 88public bool IsEmpty => _list.Count == 0; 98object ICollection.SyncRoot => _list; 100public T this[int index] => _list[index]; 104get => _list[index]; 110get => _list[index]; 137return ref self._list._items[index]; 190=> _list.BinarySearch(item); 194=> _list.BinarySearch(item, comparer); 198=> _list.BinarySearch(index, count, item, comparer); 205=> _list.Contains(value); 209=> new ImmutableSegmentedList<TOutput>(_list.ConvertAll(converter)); 213=> _list.CopyTo(array); 216=> _list.CopyTo(array, arrayIndex); 220=> _list.CopyTo(index, array, arrayIndex, count); 224=> _list.Exists(match); 228=> _list.Find(match); 232=> new ImmutableSegmentedList<T>(_list.FindAll(match)); 236=> _list.FindIndex(match); 240=> _list.FindIndex(startIndex, match); 244=> _list.FindIndex(startIndex, count, match); 248=> _list.FindLast(match); 252=> _list.FindLastIndex(match); 266return self._list.FindLastIndex(startIndex, match); 281return self._list.FindLastIndex(startIndex, count, match); 286=> _list.ForEach(action); 290=> new(_list); 300return new ImmutableSegmentedList<T>(self._list.GetRange(index, count)); 304=> _list.IndexOf(value); 307=> _list.IndexOf(item, index, count, equalityComparer); 357return self._list.LastIndexOf(item, index, count, equalityComparer); 588=> _list?.GetHashCode() ?? 0; 597=> _list == other._list; 601=> _list.TrueForAll(match); 668IList backingList = _list; 674IList backingList = _list; 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (7)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list); 53=> list._list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (2)
37private readonly SegmentedList<T> ReadOnlyList => _mutableList ?? _list._list; 80_mutableList = new SegmentedList<T>(originalList._list);