Create From Usage: Do not generate unnecessary/skip necessary empty lines

This commit is contained in:
Alexey Sedunov
2014-11-12 15:49:06 +03:00
parent 2e7cbab453
commit c487cc7838
123 changed files with 141 additions and 154 deletions
@@ -5,7 +5,6 @@
class A {
val t: Int get() {
val foo: Int
return foo
}
}
@@ -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
}
@@ -4,6 +4,5 @@
fun test(): Int {
val foo: Int
return foo
}
@@ -5,7 +5,6 @@
fun test(n: Int) {
val f: () -> Int = {
val foo: Int
foo
}
}
@@ -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) {
val f: () -> Int = {
val foo: Int
foo
}
}
@@ -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 -> {
@@ -6,6 +6,5 @@ package foo
fun test(): Int {
val foo: Int
return foo
}
@@ -3,6 +3,5 @@
fun test(): Int? {
val foo: Int?
return foo
}
@@ -4,6 +4,5 @@
fun test() {
val foo: Unit
val u: Unit = foo
}