Generate Js runtime diagnostic mode type
^KT-27301 In Progress
This commit is contained in:
+15
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user