10 writes to _count
Microsoft.Build.Framework (10)
Collections\RefArrayBuilder.cs (10)
80
_count
= value;
126
_count
= count + 1;
145
_count
= count + 1;
161
_count
= count + 1;
184
_count
= count + source.Length;
208
_count
= count + 1;
225
_count
+= 1;
250
_count
= count + source.Length;
274
_count
= count + source.Length;
355
_count
= count - 1;
22 references to _count
Microsoft.Build.Framework (22)
Collections\RefArrayBuilder.cs (22)
67
public readonly bool IsEmpty =>
_count
== 0;
74
readonly get =>
_count
;
93
Debug.Assert(index <
_count
, "Index must be less than Count.");
111
=> _scope.AsSpan()[..
_count
];
120
int count =
_count
;
138
Debug.Assert(
_count
== _scope.Length, "AddWithResize should only be called when the span is full.");
140
int count =
_count
;
155
int count =
_count
;
172
int count =
_count
;
196
Debug.Assert(index <=
_count
, "Insert index must not exceed Count.");
198
int count =
_count
;
220
Debug.Assert(
_count
== _scope.Length, "InsertWithResize should only be called when the span is full.");
238
Debug.Assert(index <=
_count
, "Insert index must not exceed Count.");
240
int count =
_count
;
262
int count =
_count
;
280
Debug.Assert(startIndex <=
_count
, "Start index must not exceed Count.");
322
span[startIndex..
_count
].CopyTo(destination.Slice(startIndex + size));
337
Debug.Assert(index <
_count
, "Remove index must be less than Count.");
339
int count =
_count
;
810
return _scope[
_count
- 1];
821
for (int i =
_count
- 1; i >= 0; i--)
839
for (int i =
_count
- 1; i >= 0; i--)