Skip to content

Commit 0be52f9

Browse files
committed
Kotlin: Follow removal of sourceid column of the fields relation
1 parent 300864a commit 0be52f9

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ open class KotlinFileExtractor(
10201020
// here.
10211021
val instance = useObjectClassInstance(c)
10221022
val type = useSimpleTypeClass(c, emptyList(), false)
1023-
tw.writeFields(instance.id, instance.name, type.javaResult.id, id, instance.id)
1023+
tw.writeFields(instance.id, instance.name, type.javaResult.id, id)
10241024
tw.writeFieldsKotlinType(instance.id, type.kotlinResult.id)
10251025
tw.writeHasLocation(instance.id, locId)
10261026
addModifiers(instance.id, "public", "static", "final")
@@ -1237,8 +1237,7 @@ open class KotlinFileExtractor(
12371237
instance.id,
12381238
instance.name,
12391239
type.javaResult.id,
1240-
parentId,
1241-
instance.id
1240+
parentId
12421241
)
12431242
tw.writeFieldsKotlinType(instance.id, type.kotlinResult.id)
12441243
tw.writeHasLocation(instance.id, innerLocId)
@@ -2600,7 +2599,7 @@ open class KotlinFileExtractor(
26002599
isStatic: Boolean
26012600
): Label<out DbField> {
26022601
val t = useType(type)
2603-
tw.writeFields(id, name, t.javaResult.id, parentId, id)
2602+
tw.writeFields(id, name, t.javaResult.id, parentId)
26042603
tw.writeFieldsKotlinType(id, t.kotlinResult.id)
26052604
tw.writeHasLocation(id, locId)
26062605

@@ -2757,7 +2756,7 @@ open class KotlinFileExtractor(
27572756
DeclarationStackAdjuster(ee).use {
27582757
val id = useEnumEntry(ee)
27592758
val type = getEnumEntryType(ee) ?: return
2760-
tw.writeFields(id, ee.name.asString(), type.javaResult.id, parentId, id)
2759+
tw.writeFields(id, ee.name.asString(), type.javaResult.id, parentId)
27612760
tw.writeFieldsKotlinType(id, type.kotlinResult.id)
27622761
val locId = tw.getLocation(ee)
27632762
tw.writeHasLocation(id, locId)

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ open class KotlinUsesExtractor(
779779
// array.length
780780
val length = tw.getLabelFor<DbField>("@\"field;{$it};length\"")
781781
val intTypeIds = useType(pluginContext.irBuiltIns.intType)
782-
tw.writeFields(length, "length", intTypeIds.javaResult.id, it, length)
782+
tw.writeFields(length, "length", intTypeIds.javaResult.id, it)
783783
tw.writeFieldsKotlinType(length, intTypeIds.kotlinResult.id)
784784
addModifiers(length, "public", "final")
785785

0 commit comments

Comments
 (0)