10 writes to _count
Microsoft.CodeAnalysis.Razor.Compiler (10)
Language\Intermediate\IntermediateNodeCollection.InlineList.cs (10)
72_count = 1; 83_count = 2; 92_items[_count++] = item; 100_count = 1; 120_count = 2; 135_count++; 144_count = 0; 151_count = 1; 156_count--; 179_count = 0;
22 references to _count
Microsoft.CodeAnalysis.Razor.Compiler (22)
Language\Intermediate\IntermediateNodeCollection.InlineList.cs (22)
30public readonly int Count => _count; 41if (index == 0 && _count == 1) 57if (index == 0 && _count == 1) 69if (_count == 0) 87if (_count == _items.Length) 89Grow(_count + 1); 97if (_count == 0 && index == 0) 124if (_count == _items.Length) 126Grow(_count + 1); 129if (index < _count) 131Array.Copy(_items, index, _items, index + 1, _count - index); 140if (_count == 1) 146else if (_count == 2) 157if (index < _count) 159Array.Copy(_items, index + 1, _items, index, _count - index); 162_items[_count] = null; 170Array.Clear(_items, 0, _count); 186return Array.IndexOf(_items, item, 0, _count); 189if (_count == 1 && EqualityComparer<IntermediateNode>.Default.Equals(_single, item)) 201Array.Copy(_items, 0, array, arrayIndex, _count); 203else if (_count == 1) 219Array.Copy(oldArray, newArray, _count);