1 write to _statementsBuilder
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
131_statementsBuilder = ArrayBuilder<StatementSyntax>.GetInstance();
13 references to _statementsBuilder
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (13)
142public void Dispose() => _statementsBuilder.Free(); 184if (_statementsBuilder.Count == 0) 194_statementsBuilder[0] = _statementsBuilder[0].WithLeadingTrivia(leadingTrivia); 198var last = _statementsBuilder.Count - 1; 200_statementsBuilder[last] = _statementsBuilder[last].WithTrailingTrivia(trailingTrivia); 206if (_statementsBuilder.Count > 1) 208_editor.InsertAfter(_localDeclarationStatement, _statementsBuilder.Skip(1)); 211_editor.ReplaceNode(_localDeclarationStatement, _statementsBuilder[0]); 215_editor.ReplaceNode(_localDeclarationStatement, Block(_statementsBuilder)); 231_statementsBuilder.Add(statement); 244_statementsBuilder.Add(