Rename: Initial support of naming conventions

This commit is contained in:
Alexey Sedunov
2014-08-07 14:32:19 +04:00
parent d226a11c8e
commit 67606c55e7
53 changed files with 804 additions and 158 deletions
@@ -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
}
@@ -0,0 +1,8 @@
{
"type": "KOTLIN_FUNCTION",
"classFQN": "A",
"oldName": "component1",
"newName": "foo",
"mainFile": "explicitComponentFunction.kt",
"hint": "Naming conventions will be violated after rename"
}