Create From Usage: Do not generate unnecessary/skip necessary empty lines
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
class A {
|
||||
val t: Int get() {
|
||||
val foo: Int
|
||||
|
||||
return foo
|
||||
}
|
||||
}
|
||||
-1
@@ -5,7 +5,6 @@
|
||||
class A {
|
||||
val t: Int get() {
|
||||
val foo: Int
|
||||
|
||||
return foo
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,5 @@
|
||||
|
||||
fun test(): Int {
|
||||
val foo: Int
|
||||
|
||||
return foo
|
||||
}
|
||||
-1
@@ -4,6 +4,5 @@
|
||||
|
||||
fun test(): Int {
|
||||
val foo: Int
|
||||
|
||||
return foo
|
||||
}
|
||||
-1
@@ -5,7 +5,6 @@
|
||||
fun test(n: Int) {
|
||||
val f: () -> Int = {
|
||||
val foo: Int
|
||||
|
||||
foo
|
||||
}
|
||||
}
|
||||
-1
@@ -5,7 +5,6 @@
|
||||
fun test(n: Int) {
|
||||
val f: (Int, Int) -> Int = { (a, b) ->
|
||||
val foo: Int
|
||||
|
||||
foo
|
||||
}
|
||||
}
|
||||
-1
@@ -5,7 +5,6 @@
|
||||
fun test(n: Int) {
|
||||
val f: () -> Int = {
|
||||
val foo: Int
|
||||
|
||||
foo
|
||||
}
|
||||
}
|
||||
-1
@@ -5,7 +5,6 @@
|
||||
fun test(n: Int) {
|
||||
val f: (Int, Int) -> Int = { (a, b) ->
|
||||
val foo: Int
|
||||
|
||||
foo
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ fun test(n: Int): Int {
|
||||
return when (n) {
|
||||
1 -> {
|
||||
val foo: Int
|
||||
|
||||
foo
|
||||
}
|
||||
else -> {
|
||||
|
||||
-1
@@ -6,6 +6,5 @@ package foo
|
||||
|
||||
fun test(): Int {
|
||||
val foo: Int
|
||||
|
||||
return foo
|
||||
}
|
||||
-1
@@ -3,6 +3,5 @@
|
||||
|
||||
fun test(): Int? {
|
||||
val foo: Int?
|
||||
|
||||
return foo
|
||||
}
|
||||
-1
@@ -4,6 +4,5 @@
|
||||
|
||||
fun test() {
|
||||
val foo: Unit
|
||||
|
||||
val u: Unit = foo
|
||||
}
|
||||
-1
@@ -4,7 +4,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
val foo: Any
|
||||
|
||||
}
|
||||
|
||||
fun test(): Int {
|
||||
|
||||
-1
@@ -6,6 +6,5 @@ import kotlin.properties.ReadOnlyProperty
|
||||
|
||||
class A<T> {
|
||||
val foo: ReadOnlyProperty<A<T>, A<Int>>
|
||||
|
||||
val x: A<Int> by foo
|
||||
}
|
||||
|
||||
-1
@@ -6,6 +6,5 @@ import kotlin.properties.ReadWriteProperty
|
||||
|
||||
class A<T> {
|
||||
val foo: ReadWriteProperty<A<T>, A<Int>>
|
||||
|
||||
var x: A<Int> by foo
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
val foo: A<Int>
|
||||
|
||||
}
|
||||
|
||||
fun <U> A<U>.test(): A<Int> {
|
||||
|
||||
-1
@@ -3,7 +3,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
class object {
|
||||
|
||||
val foo: Int
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
object A {
|
||||
val foo: Int
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
val foo: A<T>
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
-1
@@ -3,7 +3,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
val foo: A<T>
|
||||
|
||||
}
|
||||
|
||||
fun test<U>(u: U) {
|
||||
|
||||
-1
@@ -3,7 +3,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
val foo: A<T>?
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
var foo: String
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Reference in New Issue
Block a user