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:
committed by
Ilya Kirillov
parent
26e923e3ae
commit
a986aff429
@@ -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) }
|
||||
}
|
||||
|
||||
+3
-1
@@ -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) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user