Rename: Support import aliases

#KT-4379 Fixed
This commit is contained in:
Alexey Sedunov
2017-04-25 20:27:58 +03:00
parent 5d87276cff
commit f2bb6e4dac
22 changed files with 156 additions and 10 deletions
@@ -0,0 +1,3 @@
package foo
class Foo
@@ -0,0 +1,5 @@
import foo.Foo as Baz
fun test() {
val bar: Baz = Baz()
}
@@ -0,0 +1,3 @@
package foo
class Foo
@@ -0,0 +1,5 @@
import foo.Foo as /*rename*/Bar
fun test() {
val bar: Bar = Bar()
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "Baz"
}
@@ -0,0 +1,3 @@
package foo
class Foo
@@ -0,0 +1,5 @@
import foo.Foo as Baz
fun test() {
val bar: Baz = Baz()
}
@@ -0,0 +1,3 @@
package foo
class Foo
@@ -0,0 +1,5 @@
import foo.Foo as Bar
fun test() {
val bar: /*rename*/Bar = Bar()
}
@@ -0,0 +1,5 @@
{
"type": "AUTO_DETECT",
"mainFile": "test.kt",
"newName": "Baz"
}