1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
19 references to PooledStringBuilder
Microsoft.CodeAnalysis.CodeStyle (19)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
43using var _ = PooledStringBuilder.GetInstance(out var sb);
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);