Kotlin: Fixes

This commit is contained in:
Ian Lynagh
2021-08-12 13:23:01 +01:00
parent 3daec4376f
commit 4c8ff16552
5 changed files with 13 additions and 5 deletions

View File

@@ -258,7 +258,8 @@ class KotlinFileExtractor(val tw: TrapWriter) {
}
fun extractValueParameter(vp: IrValueParameter, parent: Label<out DbMethod>, idx: Int) {
val id = tw.getFreshIdLabel<DbParam>()
val label = "@\"params;{$parent};$idx\""
val id = tw.getLabelFor<DbParam>(label)
val typeId = useType(vp.type)
val locId = tw.getLocation(vp.startOffset, vp.endOffset)
tw.writeParams(id, typeId, idx, parent, id)