Rename: Fix inplace refactoring for declarations with backticked names

#KT-15859 Fixed
This commit is contained in:
Alexey Sedunov
2017-05-23 19:13:34 +03:00
parent 2f88b6ef9b
commit 9c11c42ec2
14 changed files with 169 additions and 8 deletions
@@ -0,0 +1,8 @@
fun `fun`(n: Int) {
}
fun test() {
`fun`(1)
`fun`(2)
}
@@ -0,0 +1,8 @@
fun /*rename*/foo(n: Int) {
}
fun test() {
foo(1)
foo(2)
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "`fun`"
}
@@ -0,0 +1,8 @@
fun foo(n: Int) {
}
fun test() {
foo(1)
foo(2)
}
@@ -0,0 +1,8 @@
fun /*rename*/`fun`(n: Int) {
}
fun test() {
`fun`(1)
`fun`(2)
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "foo"
}
@@ -0,0 +1,8 @@
fun foo(n: Int) {
}
fun test() {
foo(1)
foo(2)
}
@@ -0,0 +1,8 @@
fun `fun`/*rename*/(n: Int) {
}
fun test() {
`fun`(1)
`fun`(2)
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "foo"
}