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