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
}
@@ -4,7 +4,6 @@
class A<T>(val n: T) {
val foo: Any
}
fun test(): Int {
@@ -6,6 +6,5 @@ import kotlin.properties.ReadOnlyProperty
class A<T> {
val foo: ReadOnlyProperty<A<T>, A<Int>>
val x: A<Int> by foo
}
@@ -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> {
@@ -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() {
@@ -3,7 +3,6 @@
class A<T>(val n: T) {
val foo: A<T>
}
fun test<U>(u: U) {
@@ -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() {