JVM_IR KT-49203 generate stubs for not found classes
This commit is contained in:
committed by
TeamCityServer
parent
4cca78f8d8
commit
af18b10da9
+3
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user