All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.seskar.compiler.value.backend.Value.kt Maven / Gradle / Ivy

There is a newer version: 3.32.0
Show newest version
package seskar.compiler.value.backend

internal sealed interface Value

@JvmInline
internal value class IntValue(
    val value: Int,
) : Value

@JvmInline
internal value class StringValue(
    val value: String,
) : Value

internal fun Value.toJsName(): String =
    when (this) {
        is IntValue -> "$value"
        is StringValue -> "'$value'"
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy