Navigation to implementation / overriding method: do not show method of inline class twice

#KT-28661 Fixed
#KT-26924 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-01-31 19:29:37 +03:00
committed by Nikolay Krasko
parent aa9ce7b2e9
commit 80e1fc2ace
7 changed files with 40 additions and 4 deletions
@@ -174,7 +174,7 @@ fun PsiMethod.forEachOverridingMethod(
val ktMember = this.unwrapped as? KtNamedDeclaration ?: return true
val ktClass = runReadAction { ktMember.containingClassOrObject as? KtClass } ?: return true
return forEachKotlinOverride(ktClass, listOf(ktMember), scope) { _, overrider ->
val lightMethods = runReadAction { overrider.toPossiblyFakeLightMethods() }
val lightMethods = runReadAction { overrider.toPossiblyFakeLightMethods().distinctBy { it.unwrapped } }
lightMethods.all { processor(it) }
}
}