1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
23 references to PooledStringBuilder
Microsoft.CodeAnalysis.Workspaces (23)
Log\HistogramLogAggregator.cs (2)
80var pooledStringBuilder = PooledStringBuilder.GetInstance();
Log\KeyValueLogMessage.cs (1)
91using var _ = PooledStringBuilder.GetInstance(out var builder);
Shared\Utilities\DocumentationComment.cs (1)
213using var _ = PooledStringBuilder.GetInstance(out var builder);
src\Dependencies\PooledObjects\PooledStringBuilder.cs (9)
21private readonly ObjectPool<PooledStringBuilder> _pool; 23private PooledStringBuilder(ObjectPool<PooledStringBuilder> pool) 73private static readonly ObjectPool<PooledStringBuilder> s_poolInstance = CreatePool(); 81public static ObjectPool<PooledStringBuilder> CreatePool(int size = 32) 83ObjectPool<PooledStringBuilder>? pool = null; 84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size); 88public static PooledStringBuilder GetInstance() 90var builder = s_poolInstance.Allocate(); 95public static implicit operator StringBuilder(PooledStringBuilder obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (1)
32using var _0 = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (2)
155using var _ = PooledStringBuilder.GetInstance(out var sb); 167using var _ = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (2)
96using var _ = PooledStringBuilder.GetInstance(out var sb); 103using var _ = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (1)
186using var _ = PooledStringBuilder.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledStringBuilder.cs (3)
11public static PooledDisposer<PooledStringBuilder> GetInstance(out StringBuilder instance) 13var pooledInstance = GetInstance(); 15return new PooledDisposer<PooledStringBuilder>(pooledInstance);
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
121using var _ = PooledStringBuilder.GetInstance(out var builder);