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)
33
public int Count =>
_count
;
39
Debug.Assert((uint)index < (uint)
_count
);
48
Debug.Assert(
_count
> 0);
57
Debug.Assert(
_count
> 0);
58
return _array[(_head +
_count
- 1) % _array.Length];
64
EnsureCapacity(
_count
+ 1);
65
_array[(_head +
_count
) % _array.Length] = item;
71
Debug.Assert(
_count
> 0);
82
Debug.Assert(
_count
> 0);
84
var index = (_head +
_count
) % _array.Length;
101
if (
_count
> 0)
103
if (_head +
_count
<= _array.Length)
105
Array.Copy(_array, _head, newArray, 0,
_count
);
111
Array.Copy(_array, 0, newArray, firstPart,
_count
- firstPart);
147
Debug.Assert(instance.
_count
== 0);