Add ability to provide specific AbsentDescriptorHandler

#EA-457188

Merge-request: KT-MR-8900
Merged-by: Vladimir Dolzhenko <Vladimir.Dolzhenko@jetbrains.com>
This commit is contained in:
Vladimir Dolzhenko
2023-02-22 12:44:46 +00:00
committed by Space Team
parent 41278d0797
commit 3e99807436
16 changed files with 416 additions and 36 deletions
@@ -33,6 +33,7 @@ import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatformAnalyzerServices
import org.jetbrains.kotlin.types.expressions.ExpressionTypingServices
import org.jetbrains.kotlin.types.expressions.FakeCallResolver
import org.jetbrains.kotlin.incremental.components.InlineConstTracker
import org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler
fun createContainerForTests(project: Project, module: ModuleDescriptor): ContainerForTests {
return ContainerForTests(createContainer("Tests", JvmPlatformAnalyzerServices) {
@@ -41,7 +42,9 @@ fun createContainerForTests(project: Project, module: ModuleDescriptor): Contain
JvmPlatforms.defaultJvmPlatform,
JvmPlatformAnalyzerServices,
BindingTraceContext(),
LanguageVersionSettingsImpl.DEFAULT
LanguageVersionSettingsImpl.DEFAULT,
optimizingOptions = null,
absentDescriptorHandlerClass = BasicAbsentDescriptorHandler::class.java
)
useImpl<AnnotationResolverImpl>()
useInstance(ModuleStructureOracle.SingleModule)