1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.CodeStyle (1)
J\s\src\Dependencies\PooledObjects\PooledStringBuilder.cs\PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
27 references to PooledStringBuilder
Microsoft.CodeAnalysis.CodeStyle (19)
AbstractFileHeaderHelper.cs (1)
51using var _ = PooledStringBuilder.GetInstance(out var sb);
EmbeddedSyntaxNode.cs (2)
155using var _ = PooledStringBuilder.GetInstance(out var sb); 167using var _ = PooledStringBuilder.GetInstance(out var sb);
EmbeddedSyntaxToken.cs (2)
96using var _ = PooledStringBuilder.GetInstance(out var sb); 103using var _ = PooledStringBuilder.GetInstance(out var sb);
J\s\src\Dependencies\PooledObjects\PooledStringBuilder.cs\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)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledStringBuilder.cs\PooledStringBuilder.cs (3)
11public static PooledDisposer<PooledStringBuilder> GetInstance(out StringBuilder instance) 13var pooledInstance = GetInstance(); 15return new PooledDisposer<PooledStringBuilder>(pooledInstance);
SectionMatcher_TryParseSection.cs (1)
32using var _0 = PooledStringBuilder.GetInstance(out var sb);
VirtualCharSequence.cs (1)
186using var _ = PooledStringBuilder.GetInstance(out var builder);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
CSharpFormattingOptions2.Parsers.cs (1)
48using var _ = PooledStringBuilder.GetInstance(out var builder);
CSharpSyntaxFacts.cs (4)
748var pooled = PooledStringBuilder.GetInstance(); 845var pooled = PooledStringBuilder.GetInstance();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
UseUtf8StringLiteralCodeFixProvider.cs (1)
146using var _ = PooledStringBuilder.GetInstance(out var builder);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
VisualBasicSyntaxFacts.vb (2)
904Dim pooled = PooledStringBuilder.GetInstance() 1005Dim pooled = PooledStringBuilder.GetInstance()