[IR] add new testdata after rebase
This commit is contained in:
committed by
teamcityserver
parent
3b1a6389ab
commit
a5b224fda1
@@ -0,0 +1,77 @@
|
||||
interface ComponentContainer {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface PlatformSpecificExtension<S : PlatformSpecificExtension<S>> {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface ComponentDescriptor {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
abstract class PlatformExtensionsClashResolver<E : PlatformSpecificExtension<E>> {
|
||||
constructor(applicableTo: Class<E>) /* primary */ {
|
||||
TODO("IrDelegatingConstructorCall")
|
||||
/* InstanceInitializerCall */
|
||||
|
||||
}
|
||||
|
||||
val applicableTo: Class<E>
|
||||
field = applicableTo
|
||||
get
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
class ClashResolutionDescriptor<E : PlatformSpecificExtension<E>> {
|
||||
constructor(container: ComponentContainer, resolver: PlatformExtensionsClashResolver<E>, clashedComponents: List<ComponentDescriptor>) /* primary */ {
|
||||
TODO("IrDelegatingConstructorCall")
|
||||
/* InstanceInitializerCall */
|
||||
|
||||
}
|
||||
|
||||
private val resolver: PlatformExtensionsClashResolver<E>
|
||||
field = resolver
|
||||
private get
|
||||
|
||||
private val clashedComponents: List<ComponentDescriptor>
|
||||
field = clashedComponents
|
||||
private get
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private val registrationMap: HashMap<Type, Any>
|
||||
field = hashMapOf<Type, Any>()
|
||||
private get
|
||||
|
||||
fun resolveClashesIfAny(container: ComponentContainer, clashResolvers: List<PlatformExtensionsClashResolver<*>>) {
|
||||
{ //BLOCK
|
||||
val tmp0_iterator: Iterator<PlatformExtensionsClashResolver<*>> = clashResolvers.iterator()
|
||||
while (tmp0_iterator.hasNext()) { //BLOCK
|
||||
val resolver: PlatformExtensionsClashResolver<*> = tmp0_iterator.next()
|
||||
{ //BLOCK
|
||||
val clashedComponents: Collection<ComponentDescriptor> = { //BLOCK
|
||||
val tmp1_elvis_lhs: Collection<ComponentDescriptor>? = <get-registrationMap>().get(key = resolver.<get-applicableTo>()) as? Collection<ComponentDescriptor>
|
||||
when {
|
||||
EQEQ(arg0 = tmp1_elvis_lhs, arg1 = null) -> continue
|
||||
true -> tmp1_elvis_lhs
|
||||
}
|
||||
}
|
||||
val substituteDescriptor: ClashResolutionDescriptor<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out Any?>>>>>> = TODO("IrConstructorCall")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user