1 write to _list
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
79=> _list = list;
49 references to _list
Microsoft.CodeAnalysis.CodeStyle (49)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (40)
65/// <see cref="_list"/> field, that counts as a dereference of <c>this</c>. Calling other instance members 81public int Count => _list.Count; 83public bool IsDefault => _list == null; 86public bool IsEmpty => _list.Count == 0; 96object ICollection.SyncRoot => _list; 98public T this[int index] => _list[index]; 102get => _list[index]; 108get => _list[index]; 135return ref self._list._items[index]; 188=> _list.BinarySearch(item); 192=> _list.BinarySearch(item, comparer); 196=> _list.BinarySearch(index, count, item, comparer); 203=> _list.Contains(value); 207=> new ImmutableSegmentedList<TOutput>(_list.ConvertAll(converter)); 211=> _list.CopyTo(array); 214=> _list.CopyTo(array, arrayIndex); 218=> _list.CopyTo(index, array, arrayIndex, count); 222=> _list.Exists(match); 226=> _list.Find(match); 230=> new ImmutableSegmentedList<T>(_list.FindAll(match)); 234=> _list.FindIndex(match); 238=> _list.FindIndex(startIndex, match); 242=> _list.FindIndex(startIndex, count, match); 246=> _list.FindLast(match); 250=> _list.FindLastIndex(match); 264return self._list.FindLastIndex(startIndex, match); 279return self._list.FindLastIndex(startIndex, count, match); 284=> _list.ForEach(action); 288=> new(_list); 298return new ImmutableSegmentedList<T>(self._list.GetRange(index, count)); 302=> _list.IndexOf(value); 305=> _list.IndexOf(item, index, count, equalityComparer); 355return self._list.LastIndexOf(item, index, count, equalityComparer); 586=> _list?.GetHashCode() ?? 0; 595=> _list == other._list; 599=> _list.TrueForAll(match); 666IList backingList = _list; 672IList backingList = _list; 687IList backingList = _list;
src\Dependencies\Collections\ImmutableSegmentedList`1+PrivateMarshal.cs (7)
20var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 29var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 38var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list); 51=> list._list;
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (2)
35private readonly SegmentedList<T> ReadOnlyList => _mutableList ?? _list._list; 78_mutableList = new SegmentedList<T>(originalList._list);