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