@@ -27,7 +27,7 @@ public class FindAllImplementationsCommand : CommandBase, IDisposable
2727 private readonly SearchResultPresenterInstanceManager _presenterService ;
2828 private readonly IVBE _vbe ;
2929
30- private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
30+ private new static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
3131
3232 public FindAllImplementationsCommand ( INavigateCommand navigateCommand , IMessageBox messageBox ,
3333 RubberduckParserState state , IVBE vbe , ISearchResultsWindowViewModel viewModel ,
@@ -166,8 +166,7 @@ private SearchResultsViewModel CreateViewModel(Declaration target)
166166
167167 private Declaration FindTarget ( object parameter )
168168 {
169- var declaration = parameter as Declaration ;
170- if ( declaration != null )
169+ if ( parameter is Declaration declaration )
171170 {
172171 return declaration ;
173172 }
@@ -178,10 +177,9 @@ private Declaration FindTarget(object parameter)
178177 private IEnumerable < Declaration > FindImplementations ( Declaration target )
179178 {
180179 var items = _state . AllDeclarations ;
181- string name ;
182180 var implementations = ( target . DeclarationType == DeclarationType . ClassModule
183- ? FindAllImplementationsOfClass ( target , items , out name )
184- : FindAllImplementationsOfMember ( target , items , out name ) ) ?? new List < Declaration > ( ) ;
181+ ? FindAllImplementationsOfClass ( target , items , out _ )
182+ : FindAllImplementationsOfMember ( target , items , out _ ) ) ?? new List < Declaration > ( ) ;
185183
186184 return implementations ;
187185 }
0 commit comments