Kotlin: Pull Kotlin type for localvars out into its own table

This commit is contained in:
Ian Lynagh
2022-01-27 15:01:31 +00:00
parent 7862229807
commit 76ca0b2776
6 changed files with 19 additions and 13 deletions

View File

@@ -801,7 +801,8 @@ open class KotlinFileExtractor(
val exprId = tw.getFreshIdLabel<DbLocalvariabledeclexpr>()
val locId = tw.getLocation(getVariableLocationProvider(v))
val type = useType(v.type)
tw.writeLocalvars(varId, v.name.asString(), type.javaResult.id, type.kotlinResult.id, exprId)
tw.writeLocalvars(varId, v.name.asString(), type.javaResult.id, exprId)
tw.writeLocalvarsKotlinType(varId, type.kotlinResult.id)
tw.writeHasLocation(varId, locId)
tw.writeExprs_localvariabledeclexpr(exprId, type.javaResult.id, parent, idx)
tw.writeExprsKotlinType(exprId, type.kotlinResult.id)