Kapt: Add DUMP_DEFAULT_PARAMETER_VALUES flag (KT-29355)
Put initializers on fields when corresponding primary constructor parameters have a default value specified. The new behavior is available under the new 'DUMP_DEFAULT_PARAMETER_VALUES' flag. Note that this doesn't affect regular functions with default parameter values, as well as primary constructor parameters without a 'val' or 'var' keyword.
This commit is contained in:
@@ -153,6 +153,13 @@ enum class KaptCliOption(
|
||||
cliToolOption = CliToolOption("-Kapt-correct-error-types", FLAG)
|
||||
),
|
||||
|
||||
DUMP_DEFAULT_PARAMETER_VALUES(
|
||||
"dumpDefaultParameterValues",
|
||||
"true | false",
|
||||
"Put initializers on fields when corresponding primary constructor parameters have a default value specified",
|
||||
cliToolOption = CliToolOption("-Kapt-dump-default-parameter-values", FLAG)
|
||||
),
|
||||
|
||||
MAP_DIAGNOSTIC_LOCATIONS_OPTION(
|
||||
"mapDiagnosticLocations",
|
||||
"true | false",
|
||||
|
||||
Reference in New Issue
Block a user