mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[kotlin] Don't use test scope to find actual declarations for K2
* Use moduleWithDependentsScope instead of moduleTestsWithDependentsScope, because the second option searches only for test modules * #FL-28135 GitOrigin-RevId: 2d0511dce34584a50b197c9825f5f24a9882dae7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b0a4091455
commit
8ae080f36d
@@ -21,7 +21,7 @@ class KotlinK2ExpectActualSupport: ExpectActualSupport {
|
||||
val index = function.valueParameters.indexOf(declaration)
|
||||
return actualsForExpected(function, module).mapNotNull { (it as? KtCallableDeclaration)?.valueParameters?.getOrNull(index) }.toSet()
|
||||
}
|
||||
return declaration.findAllActualForExpect( runReadAction { module?.moduleTestsWithDependentsScope ?: declaration.useScope } ).mapNotNull { it.element }.toSet()
|
||||
return declaration.findAllActualForExpect( runReadAction { module?.moduleWithDependentsScope ?: declaration.useScope } ).mapNotNull { it.element }.toSet()
|
||||
}
|
||||
|
||||
@OptIn(KaExperimentalApi::class)
|
||||
|
||||
Reference in New Issue
Block a user