Add LightClassUtil.getLightClassMethodsByName to avoid resolving all lightClassMethods and filtration later on
This commit is contained in:
committed by
Space
parent
167bfcf6ea
commit
6331a135c8
@@ -192,7 +192,7 @@ class KotlinShortNamesCache(private val project: Project) : PsiShortNamesCache()
|
||||
filter,
|
||||
KtNamedFunction::class.java
|
||||
) { ktNamedFunction ->
|
||||
val methods = LightClassUtil.getLightClassMethods(ktNamedFunction).filter { it.name == name }
|
||||
val methods = LightClassUtil.getLightClassMethodsByName(ktNamedFunction, name)
|
||||
return@processElements methods.all { method ->
|
||||
processor.process(method)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user