Insert empty lines after functions and properties (KT-4002)

#KT-4002 Fixed
This commit is contained in:
Nikolay Krasko
2014-10-10 17:50:37 +04:00
parent 22d33a5afa
commit b06b3ab4c4
54 changed files with 764 additions and 121 deletions
@@ -3,8 +3,10 @@ abstract class Shape {
public fun setColor(c: String) {
color = c
}
public fun getColor(): String {
return color
}
public abstract fun area(): Double
}
@@ -1,8 +1,10 @@
class T {
fun main() {
}
fun i(): Int {
}
fun s(): String {
}
}
+1
View File
@@ -5,6 +5,7 @@ import java.util.HashMap
fun Test(): Test {
return Test()
}
fun Test(s: String): Test {
return Test()
}
@@ -3,6 +3,7 @@ class S {
fun sB(): Boolean {
return true
}
fun sI(): Int {
return 1
}
@@ -17,6 +17,7 @@ class Customer(public val _firstName: String, public val _lastName: String) {
private fun doSmthBefore() {
}
private fun doSmthAfter() {
}
}
@@ -9,6 +9,7 @@ class C(private val arg1: Int, private val arg2: Int, private val arg3: Int) {
fun foo(p: Int): Int {
return p
}
private fun staticFoo(p: Int): Int {
return p
}
@@ -6,6 +6,7 @@ class F {
fun f2() {
}
var i: Int? = 0
fun f3() {
@@ -17,6 +17,7 @@ class F {
fun f2() {
}
var i: Int? = 0
fun f3() {
@@ -25,6 +25,7 @@ class F {
fun f1() {
}
var i: Int? = 0
//c5
@@ -18,6 +18,7 @@ class F {
fun f2() {
}
var i: Int? = 0
fun f3() {
@@ -2,6 +2,7 @@ class A {
fun a() {
}
}
class B : A() {
override fun a() {
}
+1
View File
@@ -7,6 +7,7 @@ public class Java {
val m = HashMap()
m.put(1, 1)
}
fun test2() {
val m = HashMap()
val g = G("")
@@ -15,6 +15,7 @@ class StringContainer(s: String)
class Test {
fun putString(s: String) {
}
fun test() {
putString(One.myContainer.myString)
StringContainer(One.myContainer.myString)
+1
View File
@@ -15,6 +15,7 @@ class IntContainer(i: Int)
class Test {
fun putInt(i: Int) {
}
fun test() {
putInt(One.myContainer.myInt)
IntContainer(One.myContainer.myInt)
+2
View File
@@ -13,6 +13,7 @@ public class Language(protected var code: String) : Serializable {
class Base {
fun test() {
}
override fun toString(): String {
return "BASE"
}
@@ -21,6 +22,7 @@ class Base {
class Child : Base() {
override fun test() {
}
override fun toString(): String {
return "Child"
}
@@ -3,8 +3,10 @@
open class A {
open fun foo1() {
}
private fun foo2() {
}
fun foo3() {
}
}
@@ -31,4 +33,4 @@ enum class E {
fun foo(): Int {
return 0
}
}
}
@@ -10,6 +10,7 @@ class A {
private fun privateStatic1() {
}
private fun privateStatic2() {
}
}
@@ -6,6 +6,7 @@ class A {
private fun privateStatic1() {
}
private fun privateStatic2() {
}
}
@@ -12,6 +12,7 @@ class A {
private fun privateStatic1() {
}
private fun privateStatic2() {
}
}
@@ -13,6 +13,7 @@ class A {
private fun privateStatic1() {
}
private fun privateStatic2() {
}
}
@@ -11,6 +11,7 @@ class A {
private fun privateStatic1() {
}
private fun privateStatic2() {
}
}