commonMain.community.flock.wirespec.plugin.Language.kt Maven / Gradle / Ivy
package community.flock.wirespec.plugin
import community.flock.wirespec.compiler.core.Value
enum class Language {
Java, JavaLegacy, Kotlin, KotlinLegacy, 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")
}