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)
148public void Dispose() => _statementsBuilder.Free(); 190if (_statementsBuilder.Count == 0) 200_statementsBuilder[0] = _statementsBuilder[0].WithLeadingTrivia(leadingTrivia); 204var last = _statementsBuilder.Count - 1; 206_statementsBuilder[last] = _statementsBuilder[last].WithTrailingTrivia(trailingTrivia); 212if (_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(