On searching parameter usages asking if user wants to search usages of parameters of overriders too (as in Java)

This commit is contained in:
Valentin Kipyatkov
2015-07-30 23:01:04 +03:00
parent 3d71610d96
commit 1bb8ca6ed5
8 changed files with 170 additions and 62 deletions
@@ -61,13 +61,15 @@ public class KotlinReferencesSearcher : QueryExecutorBase<PsiReference, Referenc
}
}
val effectiveSearchScope = runReadAction { queryParameters.effectiveSearchScope }
words.forEach { word ->
queryParameters.getOptimizer().searchWord(word, queryParameters.getEffectiveSearchScope(),
queryParameters.getOptimizer().searchWord(word, effectiveSearchScope,
UsagesSearchLocation.EVERYWHERE.searchContext, true, unwrappedElement,
resultProcessor)
}
if (!(unwrappedElement is JetElement && isOnlyKotlinSearch(queryParameters.getEffectiveSearchScope()))) {
if (!(unwrappedElement is JetElement && isOnlyKotlinSearch(effectiveSearchScope))) {
searchLightElements(queryParameters, element)
}
}