[lc] decompiled: fix navigation to primary constructor
^KT-53934 ^KTIJ-22755
This commit is contained in:
+6
-1
@@ -29,7 +29,12 @@ class KotlinDeclarationInCompiledFileSearcherFE10Impl : KotlinDeclarationInCompi
|
||||
findByStub(file, relativeClassName, member, memberName)?.let { return it }
|
||||
}
|
||||
|
||||
return file.getDeclaration(BySignatureIndexer, key)
|
||||
val declaration = file.getDeclaration(BySignatureIndexer, key) ?: return null
|
||||
return if (member is PsiMethod && member.isConstructor && declaration is KtClassOrObject) {
|
||||
declaration.primaryConstructor ?: declaration
|
||||
} else {
|
||||
declaration
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user