in src/main/kotlin/com/compiler/server/configuration/CompilerArgumentsConfiguration.kt [53:67]
fun compilerArgumentsValidators(
jvmCompilerArgumentsValidator: AbstractCompilerArgumentsValidator,
jsCompilerArgumentsValidator: AbstractCompilerArgumentsValidator,
wasmCompilerArgumentsValidator: AbstractCompilerArgumentsValidator,
composeWasmCompilerArgumentsValidator: AbstractCompilerArgumentsValidator
): Map<ProjectType, AbstractCompilerArgumentsValidator> {
return ProjectType.entries.keysToMap {
when (it) {
ProjectType.JAVA, ProjectType.JUNIT -> jvmCompilerArgumentsValidator
ProjectType.JS, ProjectType.JS_IR, ProjectType.CANVAS -> jsCompilerArgumentsValidator
ProjectType.WASM -> wasmCompilerArgumentsValidator
ProjectType.COMPOSE_WASM -> composeWasmCompilerArgumentsValidator
}
}
}