You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aid="kt_kotlinc_options-x_annotation_default_target"></a>x_annotation_default_target | Change the default annotation targets for constructor properties: -Xannotation-default-target=first-only: use the first of the following allowed targets: '@param:', '@property:', '@field:'; -Xannotation-default-target=first-only-warn: same as first-only, and raise warnings when both '@param:' and either '@property:' or '@field:' are allowed; -Xannotation-default-target=param-property: use '@param:' target if applicable, and also use the first of either '@property:' or '@field:'; default: 'first-only-warn' in language version 2.2+, 'first-only' in version 2.1 and before. | String | optional |`"off"`|
406
408
| <aid="kt_kotlinc_options-x_assertions"></a>x_assertions | Configures how assertions are handled. The 'jvm' option enables assertions in JVM code. | String | optional |`""`|
407
409
| <aid="kt_kotlinc_options-x_backend_threads"></a>x_backend_threads | When using the IR backend, run lowerings by file in N parallel threads. 0 means use a thread per processor core. Default value is 1. | Integer | optional |`1`|
408
410
| <aid="kt_kotlinc_options-x_consistent_data_class_copy_visibility"></a>x_consistent_data_class_copy_visibility | The effect of this compiler flag is the same as applying @ConsistentCopyVisibility annotation to all data classes in the module. See https://youtrack.jetbrains.com/issue/KT-11914| Boolean | optional |`False`|
Copy file name to clipboardExpand all lines: src/main/starlark/core/options/opts.kotlinc.bzl
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,24 @@ _KOPTS_ALL = {
191
191
"strict": ["-Xexplicit-api=strict"],
192
192
},
193
193
),
194
+
"x_annotation_default_target": struct(
195
+
args=dict(
196
+
default="off",
197
+
doc="""Change the default annotation targets for constructor properties:
198
+
-Xannotation-default-target=first-only: use the first of the following allowed targets: '@param:', '@property:', '@field:';
199
+
-Xannotation-default-target=first-only-warn: same as first-only, and raise warnings when both '@param:' and either '@property:' or '@field:' are allowed;
200
+
-Xannotation-default-target=param-property: use '@param:' target if applicable, and also use the first of either '@property:' or '@field:';
201
+
default: 'first-only-warn' in language version 2.2+, 'first-only' in version 2.1 and before.""",
0 commit comments