1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis (1)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
123 references to PooledStringBuilder
Microsoft.CodeAnalysis (80)
CaseInsensitiveComparison.cs (2)
378var pooledStrbuilder = PooledStringBuilder.GetInstance();
CodeGen\PermissionSetAttribute.cs (2)
120var pooledStrBuilder = PooledStringBuilder.GetInstance();
Collections\Rope.cs (4)
129var psb = PooledStringBuilder.GetInstance(); 158var psb = PooledStringBuilder.GetInstance();
CommandLine\CommandLineParser.cs (6)
392var pooledPart = PooledStringBuilder.GetInstance(); 582var stringBuilder = PooledStringBuilder.GetInstance(); 922var pool = PooledStringBuilder.GetInstance();
CommandLine\CommonCompiler.cs (2)
864PooledStringBuilder sb = PooledStringBuilder.GetInstance();
Compilation\DeterministicKeyBuilder.cs (5)
63var builder = PooledStringBuilder.GetInstance(); 113private (JsonWriter, PooledStringBuilder) CreateWriter() 115var builder = PooledStringBuilder.GetInstance();
DocumentationCommentId.cs (4)
57var builder = PooledStringBuilder.GetInstance(); 89var builder = PooledStringBuilder.GetInstance();
Emit\AnonymousTypeKey.cs (2)
91var pooledBuilder = PooledStringBuilder.GetInstance();
InternalUtilities\JsonWriter.cs (2)
262PooledStringBuilder? pooledBuilder = null; 281pooledBuilder = PooledStringBuilder.GetInstance();
MetadataReader\MetadataHelpers.cs (4)
144var pooledStrBuilder = PooledStringBuilder.GetInstance(); 1057var pooledStrBuilder = PooledStringBuilder.GetInstance();
MetadataReference\AssemblyIdentity.DisplayName.cs (6)
70PooledStringBuilder sb = PooledStringBuilder.GetInstance(); 78PooledStringBuilder pooledBuilder = PooledStringBuilder.GetInstance(); 807var sb = PooledStringBuilder.GetInstance();
NativePdbWriter\PdbWriter.cs (2)
371var result = PooledStringBuilder.GetInstance();
PEWriter\MetadataWriter.cs (2)
3699var pooled = PooledStringBuilder.GetInstance();
PEWriter\TypeNameSerializer.cs (6)
27var pooled = PooledStringBuilder.GetInstance(); 209var pooled = PooledStringBuilder.GetInstance(); 288var result = PooledStringBuilder.GetInstance();
SourceGeneration\Nodes\NodeStateTable.cs (4)
202var pooled = PooledStringBuilder.GetInstance(); 696var sb = PooledStringBuilder.GetInstance();
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (4)
216var pooled = PooledStringBuilder.GetInstance(); 246var pooledNameBuilder = 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)
SymbolDisplay\FormattedSymbolList.cs (2)
31PooledStringBuilder pooled = PooledStringBuilder.GetInstance();
SymbolDisplay\SymbolDisplayExtensions.cs (4)
40var pool = PooledStringBuilder.GetInstance(); 73var pool = PooledStringBuilder.GetInstance();
Symbols\Attributes\AttributeUsageInfo.cs (2)
186var builder = PooledStringBuilder.GetInstance();
Syntax\GreenNode.cs (4)
612var sb = PooledStringBuilder.GetInstance(); 620var sb = PooledStringBuilder.GetInstance();
Text\SourceText.cs (2)
722var builder = PooledStringBuilder.GetInstance();
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_InterpolatedString.cs (2)
193var builder = PooledStringBuilder.GetInstance(); 373var formatString = PooledStringBuilder.GetInstance();
Binder\DecisionDagBuilder.cs (2)
1675var resultBuilder = PooledStringBuilder.GetInstance(); 1713var instance = PooledStringBuilder.GetInstance();
BoundTree\BoundDecisionDag.cs (1)
217var resultBuilder = PooledStringBuilder.GetInstance();
BoundTree\BoundDecisionDagNode.cs (1)
74var pooledBuilder = PooledStringBuilder.GetInstance();
BoundTree\Formatting.cs (2)
81var pooledBuilder = PooledStringBuilder.GetInstance(); 198var pooledBuilder = PooledStringBuilder.GetInstance();
BoundTree\UnboundLambda.cs (1)
1263var builder = PooledStringBuilder.GetInstance();
Compiler\DocumentationCommentCompiler.cs (1)
437var substitutedTextBuilder = PooledStringBuilder.GetInstance();
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
178var result = PooledStringBuilder.GetInstance();
FlowAnalysis\NullableWalker.cs (2)
12632var pooledBuilder = PooledStringBuilder.GetInstance(); 12653var builder = PooledStringBuilder.GetInstance();
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
78var poolElement = PooledStringBuilder.GetInstance();
Parser\LanguageParser_InterpolatedString.cs (1)
96var content = PooledStringBuilder.GetInstance();
Parser\Lexer_RawStringLiteral.cs (2)
188var indentationWhitespace = PooledStringBuilder.GetInstance(); 191var currentLineWhitespace = PooledStringBuilder.GetInstance();
SymbolDisplay\ObjectDisplay.cs (5)
225var pooledBuilder = PooledStringBuilder.GetInstance(); 321var pooledBuilder = PooledStringBuilder.GetInstance(); 427var pooledBuilder = PooledStringBuilder.GetInstance(); 450var pooledBuilder = PooledStringBuilder.GetInstance(); 473var pooledBuilder = PooledStringBuilder.GetInstance();
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (1)
41var key = PooledStringBuilder.GetInstance();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
188var builder = PooledStringBuilder.GetInstance();
Symbols\Attributes\AttributeData.cs (1)
146var pooledStrbuilder = PooledStringBuilder.GetInstance();
Symbols\Symbol.cs (1)
979var pool = PooledStringBuilder.GetInstance();
Symbols\Synthesized\GeneratedNames.cs (7)
139var result = PooledStringBuilder.GetInstance(); 216var result = PooledStringBuilder.GetInstance(); 378var pooledBuilder = PooledStringBuilder.GetInstance(); 494var result = PooledStringBuilder.GetInstance(); 516var result = PooledStringBuilder.GetInstance(); 547var pooledBuilder = PooledStringBuilder.GetInstance(); 572var pooledBuilder = PooledStringBuilder.GetInstance();
Symbols\Synthesized\RefKindVector.cs (1)
86var pooledBuilder = PooledStringBuilder.GetInstance();
Syntax\GenericNameSyntax.cs (1)
25var pb = PooledStringBuilder.GetInstance();
Utilities\ValueSetFactory.NintValueSet.cs (1)
132var psb = PooledStringBuilder.GetInstance();
Utilities\ValueSetFactory.NuintValueSet.cs (1)
115var psb = PooledStringBuilder.GetInstance();
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
CustomTypeInfo.cs (1)
163var pooledBuilder = PooledStringBuilder.GetInstance();
InstructionDecoder.cs (1)
67var pooled = PooledStringBuilder.GetInstance();
Microsoft.CodeAnalysis.Scripting (4)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (2)
69var pooled = PooledStringBuilder.GetInstance(); 114var pooled = PooledStringBuilder.GetInstance();
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (2)
104var pooled = PooledStringBuilder.GetInstance(); 234var pooledBuilder = PooledStringBuilder.GetInstance();