// DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "Deprecation_Error", "DuplicatedCode")

package org.jetbrains.kotlin.gradle.dsl

enum class JsMainFunctionExecutionMode(val mode: String) {
    CALL("call"),
    NO_CALL("noCall"),
    ;

    companion object {
        @JvmStatic
        fun fromMode(mode: String): JsMainFunctionExecutionMode =
            JsMainFunctionExecutionMode.values().firstOrNull { it.mode == mode }
                ?: throw IllegalArgumentException(
                    "Unknown main function execution mode: $mode,\navailable modes: ${JsMainFunctionExecutionMode.values().joinToString { it.mode }}\n" +
                            "Prefer configuring 'main' value via 'compilerOptions' DSL: https://kotl.in/compiler-options-dsl"
                )
    }
}
