Automatic renaming top-level overloads.

#KT-4642 in progress
This commit is contained in:
Evgeny Gerashchenko
2015-04-16 20:18:56 +03:00
parent 8fe3a1d366
commit d383e03a81
9 changed files with 145 additions and 15 deletions
@@ -0,0 +1,16 @@
package testing
fun bar() {
}
fun bar(a: Int) {
}
fun String.bar() {
}
fun main(args: Array<String>) {
bar()
bar(1)
"".bar()
}
@@ -0,0 +1,4 @@
package testing
fun bar(x: Int, y: Int) {
}
@@ -0,0 +1,16 @@
package testing
fun foo() {
}
fun foo(a: Int) {
}
fun String.foo() {
}
fun main(args: Array<String>) {
foo()
foo(1)
"".foo()
}
@@ -0,0 +1,4 @@
package testing
fun foo(x: Int, y: Int) {
}
@@ -0,0 +1,7 @@
{
"type": "KOTLIN_FUNCTION",
"packageFqn": "testing",
"oldName": "foo",
"newName": "bar",
"mainFile": "package.kt"
}