Rename: Initial support of naming conventions
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class A(val n: Int, val s: String, val o: Any) {
|
||||
fun component1(): Int = n
|
||||
fun component2(): String = s
|
||||
fun component3(): Any = o
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a = A(1, "2", Any())
|
||||
a.n
|
||||
a.component1()
|
||||
val (x, y, z) = a
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classFQN": "A",
|
||||
"oldName": "component1",
|
||||
"newName": "foo",
|
||||
"mainFile": "explicitComponentFunction.kt",
|
||||
"hint": "Naming conventions will be violated after rename"
|
||||
}
|
||||
Reference in New Issue
Block a user