Comment saver is more clever about comma's

This commit is contained in:
Valentin Kipyatkov
2015-05-26 14:44:11 +03:00
parent d3403dee1a
commit d5d1158e44
4 changed files with 44 additions and 4 deletions
@@ -0,0 +1,13 @@
// "Replace with 'newFun(p1, -1, p2, p3, -2)'" "true"
@deprecated("", ReplaceWith("newFun(p1, -1, p2, p3, -2)"))
fun oldFun(p1: Int, p2: Int, p3: Int){}
fun newFun(p1: Int, a: Int, p2: Int, p3: Int, b: Int){}
fun foo() {
<caret>oldFun(0, // 0
1, // 1
2 // 2
)
@@ -0,0 +1,13 @@
// "Replace with 'newFun(p1, -1, p2, p3, -2)'" "true"
@deprecated("", ReplaceWith("newFun(p1, -1, p2, p3, -2)"))
fun oldFun(p1: Int, p2: Int, p3: Int){}
fun newFun(p1: Int, a: Int, p2: Int, p3: Int, b: Int){}
fun foo() {
newFun(0, // 0
-1, 1, // 1
2, // 2
-2)