1 write to _list
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
79
=>
_list
= list;
49 references to _list
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (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
81
public int Count =>
_list
.Count;
83
public bool IsDefault =>
_list
== null;
86
public bool IsEmpty =>
_list
.Count == 0;
96
object ICollection.SyncRoot =>
_list
;
98
public T this[int index] =>
_list
[index];
102
get =>
_list
[index];
108
get =>
_list
[index];
135
return 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);
264
return self.
_list
.FindLastIndex(startIndex, match);
279
return self.
_list
.FindLastIndex(startIndex, count, match);
284
=>
_list
.ForEach(action);
288
=> new(
_list
);
298
return new ImmutableSegmentedList<T>(self.
_list
.GetRange(index, count));
302
=>
_list
.IndexOf(value);
305
=>
_list
.IndexOf(item, index, count, equalityComparer);
355
return self.
_list
.LastIndexOf(item, index, count, equalityComparer);
586
=>
_list
?.GetHashCode() ?? 0;
595
=>
_list
== other.
_list
;
599
=>
_list
.TrueForAll(match);
666
IList backingList =
_list
;
672
IList backingList =
_list
;
687
IList backingList =
_list
;
src\Dependencies\Collections\ImmutableSegmentedList`1+PrivateMarshal.cs (7)
20
var list = Volatile.Read(ref Unsafe.AsRef(in location.
_list
));
29
var list = Interlocked.Exchange(ref Unsafe.AsRef(in location.
_list
), value.
_list
);
38
var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location.
_list
), value.
_list
, comparand.
_list
);
51
=> list.
_list
;
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (2)
35
private readonly SegmentedList<T> ReadOnlyList => _mutableList ?? _list.
_list
;
78
_mutableList = new SegmentedList<T>(originalList.
_list
);