Add new line after modifier list if last child is comment

#KT-30804 Fixed
This commit is contained in:
Dmitry Gridin
2019-06-06 17:11:07 +07:00
parent fec9ee6408
commit 8b0b135112
15 changed files with 75 additions and 10 deletions
@@ -4,5 +4,5 @@ abstract class B() {
}
abstract class A() : B() {
abstract override <caret>fun foo()
abstract override<caret> fun foo()
}
@@ -0,0 +1,5 @@
// "Remove 'final' modifier" "true"
@Deprecated("")
/* some comment */
final<caret> val x: Int = 42
@@ -0,0 +1,5 @@
// "Remove 'final' modifier" "true"
@Deprecated("")
/* some comment */
val x: Int = 42
@@ -0,0 +1,4 @@
// "Remove 'final' modifier" "true"
@Deprecated("") //some comment
final<caret> val x: Int = 42
@@ -0,0 +1,4 @@
// "Remove 'final' modifier" "true"
@Deprecated("") //some comment
val x: Int = 42
@@ -0,0 +1,6 @@
// "Remove 'final' modifier" "true"
class A() {
@Deprecated("") // wd
final<caret> constructor(i: Int): this()
}
@@ -0,0 +1,6 @@
// "Remove 'final' modifier" "true"
class A() {
@Deprecated("") // wd
constructor(i: Int): this()
}
@@ -0,0 +1,6 @@
// "Remove 'final' modifier" "true"
class A @Deprecated("") // ds
final<caret> constructor() {
}
@@ -0,0 +1,6 @@
// "Remove 'final' modifier" "true"
class A @Deprecated("") // ds
constructor() {
}
+1 -1
View File
@@ -1,5 +1,5 @@
// "Remove 'lateinit' modifier" "true"
class Test {
private <caret>var foo: String = ""
private<caret> var foo: String = ""
}
@@ -3,6 +3,6 @@ class Foo<out T> {
val x = 0
}
fun bar(x : Foo< out<caret> Any>) {
fun bar(x : Foo<out<caret> Any>) {
}
@@ -3,6 +3,6 @@ class Foo<in T> {
val x = 0
}
fun bar(x : Foo< in<caret> Any>) {
fun bar(x : Foo<in<caret> Any>) {
}