Add "Convert to also" intention

#KT-28699 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-12-14 19:10:20 +09:00
parent c1f75d2324
commit 6a4c6eacd7
38 changed files with 503 additions and 27 deletions
@@ -0,0 +1,7 @@
fun foo() {
<spot>val a = MyClass().also {
it.setFoo(1)
it.setBar(2)
it.setBaz(3)
}</spot>
}
@@ -0,0 +1,6 @@
fun foo() {
<spot>val a = MyClass()
a.setFoo(1)
a.setBar(2)
a.setBaz(3)</spot>
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts several calls with the same receiver to <b>also</b>.
</body>
</html>