JVM IR: do not collect all dependency modules in IDE

Collecting all modules takes a lot of time in Evaluate Expression in
IDE, and it's useless because we then invoke JvmIrLinker to load module
headers, but that linker is discarded in the IDE (see `val irProviders`
below).

 #IDEA-329915
This commit is contained in:
Alexander Udalov
2023-09-04 15:55:53 +02:00
committed by Space Team
parent 11096325c8
commit d16f33cf5b
2 changed files with 6 additions and 20 deletions
@@ -5,7 +5,6 @@
package org.jetbrains.kotlin.analyzer
import org.jetbrains.kotlin.descriptors.ModuleCapability
import org.jetbrains.kotlin.descriptors.ModuleDescriptor
val ModuleDescriptor.moduleInfo: ModuleInfo?
@@ -24,8 +23,3 @@ internal fun collectAllExpectedByModules(entryModule: ModuleInfo): Set<ModuleInf
return expectedByModules
}
val JDK_CAPABILITY = ModuleCapability<Boolean>("IsJdk")
val ModuleDescriptor.hasJdkCapability: Boolean
get() = getCapability(JDK_CAPABILITY) == true