@@ -1507,12 +1507,12 @@ open class KotlinFileExtractor(
1507
1507
}
1508
1508
is IrFunction -> {
1509
1509
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 ) {
1511
1511
CompilerGeneratedKinds .DECLARING_CLASSES_OF_ADAPTER_FUNCTIONS
1512
1512
} else {
1513
1513
null
1514
1514
}
1515
- val classId = extractGeneratedClass(s, listOf (pluginContext.irBuiltIns.anyType), compilerGeneratedKind = compilerGeneratedKind )
1515
+ val classId = extractGeneratedClass(s, listOf (pluginContext.irBuiltIns.anyType), compilerGeneratedKindOverride = compilerGeneratedKindOverride )
1516
1516
extractLocalTypeDeclStmt(classId, s, callable, parent, idx)
1517
1517
val ids = getLocallyVisibleFunctionLabels(s)
1518
1518
tw.writeKtLocalFunction(ids.function)
@@ -5390,15 +5390,15 @@ open class KotlinFileExtractor(
5390
5390
locId : Label <DbLocation >,
5391
5391
elementToReportOn : IrElement ,
5392
5392
declarationParent : IrDeclarationParent ,
5393
- compilerGeneratedKind : CompilerGeneratedKinds ? = null,
5393
+ compilerGeneratedKindOverride : CompilerGeneratedKinds ? = null,
5394
5394
superConstructorSelector : (IrFunction ) -> Boolean = { it.valueParameters.isEmpty() },
5395
5395
extractSuperconstructorArgs : (Label <DbSuperconstructorinvocationstmt >) -> Unit = {},
5396
5396
): Label <out DbClass > {
5397
5397
// Write class
5398
5398
val id = ids.type.javaResult.id.cast<DbClass >()
5399
5399
val pkgId = extractPackage(" " )
5400
5400
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)
5402
5402
tw.writeHasLocation(id, locId)
5403
5403
5404
5404
// Extract constructor
@@ -5448,12 +5448,12 @@ open class KotlinFileExtractor(
5448
5448
private fun extractGeneratedClass (
5449
5449
localFunction : IrFunction ,
5450
5450
superTypes : List <IrType >,
5451
- compilerGeneratedKind : CompilerGeneratedKinds ? = null
5451
+ compilerGeneratedKindOverride : CompilerGeneratedKinds ? = null
5452
5452
) : Label <out DbClass > {
5453
5453
with (" generated class" , localFunction) {
5454
5454
val ids = getLocallyVisibleFunctionLabels(localFunction)
5455
5455
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 )
5457
5457
5458
5458
// Extract local function as a member
5459
5459
extractFunction(localFunction, id, extractBody = true , extractMethodAndParameterTypeAccesses = true , null , listOf ())
0 commit comments