JVM_IR KT-49203 generate stubs for not found classes

This commit is contained in:
Dmitry Petrov
2021-10-14 08:17:07 +03:00
committed by TeamCityServer
parent 4cca78f8d8
commit af18b10da9
7 changed files with 37 additions and 51 deletions
@@ -130,7 +130,6 @@ abstract class KotlinIrLinker(
}
override fun getDeclaration(symbol: IrSymbol): IrDeclaration? {
if (!symbol.isPublicApi) {
if (symbol.hasDescriptor) {
val descriptor = symbol.descriptor
@@ -142,7 +141,9 @@ abstract class KotlinIrLinker(
if (!symbol.isBound) {
try {
findDeserializedDeclarationForSymbol(symbol) ?: tryResolveCustomDeclaration(symbol) ?: return null
findDeserializedDeclarationForSymbol(symbol)
?: tryResolveCustomDeclaration(symbol)
?: return null
} catch (e: IrSymbolTypeMismatchException) {
throw SymbolTypeMismatch(e, deserializersForModules.values, userVisibleIrModulesSupport).raiseIssue(messageLogger)
}