FIR2IR: generate both dispatch & extension receiver without 'else if'

This commit is contained in:
Mikhail Glukhikh
2020-02-25 11:27:51 +03:00
parent 4f6fe1d0ca
commit 8c155578f7
21 changed files with 6 additions and 20 deletions
@@ -50,8 +50,7 @@ class JvmIrCodegenFactory(private val phaseConfig: PhaseConfig) : CodegenFactory
val stubGenerator = irProviders.filterIsInstance<DeclarationStubGenerator>().first()
for (descriptor in symbolTable.wrappedTopLevelCallableDescriptors()) {
descriptor as WrappedDeclarationDescriptor<*>
val parentClass = stubGenerator.generateOrGetFacadeClass(descriptor)
val parentClass = stubGenerator.generateOrGetFacadeClass(descriptor as WrappedDeclarationDescriptor<*>)
descriptor.owner.parent = parentClass ?: throw AssertionError("Facade class for ${descriptor.name} not found")
}