4 writes to _count
Microsoft.CodeAnalysis (4)
Syntax\SyntaxTriviaListBuilder.cs (4)
45
_count
= 0;
79
_nodes[
_count
++] = item;
102
_count
+= length;
118
_count
+= length;
14 references to _count
Microsoft.CodeAnalysis (14)
Syntax\SyntaxTriviaListBuilder.cs (14)
40
get { return
_count
; }
52
if (index < 0 || index >=
_count
)
74
if (
_count
>= _nodes.Length)
76
this.Grow(
_count
== 0 ? 8 : _nodes.Length * 2);
96
if (
_count
+ length > _nodes.Length)
98
this.Grow(
_count
+ length);
101
items.Slice(offset, length).CopyTo(_nodes.AsSpan().Slice(
_count
, length));
112
if (
_count
+ length > _nodes.Length)
114
this.Grow(
_count
+ length);
117
list.CopyTo(offset, _nodes,
_count
, length);
135
if (
_count
> 0)
137
switch (
_count
)
155
var tmp = new ArrayElement<GreenNode>[
_count
];
156
for (int i = 0; i <
_count
; i++)