3 writes to _index
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (3)
46
=> _values[
_index
++] = value;
54
_index
+= values.Length;
110
_index
= 0;
8 references to _index
Microsoft.CodeAnalysis.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (8)
52
Contract.ThrowIfTrue(
_index
+ values.Length > _values.Length);
53
Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values,
_index
, values.Length);
59
Contract.ThrowIfTrue(
_index
+ values.Count > _values.Length);
66
Contract.ThrowIfTrue(
_index
+ values.Count > _values.Length);
73
Contract.ThrowIfTrue(
_index
+ values.Count > _values.Length);
91
if (
_index
> 1)
92
Array.Sort(_values, 0,
_index
, comparer);
107
Contract.ThrowIfTrue(
_index
!= _values.Length);