Check declaration modifier for actual method to avoid freeze
Checking modifier aims to get rid of unnecessary resolve for methods in non MPP (the most) cases Relates to #KTIJ-1200
This commit is contained in:
committed by
Space
parent
3e17317f31
commit
872effc21e
@@ -7,7 +7,8 @@ package org.jetbrains.kotlin.idea
|
||||
|
||||
import org.jetbrains.kotlin.idea.util.hasMatchingExpected
|
||||
import org.jetbrains.kotlin.psi.KtDeclaration
|
||||
import org.jetbrains.kotlin.psi.psiUtil.hasActualModifier
|
||||
|
||||
class KotlinIconProvider : KotlinIconProviderBase() {
|
||||
override fun KtDeclaration.isMatchingExpected() = hasMatchingExpected()
|
||||
override fun KtDeclaration.isMatchingExpected() = hasActualModifier() && hasMatchingExpected()
|
||||
}
|
||||
Reference in New Issue
Block a user