mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] find usages: fix expect/actual referencing
KTIJ-24383 GitOrigin-RevId: 51e429f82295387dc60edf5e75d85b1e1e5733f0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
34b32e743f
commit
0de06e551b
+1
-1
@@ -1 +1 @@
|
||||
// IGNORE_K2
|
||||
// FIR_COMPARISON
|
||||
+5
@@ -107,6 +107,11 @@ internal class KotlinK2SearchUsagesSupport : KotlinSearchUsagesSupport {
|
||||
}
|
||||
|
||||
override fun isCallableOverrideUsage(reference: PsiReference, declaration: KtNamedDeclaration): Boolean {
|
||||
if (declaration.isExpectDeclaration() &&
|
||||
reference.unwrappedTargets.any { target -> target is KtDeclaration && expectedDeclarationIfAny(target) == declaration }) {
|
||||
return true
|
||||
}
|
||||
|
||||
fun KtDeclaration.isTopLevelCallable() = when (this) {
|
||||
is KtNamedFunction -> isTopLevel
|
||||
is KtProperty -> isTopLevel
|
||||
|
||||
Reference in New Issue
Block a user