1 write to _statementsBuilder
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
137
_statementsBuilder
= ArrayBuilder<StatementSyntax>.GetInstance();
13 references to _statementsBuilder
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (13)
148
public void Dispose() =>
_statementsBuilder
.Free();
190
if (
_statementsBuilder
.Count == 0)
200
_statementsBuilder
[0] =
_statementsBuilder
[0].WithLeadingTrivia(leadingTrivia);
204
var last =
_statementsBuilder
.Count - 1;
206
_statementsBuilder
[last] =
_statementsBuilder
[last].WithTrailingTrivia(trailingTrivia);
212
if (
_statementsBuilder
.Count > 1)
214
_editor.InsertAfter(_localDeclarationStatement,
_statementsBuilder
.Skip(1));
217
_editor.ReplaceNode(_localDeclarationStatement,
_statementsBuilder
[0]);
221
_editor.ReplaceNode(_localDeclarationStatement, Block(
_statementsBuilder
));
237
_statementsBuilder
.Add(statement);
250
_statementsBuilder
.Add(