Kotlin: Add KotlinType to params

This commit is contained in:
Ian Lynagh
2021-11-03 16:16:23 +00:00
parent 0d5e471b96
commit ef22194eed
6 changed files with 17 additions and 10 deletions

View File

@@ -894,9 +894,9 @@ open class KotlinFileExtractor(
fun extractValueParameter(vp: IrValueParameter, parent: Label<out DbCallable>, idx: Int) {
val id = useValueParameter(vp)
val typeId = useTypeOld(vp.type)
val type = useType(vp.type)
val locId = tw.getLocation(vp.startOffset, vp.endOffset)
tw.writeParams(id, typeId, idx, parent, id)
tw.writeParams(id, type.javaResult.id, type.kotlinResult.id, idx, parent, id)
tw.writeHasLocation(id, locId)
tw.writeParamName(id, vp.name.asString())
}