Implement an intention converting several calls with same receiver to with/apply/run #KT-12183 Fixed

This commit is contained in:
shiraji
2017-02-04 09:03:39 +09:00
committed by Mikhail Glukhikh
parent c2e5fc5215
commit 0e5603f644
71 changed files with 1352 additions and 0 deletions
@@ -0,0 +1,7 @@
fun foo() {
<spot>val a = MyClass().apply {
a.setFoo(1)
a.setBar(2)
a.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 same receiver to 'apply'
</body>
</html>