16 references to StringBuilderPool
Microsoft.CodeAnalysis.Workspaces (16)
CodeActions\CodeAction.cs (2)
641
var equivalenceKey =
StringBuilderPool
.Allocate();
653
StringBuilderPool
.ReturnAndFree(equivalenceKey);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (2)
152
var sb =
StringBuilderPool
.Allocate();
159
return
StringBuilderPool
.ReturnAndFree(sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (2)
33
var builder =
StringBuilderPool
.Allocate();
40
return
StringBuilderPool
.ReturnAndFree(builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (2)
53
var builder =
StringBuilderPool
.Allocate();
57
return
StringBuilderPool
.ReturnAndFree(builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
151
var builder =
StringBuilderPool
.Allocate();
168
return
StringBuilderPool
.ReturnAndFree(builder);
180
var builder =
StringBuilderPool
.Allocate();
211
return
StringBuilderPool
.ReturnAndFree(builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (4)
798
var sb =
StringBuilderPool
.Allocate();
808
return
StringBuilderPool
.ReturnAndFree(sb);
815
return
StringBuilderPool
.ReturnAndFree(sb);
820
return
StringBuilderPool
.ReturnAndFree(sb);