Automatic renaming properties, variables, parameters when renaming class.
#KT-4642 in progress
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
data class Pair<out A, out B>(
|
||||
public val first: A,
|
||||
public val second: B
|
||||
)
|
||||
|
||||
|
||||
public fun listOf<T>(): List<T> = throw Error()
|
||||
@@ -0,0 +1,35 @@
|
||||
class Bar : Throwable()
|
||||
|
||||
val bar: Bar = Bar()
|
||||
val bar1: Bar = Bar()
|
||||
|
||||
val bars: List<Bar> = listOf()
|
||||
val foos1: Array<Bar> = array()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val bar: Bar = Bar()
|
||||
val someVerySpecialBar: Bar = Bar()
|
||||
val barAnother: Bar = Bar()
|
||||
|
||||
val (bar1: Bar, bars: List<Bar>) = Pair(Bar(), listOf<Bar>())
|
||||
|
||||
try {
|
||||
for (bar2: Bar in listOf<Bar>()) {
|
||||
|
||||
}
|
||||
} catch (bar: Bar) {
|
||||
|
||||
}
|
||||
|
||||
fun local(bar: Bar) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun topLevel(bar: Bar) {
|
||||
|
||||
}
|
||||
|
||||
fun collectionLikes(bars: List<Array<Bar>>, foos: List<Map<Bar, Bar>>) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
data class Pair<out A, out B>(
|
||||
public val first: A,
|
||||
public val second: B
|
||||
)
|
||||
|
||||
|
||||
public fun listOf<T>(): List<T> = throw Error()
|
||||
@@ -0,0 +1,35 @@
|
||||
class Foo : Throwable()
|
||||
|
||||
val foo: Foo = Foo()
|
||||
val foo1: Foo = Foo()
|
||||
|
||||
val foos: List<Foo> = listOf()
|
||||
val foos1: Array<Foo> = array()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val foo: Foo = Foo()
|
||||
val someVerySpecialFoo: Foo = Foo()
|
||||
val fooAnother: Foo = Foo()
|
||||
|
||||
val (foo1: Foo, foos: List<Foo>) = Pair(Foo(), listOf<Foo>())
|
||||
|
||||
try {
|
||||
for (foo2: Foo in listOf<Foo>()) {
|
||||
|
||||
}
|
||||
} catch (foo: Foo) {
|
||||
|
||||
}
|
||||
|
||||
fun local(foo: Foo) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun topLevel(foo: Foo) {
|
||||
|
||||
}
|
||||
|
||||
fun collectionLikes(foos: List<Array<Foo>>, foos: List<Map<Foo, Foo>>) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "KOTLIN_CLASS",
|
||||
"classId": "/Foo",
|
||||
"oldName": "Foo",
|
||||
"newName": "Bar",
|
||||
"mainFile": "main.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user