13 writes to Capacity
Microsoft.CodeAnalysis (2)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
125_builder.Capacity = value; 183_builder.Capacity = capacity;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
125_builder.Capacity = value; 183_builder.Capacity = capacity;
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
125_builder.Capacity = value; 183_builder.Capacity = capacity;
Microsoft.CodeAnalysis.PooledObjects.Package (2)
ArrayBuilder.cs (2)
125_builder.Capacity = value; 183_builder.Capacity = capacity;
Microsoft.CodeAnalysis.Workspaces (3)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
125_builder.Capacity = value; 183_builder.Capacity = capacity;
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1425list.Capacity = 0;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
125_builder.Capacity = value; 183_builder.Capacity = capacity;
39 references to Capacity
Microsoft.CodeAnalysis (5)
src\Dependencies\PooledObjects\ArrayBuilder.cs (5)
91else if (_builder.Capacity == Count) 120return _builder.Capacity; 181if (_builder.Capacity < capacity) 402else if (_builder.Capacity == Count) 440if (_builder.Capacity < PooledArrayLengthLimitExclusive)
Microsoft.CodeAnalysis.CodeStyle (7)
src\Dependencies\PooledObjects\ArrayBuilder.cs (5)
91else if (_builder.Capacity == Count) 120return _builder.Capacity; 181if (_builder.Capacity < capacity) 402else if (_builder.Capacity == Count) 440if (_builder.Capacity < PooledArrayLengthLimitExclusive)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
48if (builder.Count == builder.Capacity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
173Debug.Assert(currentEdgeIndex == edges.Capacity);
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\PooledObjects\ArrayBuilder.cs (5)
91else if (_builder.Capacity == Count) 120return _builder.Capacity; 181if (_builder.Capacity < capacity) 402else if (_builder.Capacity == Count) 440if (_builder.Capacity < PooledArrayLengthLimitExclusive)
Microsoft.CodeAnalysis.PooledObjects.Package (5)
ArrayBuilder.cs (5)
91else if (_builder.Capacity == Count) 120return _builder.Capacity; 181if (_builder.Capacity < capacity) 402else if (_builder.Capacity == Count) 440if (_builder.Capacity < PooledArrayLengthLimitExclusive)
Microsoft.CodeAnalysis.Workspaces (7)
src\Dependencies\PooledObjects\ArrayBuilder.cs (5)
91else if (_builder.Capacity == Count) 120return _builder.Capacity; 181if (_builder.Capacity < capacity) 402else if (_builder.Capacity == Count) 440if (_builder.Capacity < PooledArrayLengthLimitExclusive)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
48if (builder.Count == builder.Capacity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
173Debug.Assert(currentEdgeIndex == edges.Capacity);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\PooledObjects\ArrayBuilder.cs (5)
91else if (_builder.Capacity == Count) 120return _builder.Capacity; 181if (_builder.Capacity < capacity) 402else if (_builder.Capacity == Count) 440if (_builder.Capacity < PooledArrayLengthLimitExclusive)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
48if (builder.Count == builder.Capacity)
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (3)
202/// equal <see cref="ImmutableArray{T}.Builder.Capacity"/>.</exception> 205if (Capacity != Count) 220/// If <see cref="Capacity"/> equals <see cref="Count"/>, the internal array will be extracted
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeName.cs (1)
68: genericTypeArguments.Count == genericTypeArguments.Capacity ? genericTypeArguments.MoveToImmutable() : genericTypeArguments.ToImmutableArray();