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