Generate Js runtime diagnostic mode type

^KT-27301 In Progress
This commit is contained in:
Yahor Berdnikau
2022-08-30 14:36:33 +02:00
parent c1ed683ed8
commit 5eebcf8c77
3 changed files with 46 additions and 0 deletions
@@ -0,0 +1,15 @@
// DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
package org.jetbrains.kotlin.gradle.dsl
@Suppress("DEPRECATION")
enum class JsDiagnosticMode (val mode: String) {
RUNTIME_DIAGNOSTIC_EXCEPTION("exception"),
RUNTIME_DIAGNOSTIC_LOG("log");
companion object {
fun fromMode(mode: String): JsDiagnosticMode =
JsDiagnosticMode.values().firstOrNull { it.mode == mode }
?: throw IllegalArgumentException("Unknown JS diagnostic mode: $mode")
}
}