From 0be52f9660dec20783948112dbe91f665ab3d960 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 18 Sep 2024 11:23:54 +0100 Subject: [PATCH] Kotlin: Follow removal of sourceid column of the fields relation --- .../src/main/kotlin/KotlinFileExtractor.kt | 9 ++++----- .../src/main/kotlin/KotlinUsesExtractor.kt | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt b/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt index 0ca8cb4af09..4b61447824d 100644 --- a/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt +++ b/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt @@ -1020,7 +1020,7 @@ open class KotlinFileExtractor( // here. val instance = useObjectClassInstance(c) val type = useSimpleTypeClass(c, emptyList(), false) - tw.writeFields(instance.id, instance.name, type.javaResult.id, id, instance.id) + tw.writeFields(instance.id, instance.name, type.javaResult.id, id) tw.writeFieldsKotlinType(instance.id, type.kotlinResult.id) tw.writeHasLocation(instance.id, locId) addModifiers(instance.id, "public", "static", "final") @@ -1237,8 +1237,7 @@ open class KotlinFileExtractor( instance.id, instance.name, type.javaResult.id, - parentId, - instance.id + parentId ) tw.writeFieldsKotlinType(instance.id, type.kotlinResult.id) tw.writeHasLocation(instance.id, innerLocId) @@ -2600,7 +2599,7 @@ open class KotlinFileExtractor( isStatic: Boolean ): Label { val t = useType(type) - tw.writeFields(id, name, t.javaResult.id, parentId, id) + tw.writeFields(id, name, t.javaResult.id, parentId) tw.writeFieldsKotlinType(id, t.kotlinResult.id) tw.writeHasLocation(id, locId) @@ -2757,7 +2756,7 @@ open class KotlinFileExtractor( DeclarationStackAdjuster(ee).use { val id = useEnumEntry(ee) val type = getEnumEntryType(ee) ?: return - tw.writeFields(id, ee.name.asString(), type.javaResult.id, parentId, id) + tw.writeFields(id, ee.name.asString(), type.javaResult.id, parentId) tw.writeFieldsKotlinType(id, type.kotlinResult.id) val locId = tw.getLocation(ee) tw.writeHasLocation(id, locId) diff --git a/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt b/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt index 3be94d65690..a1c24734064 100644 --- a/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt +++ b/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt @@ -779,7 +779,7 @@ open class KotlinUsesExtractor( // array.length val length = tw.getLabelFor("@\"field;{$it};length\"") val intTypeIds = useType(pluginContext.irBuiltIns.intType) - tw.writeFields(length, "length", intTypeIds.javaResult.id, it, length) + tw.writeFields(length, "length", intTypeIds.javaResult.id, it) tw.writeFieldsKotlinType(length, intTypeIds.kotlinResult.id) addModifiers(length, "public", "final")