update backing field references when renaming Kotlin property

#KT-7905 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-24 17:55:45 +02:00
parent 96f2257b23
commit 18223dfaaa
15 changed files with 133 additions and 3 deletions
@@ -0,0 +1,7 @@
package testing.rename
class Foo {
companion object {
val SECOND = 111
}
}
@@ -0,0 +1,9 @@
package testing;
import testing.rename.*;
class JavaClient {
public int foo() {
return Foo.SECOND;
}
}
@@ -0,0 +1,7 @@
package testing.rename
class Foo {
companion object {
val FIRST = 111
}
}
@@ -0,0 +1,9 @@
package testing;
import testing.rename.*;
class JavaClient {
public int foo() {
return Foo.FIRST;
}
}
@@ -0,0 +1,6 @@
{
"type": "KOTLIN_PROPERTY",
"classId": "testing/rename/Foo.Companion",
"oldName": "FIRST",
"newName": "SECOND"
}
@@ -0,0 +1,5 @@
package testing.rename
object Foo {
val SECOND = 111
}
@@ -0,0 +1,9 @@
package testing;
import testing.rename.*;
class JavaClient {
public int foo() {
return Foo.SECOND;
}
}
@@ -0,0 +1,5 @@
package testing.rename
object Foo {
val FIRST = 111
}
@@ -0,0 +1,9 @@
package testing;
import testing.rename.*;
class JavaClient {
public int foo() {
return Foo.FIRST;
}
}
@@ -0,0 +1,6 @@
{
"type": "KOTLIN_PROPERTY",
"classId": "testing/rename/Foo",
"oldName": "FIRST",
"newName": "SECOND"
}