2 instantiations of ArrayBuilderPool
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
PooledObjects\ArrayBuilderPool`1.cs (2)
29=> new(Policy.Create(initialCapacity, maximumObjectSize), poolSize); 32=> new(policy, poolSize);
48 references to ArrayBuilderPool
Microsoft.AspNetCore.Razor.Utilities.Shared (6)
PooledObjects\ArrayBuilderPool`1.cs (3)
18public static readonly ArrayBuilderPool<T> Default = Create(); 25public static ArrayBuilderPool<T> Create( 31public static ArrayBuilderPool<T> Create(PooledObjectPolicy policy, Optional<int> poolSize = default)
PooledObjects\PooledArrayBuilder`1.cs (3)
36private ArrayBuilderPool<T>? _builderPool; 61public PooledArrayBuilder(int? capacity = null, ArrayBuilderPool<T>? builderPool = null) 1601_builderPool ??= ArrayBuilderPool<T>.Default;
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (20)
PooledObjects\PooledArrayBuilderOrderingTests.cs (8)
105var builderPool = TestArrayBuilderPool<int>.Create(); 118var builderPool = TestArrayBuilderPool<int>.Create(); 131var builderPool = TestArrayBuilderPool<int>.Create(); 144var builderPool = TestArrayBuilderPool<int>.Create(); 157var builderPool = TestArrayBuilderPool<ValueHolder<int>>.Create(); 170var builderPool = TestArrayBuilderPool<ValueHolder<int>>.Create(); 183var builderPool = TestArrayBuilderPool<ValueHolder<int>>.Create(); 196var builderPool = TestArrayBuilderPool<ValueHolder<int>>.Create();
PooledObjects\PooledArrayBuilderTests.cs (8)
96var builderPool = TestArrayBuilderPool<int>.Create(); 422var builderPool = TestArrayBuilderPool<int>.Create(); 456var builderPool = TestArrayBuilderPool<int>.Create(); 737var builderPool = TestArrayBuilderPool<int>.Create(); 984var builderPool = TestArrayBuilderPool<int>.Create(); 1162var builderPool = TestArrayBuilderPool<int>.Create(); 1398var builderPool = TestArrayBuilderPool<int>.Create(); 1813var builderPool = TestArrayBuilderPool<int>.Create();
PooledObjects\TestArrayBuilderPool`1.cs (4)
11public static ArrayBuilderPool<T> Create( 12ArrayBuilderPool<T>.PooledObjectPolicy? policy = null, int size = 1) 13=> ArrayBuilderPool<T>.Create(policy ?? NoReturnPolicy.Instance, size); 15public sealed class NoReturnPolicy : ArrayBuilderPool<T>.PooledObjectPolicy
Microsoft.CodeAnalysis.Razor.Compiler (13)
CSharp\GenericTypeNameRewriter.cs (1)
36using var _ = ArrayBuilderPool<ComponentTypeArgumentIntermediateNode>.GetPooledObject(out var builder);
Language\CodeGeneration\CodeRenderingContext.cs (6)
53_diagnostics = ArrayBuilderPool<RazorDiagnostic>.Default.Get(); 60_linePragmas = ArrayBuilderPool<LinePragma>.Default.Get(); 61_sourceMappings = ArrayBuilderPool<SourceMapping>.Default.Get(); 71ArrayBuilderPool<RazorDiagnostic>.Default.Return(_diagnostics); 72ArrayBuilderPool<LinePragma>.Default.Return(_linePragmas); 73ArrayBuilderPool<SourceMapping>.Default.Return(_sourceMappings);
Language\Legacy\ErrorSink.cs (3)
23ArrayBuilderPool<RazorDiagnostic>.Default.Return(errors); 37ArrayBuilderPool<RazorDiagnostic>.Default.Return(errors); 49var errors = _errors ??= ArrayBuilderPool<RazorDiagnostic>.Default.Get();
Language\Legacy\TagHelperSpanVisitor.cs (1)
23using var _ = ArrayBuilderPool<TagHelperSpanInternal>.GetPooledObject(out var builder);
Language\TagHelperCollection.Builder.cs (2)
24private static readonly ArrayBuilderPool<TagHelperDescriptor> s_arrayBuilderPool = 25ArrayBuilderPool<TagHelperDescriptor>.Create(InitialCapacity, MaximumObjectSize);
Microsoft.CodeAnalysis.Razor.Workspaces (9)
CodeActions\CodeActionsService.cs (1)
265using var _ = ArrayBuilderPool<string>.GetPooledObject(out var availableCodeActionNames);
FoldingRanges\FoldingRangeService.cs (1)
29using var _ = ArrayBuilderPool<FoldingRange>.GetPooledObject(out var mappedRanges);
Formatting\FormattingContext.cs (1)
161using var _ = ArrayBuilderPool<FormattingSpan>.GetPooledObject(out var formattingSpans);
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (1)
89using var _2 = ArrayBuilderPool<LineInfo>.GetPooledObject(out var lineInfoBuilder);
SemanticTokens\AbstractRazorSemanticTokensInfoService.cs (1)
223using var _ = ArrayBuilderPool<LinePositionSpan>.GetPooledObject(out var csharpRanges);
SemanticTokens\AbstractRazorSemanticTokensLegendService.cs (3)
26using var _ = ArrayBuilderPool<string>.GetPooledObject(out var builder); 40using var _ = ArrayBuilderPool<string>.GetPooledObject(out var builder); 54using var _ = ArrayBuilderPool<string>.GetPooledObject(out var builder);
Utilities\AsyncBatchingWorkQueue`2.cs (1)
155using var _ = ArrayBuilderPool<TItem>.GetPooledObject(out var items);