Rename: Search text occurrences by declaration FQ name
#KT-17949 Fixed #KT-15932 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user