Implement option for wrapping class annotations

This commit is contained in:
Dmitry Jemerov
2017-06-22 19:49:59 +02:00
parent 6c62b60147
commit a379a814ba
10 changed files with 34 additions and 12 deletions
@@ -7,4 +7,5 @@ annotation class Foo
annotation class Bar
@Bar class C {}
@Bar
class C {}
@@ -7,4 +7,5 @@ annotation class Foo
annotation class Bar(val p: Int)
@Bar(1) class C {}
@Bar(1)
class C {}
@@ -7,4 +7,5 @@ annotation class Foo(val p: Int)
annotation class Bar(val p: Int, val s: String)
@Bar(1, "") class C {}
@Bar(1, "")
class C {}
@@ -7,4 +7,5 @@ annotation class Foo(val p: Int)
annotation class Bar(val p: Int, val s: String)
@Bar(p = 1, s = "") class C
@Bar(p = 1, s = "")
class C
@@ -5,4 +5,5 @@ annotation class OldAnnotation(val p: Int = 0)
annotation class NewAnnotation(val p: Int = 0, val newP: String = "")
@NewAnnotation class C
@NewAnnotation
class C