We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8968c6 commit 081dd4aCopy full SHA for 081dd4a
RetailCoder.VBE/Refactorings/ExtractMethod/ExtractMethodModel.cs
@@ -33,7 +33,7 @@ public ExtractMethodModel(IActiveCodePaneEditor editor, IEnumerable<Declaration>
33
.ToList();
34
35
var usedInSelection = new HashSet<Declaration>(inScopeDeclarations.Where(item =>
36
- selection.Selection.Contains(item.Selection) &&
+ selection.Selection.Contains(item.Selection) ||
37
item.References.Any(reference => inSelection.Contains(reference))));
38
39
var usedBeforeSelection = new HashSet<Declaration>(inScopeDeclarations.Where(item =>
0 commit comments