2 intentions for moving lambda functions;
moves lambda functions in function calls inside and outside of the
parenthesis: foo({ it }) <-> foo() { it }
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
<spot>bar(2, { it * 3 })</spot>
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
<spot>bar(2) { it * 3 }</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention moves a lambda expression inside parentheses
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user