JetPsiFactory.createByPattern supports PsiChildRange as argument, used it in ConvertToForEachFunctionCallIntention
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
fun foo() {
|
||||
val list = 1..4
|
||||
|
||||
list.forEach { x ->// start of loop
|
||||
list.forEach { x ->
|
||||
// start of loop
|
||||
// comment 1
|
||||
var v = x + 1
|
||||
// comment 2
|
||||
|
||||
Reference in New Issue
Block a user