File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
RetailCoder.VBE/Refactorings/RemoveParameters Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,11 @@ private IEnumerable<Declaration> GetParameters(Declaration method)
52
52
. Where ( d => d . DeclarationType == DeclarationType . Parameter
53
53
&& d . ComponentName == method . ComponentName
54
54
&& d . Project . Equals ( method . Project )
55
- && method . Context . Start . Line <= d . Selection . StartLine
56
- && method . Context . Stop . Line >= d . Selection . EndLine
57
- && ! ( method . Context . Start . Column > d . Selection . StartColumn && method . Context . Start . Line == d . Selection . StartLine )
58
- && ! ( method . Context . Stop . Column < d . Selection . EndColumn && method . Context . Stop . Line == d . Selection . EndLine ) )
55
+ && method . Context . GetSelection ( ) . Contains (
56
+ new Selection ( d . Selection . StartLine ,
57
+ d . Selection . StartColumn ,
58
+ d . Selection . EndLine ,
59
+ d . Selection . EndColumn ) ) )
59
60
. OrderBy ( item => item . Selection . StartLine )
60
61
. ThenBy ( item => item . Selection . StartColumn ) ;
61
62
}
You can’t perform that action at this time.
0 commit comments