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)
52Contract.ThrowIfTrue(_index + values.Length > _values.Length); 53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 59Contract.ThrowIfTrue(_index + values.Count > _values.Length); 66Contract.ThrowIfTrue(_index + values.Count > _values.Length); 73Contract.ThrowIfTrue(_index + values.Count > _values.Length); 91if (_index > 1) 92Array.Sort(_values, 0, _index, comparer); 107Contract.ThrowIfTrue(_index != _values.Length);