1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
32 references to PooledStringBuilder
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (11)
src\Compilers\CSharp\Portable\SymbolDisplay\ObjectDisplay.cs (5)
225var pooledBuilder = PooledStringBuilder.GetInstance(); 321var pooledBuilder = PooledStringBuilder.GetInstance(); 427var pooledBuilder = PooledStringBuilder.GetInstance(); 450var pooledBuilder = PooledStringBuilder.GetInstance(); 473var pooledBuilder = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\CSharp\Source\ResultProvider\CSharpFormatter.cs (1)
75var pooledBuilder = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\CSharp\Source\ResultProvider\CSharpFormatter.Values.cs (5)
59var pooled = PooledStringBuilder.GetInstance(); 115var pooled = PooledStringBuilder.GetInstance(); 162var pooled = PooledStringBuilder.GetInstance(); 187var pooled = PooledStringBuilder.GetInstance(); 203var pooled = PooledStringBuilder.GetInstance();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (21)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (2)
378var pooledStrbuilder = PooledStringBuilder.GetInstance();
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\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (2)
163var pooledBuilder = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (2)
113var pooledBuilder = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.TypeNames.cs (4)
40var pooled = PooledStringBuilder.GetInstance(); 286var pooled = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ValueHelpers.cs (2)
57var pooled = PooledStringBuilder.GetInstance();