Rename: Search text occurrences by declaration FQ name

#KT-17949 Fixed
 #KT-15932 Fixed
This commit is contained in:
Alexey Sedunov
2017-09-27 18:11:52 +03:00
parent e68f8d6d45
commit e2fd9a71df
14 changed files with 83 additions and 17 deletions
@@ -0,0 +1,9 @@
package test
class A {
fun baz() {}
fun bar() {
baz()
}
}
@@ -0,0 +1,2 @@
foo
test.A.baz
@@ -0,0 +1,9 @@
package test
class A {
fun /*rename*/foo() {}
fun bar() {
foo()
}
}
@@ -0,0 +1,2 @@
foo
test.A.foo
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "baz",
"searchInTextOccurrences": "true"
}
@@ -0,0 +1,9 @@
package test
class A {
val baz = 1
fun bar() {
baz
}
}
@@ -0,0 +1,2 @@
foo
test.A.baz
@@ -0,0 +1,9 @@
package test
class A {
val /*rename*/foo = 1
fun bar() {
foo
}
}
@@ -0,0 +1,2 @@
foo
test.A.foo
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "baz",
"searchInTextOccurrences": "true"
}