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); 226if (_currentNonDiscardVariables.Count > 0) 229VariableDeclaration(_localDeclarationStatement.Declaration.Type, _currentNonDiscardVariables))