Rename: Adapt VariableInplaceRenameHandler to Kotlin

#KT-16510 Fixed
This commit is contained in:
Alexey Sedunov
2018-02-22 22:49:44 +03:00
parent 7149a0855a
commit 0e3e387446
18 changed files with 154 additions and 78 deletions
@@ -0,0 +1,7 @@
class A(val a: B)
class B(val b: Int)
fun x(`is`: A) {
val <caret>`in` = `is`.a
`in`.b
}
@@ -0,0 +1,7 @@
class A(val a: B)
class B(val b: Int)
fun x(`is`: A) {
val x = `is`.a
x.b
}
@@ -0,0 +1,7 @@
class A(val a: B)
class B(val b: Int)
fun x(<caret>`is`: A) {
val `in` = `is`.a
`in`.b
}
@@ -0,0 +1,7 @@
class A(val a: B)
class B(val b: Int)
fun x(x: A) {
val `in` = x.a
`in`.b
}