Files
Christian Vonrüti d77149caca Support unwrapping parameters properly in Kotlin KTIJ-11687
- Top level call unwrapping
- Non-nested call unwrapping
- Delete receiver when unwrapping qualified call
- Support multi argument calls
- Allow caret on method name, paren, comma or whitespace
- Prefer parameter unwrapping over removal for top level function calls
- Fix strikethrough preview

closes https://github.com/JetBrains/intellij-community/pull/1996

GitOrigin-RevId: ae278ace872176ba46c8cac3e8df30b6428dbb0b
2022-07-20 15:25:37 +00:00

13 lines
142 B
Plaintext

// OPTION: 0
fun test() {
val i = 1
val test = Test()
foo(i<caret>)
}
fun foo(i: Int) {}
class Test {
fun qux(i: Int) = 1
}