KotlinMangler: added IrType.isInlined

Added possibility to specify when IrType corresponds to an inline class
This commit is contained in:
Igor Chevdar
2019-05-14 18:55:39 +03:00
parent 8e579855f2
commit b060acf01d
2 changed files with 7 additions and 2 deletions
@@ -6,9 +6,14 @@
package org.jetbrains.kotlin.ir.backend.js.lower.serialization.ir
import org.jetbrains.kotlin.backend.common.serialization.KotlinManglerImpl
import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.util.isInlined
object JsMangler: KotlinManglerImpl() {
// TODO: think about this
override val String.hashMangle: Long get() = this.hashCode().toLong()
override val IrType.isInlined: Boolean
get() = this.isInlined()
}