Minor: reformat CommonCompilerArguments
This commit is contained in:
+8
-3
@@ -25,7 +25,8 @@ import java.util.*
|
|||||||
@SuppressWarnings("WeakerAccess")
|
@SuppressWarnings("WeakerAccess")
|
||||||
abstract class CommonCompilerArguments : CommonToolArguments() {
|
abstract class CommonCompilerArguments : CommonToolArguments() {
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic private val serialVersionUID = 0L
|
@JvmStatic
|
||||||
|
private val serialVersionUID = 0L
|
||||||
|
|
||||||
const val PLUGIN_OPTION_FORMAT = "plugin:<pluginId>:<optionName>=<value>"
|
const val PLUGIN_OPTION_FORMAT = "plugin:<pluginId>:<optionName>=<value>"
|
||||||
|
|
||||||
@@ -77,7 +78,10 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
|||||||
)
|
)
|
||||||
var skipMetadataVersionCheck: Boolean by FreezableVar(false)
|
var skipMetadataVersionCheck: Boolean by FreezableVar(false)
|
||||||
|
|
||||||
@Argument(value = "-Xallow-kotlin-package", description = "Allow compiling code in package 'kotlin' and allow not requiring kotlin.stdlib in module-info")
|
@Argument(
|
||||||
|
value = "-Xallow-kotlin-package",
|
||||||
|
description = "Allow compiling code in package 'kotlin' and allow not requiring kotlin.stdlib in module-info"
|
||||||
|
)
|
||||||
var allowKotlinPackage: Boolean by FreezableVar(false)
|
var allowKotlinPackage: Boolean by FreezableVar(false)
|
||||||
|
|
||||||
@Argument(value = "-Xreport-output-files", description = "Report source to output files mapping")
|
@Argument(value = "-Xreport-output-files", description = "Report source to output files mapping")
|
||||||
@@ -190,7 +194,8 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
|||||||
when (coroutinesState) {
|
when (coroutinesState) {
|
||||||
CommonCompilerArguments.ERROR -> put(LanguageFeature.Coroutines, LanguageFeature.State.ENABLED_WITH_ERROR)
|
CommonCompilerArguments.ERROR -> put(LanguageFeature.Coroutines, LanguageFeature.State.ENABLED_WITH_ERROR)
|
||||||
CommonCompilerArguments.ENABLE -> put(LanguageFeature.Coroutines, LanguageFeature.State.ENABLED)
|
CommonCompilerArguments.ENABLE -> put(LanguageFeature.Coroutines, LanguageFeature.State.ENABLED)
|
||||||
CommonCompilerArguments.WARN -> {}
|
CommonCompilerArguments.WARN -> {
|
||||||
|
}
|
||||||
else -> {
|
else -> {
|
||||||
val message = "Invalid value of -Xcoroutines (should be: enable, warn or error): " + coroutinesState
|
val message = "Invalid value of -Xcoroutines (should be: enable, warn or error): " + coroutinesState
|
||||||
collector.report(CompilerMessageSeverity.ERROR, message, null)
|
collector.report(CompilerMessageSeverity.ERROR, message, null)
|
||||||
|
|||||||
Reference in New Issue
Block a user