@@ -1507,12 +1507,12 @@ open class KotlinFileExtractor(
15071507 }
15081508 is IrFunction -> {
15091509 if (s.isLocalFunction()) {
1510- val compilerGeneratedKind = if (s.origin == IrDeclarationOrigin .ADAPTER_FOR_CALLABLE_REFERENCE ) {
1510+ val compilerGeneratedKindOverride = if (s.origin == IrDeclarationOrigin .ADAPTER_FOR_CALLABLE_REFERENCE ) {
15111511 CompilerGeneratedKinds .DECLARING_CLASSES_OF_ADAPTER_FUNCTIONS
15121512 } else {
15131513 null
15141514 }
1515- val classId = extractGeneratedClass(s, listOf (pluginContext.irBuiltIns.anyType), compilerGeneratedKind = compilerGeneratedKind )
1515+ val classId = extractGeneratedClass(s, listOf (pluginContext.irBuiltIns.anyType), compilerGeneratedKindOverride = compilerGeneratedKindOverride )
15161516 extractLocalTypeDeclStmt(classId, s, callable, parent, idx)
15171517 val ids = getLocallyVisibleFunctionLabels(s)
15181518 tw.writeKtLocalFunction(ids.function)
@@ -5390,15 +5390,15 @@ open class KotlinFileExtractor(
53905390 locId : Label <DbLocation >,
53915391 elementToReportOn : IrElement ,
53925392 declarationParent : IrDeclarationParent ,
5393- compilerGeneratedKind : CompilerGeneratedKinds ? = null,
5393+ compilerGeneratedKindOverride : CompilerGeneratedKinds ? = null,
53945394 superConstructorSelector : (IrFunction ) -> Boolean = { it.valueParameters.isEmpty() },
53955395 extractSuperconstructorArgs : (Label <DbSuperconstructorinvocationstmt >) -> Unit = {},
53965396 ): Label <out DbClass > {
53975397 // Write class
53985398 val id = ids.type.javaResult.id.cast<DbClass >()
53995399 val pkgId = extractPackage(" " )
54005400 tw.writeClasses(id, " " , pkgId, id)
5401- tw.writeCompiler_generated(id, (compilerGeneratedKind ? : CompilerGeneratedKinds .CALLABLE_CLASS ).kind)
5401+ tw.writeCompiler_generated(id, (compilerGeneratedKindOverride ? : CompilerGeneratedKinds .CALLABLE_CLASS ).kind)
54025402 tw.writeHasLocation(id, locId)
54035403
54045404 // Extract constructor
@@ -5448,12 +5448,12 @@ open class KotlinFileExtractor(
54485448 private fun extractGeneratedClass (
54495449 localFunction : IrFunction ,
54505450 superTypes : List <IrType >,
5451- compilerGeneratedKind : CompilerGeneratedKinds ? = null
5451+ compilerGeneratedKindOverride : CompilerGeneratedKinds ? = null
54525452 ) : Label <out DbClass > {
54535453 with (" generated class" , localFunction) {
54545454 val ids = getLocallyVisibleFunctionLabels(localFunction)
54555455
5456- val id = extractGeneratedClass(ids, superTypes, tw.getLocation(localFunction), localFunction, localFunction.parent, compilerGeneratedKind = compilerGeneratedKind )
5456+ val id = extractGeneratedClass(ids, superTypes, tw.getLocation(localFunction), localFunction, localFunction.parent, compilerGeneratedKindOverride = compilerGeneratedKindOverride )
54575457
54585458 // Extract local function as a member
54595459 extractFunction(localFunction, id, extractBody = true , extractMethodAndParameterTypeAccesses = true , null , listOf ())
0 commit comments