3 writes to _items
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (3)
77_items = Array.Empty<T[]>(); 82_items = new T[(length + SegmentSize - 1) >> SegmentShift][]; 102_items = items;
28 references to _items
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (28)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (27)
44/// The bit shift to apply to an array index to get the page index within <see cref="_items"/>. 55/// The bit mask to apply to an array index to get the index within a page of <see cref="_items"/>. 83for (var i = 0; i < _items.Length - 1; i++) 85_items[i] = new T[SegmentSize]; 92var lastPageSize = length - ((_items.Length - 1) << SegmentShift); 94_items[_items.Length - 1] = new T[lastPageSize]; 113public object SyncRoot => _items; 120return ref _items[index >> SegmentShift][index & OffsetMask]; 146var items = (T[][])_items.Clone(); 157for (var i = 0; i < _items.Length; i++) 159_items[i].CopyTo(array, index + (i * SegmentSize)); 165for (var i = 0; i < _items.Length; i++) 167ICollection<T> collection = _items[i]; 183return _items.GetHashCode(); 188return _items == other._items; 205foreach (IList list in _items) 219foreach (IList list in _items) 230foreach (ICollection<T> collection in _items) 241for (var i = 0; i < _items.Length; i++) 243IList list = _items[i]; 256for (var i = 0; i < _items.Length; i++) 258IList<T> list = _items[i]; 336if (ReferenceEquals(_items, o._items)) 379_items = array._items;
src\Dependencies\Collections\Segmented\SegmentedArray`1+PrivateMarshal.cs (1)
18=> array._items;