Extract control flow analysis to separate module
Extract a service interface out of ControlFlowInformationProviderImpl and register its implementation in two "leaf" modules: 'cli', 'idea-core'. This improves parallel build, since a lot of modules depend on 'frontend' but only these two modules reference the implementation and thus depend on the full CFA implementation now.
This commit is contained in:
committed by
Alexander Udalov
parent
c744515832
commit
2e2caae05c
@@ -17,6 +17,7 @@
|
||||
package org.jetbrains.kotlin.tests.di
|
||||
|
||||
import com.intellij.openapi.project.Project
|
||||
import org.jetbrains.kotlin.cfg.ControlFlowInformationProviderImpl
|
||||
import org.jetbrains.kotlin.config.LanguageVersionSettingsImpl
|
||||
import org.jetbrains.kotlin.container.StorageComponentContainer
|
||||
import org.jetbrains.kotlin.container.getValue
|
||||
@@ -43,6 +44,7 @@ fun createContainerForTests(project: Project, module: ModuleDescriptor): Contain
|
||||
)
|
||||
useImpl<AnnotationResolverImpl>()
|
||||
useInstance(ModuleStructureOracle.SingleModule)
|
||||
useInstance(ControlFlowInformationProviderImpl.Factory)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user