4 writes to _count
Microsoft.CodeAnalysis.Workspaces (4)
Utilities\Deque.cs (4)
66_count++; 76_count--; 83_count--; 140_count = 0;
15 references to _count
Microsoft.CodeAnalysis.Workspaces (15)
Utilities\Deque.cs (15)
33public int Count => _count; 39Debug.Assert((uint)index < (uint)_count); 48Debug.Assert(_count > 0); 57Debug.Assert(_count > 0); 58return _array[(_head + _count - 1) % _array.Length]; 64EnsureCapacity(_count + 1); 65_array[(_head + _count) % _array.Length] = item; 71Debug.Assert(_count > 0); 82Debug.Assert(_count > 0); 84var index = (_head + _count) % _array.Length; 101if (_count > 0) 103if (_head + _count <= _array.Length) 105Array.Copy(_array, _head, newArray, 0, _count); 111Array.Copy(_array, 0, newArray, firstPart, _count - firstPart); 147Debug.Assert(instance._count == 0);