Kotlin: Add KotlinType to localvars

This commit is contained in:
Ian Lynagh
2021-11-03 16:51:05 +00:00
parent 06a41b3923
commit 6cf0b755f0
5 changed files with 10 additions and 6 deletions

View File

@@ -1061,7 +1061,7 @@ open class KotlinFileExtractor(
val exprId = tw.getFreshIdLabel<DbLocalvariabledeclexpr>()
val locId = tw.getLocation(v)
val type = useType(v.type)
tw.writeLocalvars(varId, v.name.asString(), type.javaResult.id, exprId) // TODO: KT type
tw.writeLocalvars(varId, v.name.asString(), type.javaResult.id, type.kotlinResult.id, exprId)
tw.writeHasLocation(varId, locId)
tw.writeExprs_localvariabledeclexpr(exprId, type.javaResult.id, type.kotlinResult.id, parent, idx)
tw.writeHasLocation(exprId, locId)