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:
committed by
Space Team
parent
11096325c8
commit
d16f33cf5b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user