Amend "Terminate preceding call with semicolon" quickfix

Quickfix wasn't aware of cases, when expression to be fixed
 is a part of parent call expression or dot-qualified expression.
 Incorrect position for extracting trailing lambdas led to broken
 formatting.

 #KT-34694 Fixed
This commit is contained in:
Pavel Kirpichenkov
2019-11-09 18:06:58 +03:00
parent 0f638db3e5
commit f1934fa49d
10 changed files with 196 additions and 29 deletions
@@ -0,0 +1,10 @@
// "Terminate preceding call with semicolon" "true"
fun doSomething() {}
fun Any.foo() {}
fun test() {
doSomething().foo()
// comment and formatting
{ doSomething()<caret> }()
}