Extract Function: Choose default visibility at analysis phase

This commit is contained in:
Alexey Sedunov
2014-07-28 16:24:05 +04:00
parent 8af173bd4b
commit cb3328c052
131 changed files with 139 additions and 135 deletions
@@ -3,7 +3,7 @@
class A(val a: Int, b: Int) {
val foo = i(b) - 1
fun i(b: Int): Int {
private fun i(b: Int): Int {
return a + b
}
}
@@ -3,7 +3,7 @@
class A(val a: Int, b: Int) {
val foo = { i(b) - 1 }.invoke()
fun i(b: Int): Int {
private fun i(b: Int): Int {
return a + b
}
}
@@ -2,6 +2,6 @@ val a = 1
val b = 1
val foo = i() - 1
fun i(): Int {
private fun i(): Int {
return a + b
}
@@ -2,6 +2,6 @@ val a = 1
val b = 1
val foo = { i() - 1 }.invoke()
fun i(): Int {
private fun i(): Int {
return a + b
}