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,11 @@
class A(val n: Int) {
fun foo(other: A): Int = n.compareTo(other.n)
}
fun test() {
A(0) foo A(1)
A(0).foo(A(1)) < 0
A(0).foo(A(1)) <= 0
A(0).foo(A(1)) > 0
A(0).foo(A(1)) >= 0
}
@@ -0,0 +1,11 @@
class A(val n: Int) {
fun compareTo(other: A): Int = n.compareTo(other.n)
}
fun test() {
A(0) compareTo A(1)
A(0) < A(1)
A(0) <= A(1)
A(0) > A(1)
A(0) >= A(1)
}
@@ -0,0 +1,7 @@
{
"type": "KOTLIN_FUNCTION",
"classFQN": "A",
"oldName": "compareTo",
"newName": "foo",
"mainFile": "compareTo.kt"
}