Add options for wrapping local variable and property annotations

#KT-14950 Fixed
This commit is contained in:
Dmitry Jemerov
2017-07-18 19:36:08 +02:00
parent 050ff03b07
commit 951392005b
11 changed files with 94 additions and 15 deletions
@@ -0,0 +1,7 @@
fun foo() {
@Deprecated
@Named("foo")
val bar = 1
}
// SET_INT: VARIABLE_ANNOTATION_WRAP = 2
@@ -0,0 +1,5 @@
fun foo() {
@Deprecated @Named("foo") val bar = 1
}
// SET_INT: VARIABLE_ANNOTATION_WRAP = 2
@@ -0,0 +1,5 @@
@Deprecated
@Named("foo")
val bar = 1
// SET_INT: FIELD_ANNOTATION_WRAP = 2
+3
View File
@@ -0,0 +1,3 @@
@Deprecated @Named("foo") val bar = 1
// SET_INT: FIELD_ANNOTATION_WRAP = 2
+15 -4
View File
@@ -67,7 +67,12 @@ annotation class A1
annotation class A2
private @[A1 A2 A1] @A1 @A2 @[A1 A2 A2] @[A1] val fooProp1 = 1
private @[A1 A2 A1]
@A1
@A2
@[A1 A2 A2]
@[A1]
val fooProp1 = 1
private @[
@@ -75,17 +80,23 @@ private @[
A1
A2 A1] @A1 @A2 @[A1
A2 A1]
@A1
@A2
@[A1
A2
A2
] @[A1] val fooProp1 = 1
]
@[A1]
val fooProp1 = 1
private @A1
@A2 val
@A2
val
fooProp2 = 1