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)
30
public readonly int Count =>
_count
;
41
if (index == 0 &&
_count
== 1)
57
if (index == 0 &&
_count
== 1)
69
if (
_count
== 0)
87
if (
_count
== _items.Length)
89
Grow(
_count
+ 1);
97
if (
_count
== 0 && index == 0)
124
if (
_count
== _items.Length)
126
Grow(
_count
+ 1);
129
if (index <
_count
)
131
Array.Copy(_items, index, _items, index + 1,
_count
- index);
140
if (
_count
== 1)
146
else if (
_count
== 2)
157
if (index <
_count
)
159
Array.Copy(_items, index + 1, _items, index,
_count
- index);
162
_items[
_count
] = null;
170
Array.Clear(_items, 0,
_count
);
186
return Array.IndexOf(_items, item, 0,
_count
);
189
if (
_count
== 1 && EqualityComparer<IntermediateNode>.Default.Equals(_single, item))
201
Array.Copy(_items, 0, array, arrayIndex,
_count
);
203
else if (
_count
== 1)
219
Array.Copy(oldArray, newArray,
_count
);