2 writes to _currentNonDiscardVariables
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
163
_currentNonDiscardVariables
= _currentNonDiscardVariables.Add(variable);
232
_currentNonDiscardVariables
= [];
3 references to _currentNonDiscardVariables
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (3)
163
_currentNonDiscardVariables =
_currentNonDiscardVariables
.Add(variable);
226
if (
_currentNonDiscardVariables
.Count > 0)
229
VariableDeclaration(_localDeclarationStatement.Declaration.Type,
_currentNonDiscardVariables
))