commonMain.community.flock.wirespec.plugin.Language.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arguments Show documentation
Show all versions of arguments Show documentation
Type safe wires made easy
package community.flock.wirespec.plugin
import community.flock.wirespec.compiler.core.Value
enum class Language {
Java, Kotlin, Scala, TypeScript, Wirespec;
companion object {
fun toMap() = entries.associateBy { it.name }
override fun toString() = entries.joinToString()
}
}
enum class FileExtension(override val value: String) : Value {
Java("java"), Kotlin("kt"), Scala("scala"), TypeScript("ts"), Wirespec("ws"), Json("json")
}