Implement an intention converting several calls with same receiver to with/apply/run #KT-12183 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c2e5fc5215
commit
0e5603f644
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
<spot>a.run {
|
||||
setFoo(1)
|
||||
setBar(2)
|
||||
setBaz(3)
|
||||
}</spot>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
<spot>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 'run'
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user