AA: refactor service registrations

such that AA standalone mode doesn't need to unregister services that
were already registered by pre-analysis handlers
This commit is contained in:
Jinseong Jeon
2022-02-03 20:32:06 -08:00
committed by Ilya Kirillov
parent 26e923e3ae
commit a986aff429
18 changed files with 211 additions and 112 deletions
@@ -47,3 +47,7 @@ abstract class TestConfiguration {
fun <T, R> ((TestServices, T) -> R).bind(value: T): Constructor<R> {
return { this.invoke(it, value) }
}
fun <T1, T2, R> ((TestServices, T1, T2) -> R).bind(value1: T1, value2: T2): Constructor<R> {
return { this.invoke(it, value1, value2) }
}
@@ -7,4 +7,6 @@ package org.jetbrains.kotlin.test.services
abstract class PreAnalysisHandler(protected val testServices: TestServices) {
abstract fun preprocessModuleStructure(moduleStructure: TestModuleStructure)
}
open fun prepareSealedClassInheritors(moduleStructure: TestModuleStructure) {}
}