Extract container of adapter function as compiler generated

This commit is contained in:
Tamas Vajk
2022-04-04 16:42:43 +02:00
committed by Ian Lynagh
parent 7f94495601
commit cdc7ed0e14
5 changed files with 17 additions and 1 deletions

View File

@@ -943,6 +943,10 @@ open class KotlinFileExtractor(
extractLocalTypeDeclStmt(classId, s, callable, parent, idx)
val ids = getLocallyVisibleFunctionLabels(s)
tw.writeKtLocalFunction(ids.function)
if (s.origin == IrDeclarationOrigin.ADAPTER_FOR_CALLABLE_REFERENCE) {
tw.writeCompiler_generated(classId, 1)
}
} else {
logger.errorElement("Expected to find local function", s)
}