Add "replace map.put with assignment" to J2K

Related to KT-21502
This commit is contained in:
Mikhail Glukhikh
2017-12-05 17:29:58 +03:00
parent 8c305a137f
commit a90e3c2e45
9 changed files with 58 additions and 47 deletions
@@ -6,5 +6,5 @@ class A {
}
fun foo() {
A().put<caret>(1, "foo")
A().<caret>put(1, "foo")
}
@@ -3,4 +3,4 @@
val map = mutableMapOf(42 to "foo")
fun foo() = map.put<caret>(60, "bar")
fun foo() = map.<caret>put(60, "bar")
@@ -1,5 +1,5 @@
// WITH_RUNTIME
fun foo(map: MutableMap<Int, String>) {
map.put<caret>(42, "foo")
map.<caret>put(42, "foo")
}
@@ -2,6 +2,6 @@
class MyMap() : HashMap<String, String>() {
init {
this.put<caret>("foo", "bar")
this.<caret>put("foo", "bar")
}
}
@@ -2,5 +2,5 @@
fun foo() {
val map = mutableMapOf(42 to "foo")
map.put<caret>(60, "bar")
map.<caret>put(60, "bar")
}
@@ -2,5 +2,5 @@
fun foo() {
var map = mutableMapOf(42 to "foo")
map.put<caret>(60, "bar")
map.<caret>put(60, "bar")
}