Rename: Support labeled expressions
#KT-7107 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun test() {
|
||||
bar@ for (n in 1..10) {
|
||||
if (n == 5) continue@bar
|
||||
if (n > 8) break@bar
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun test() {
|
||||
foo@ for (n in 1..10) {
|
||||
if (n == 5) continue@foo
|
||||
if (n > 8) break@/*rename*/foo
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "bar"
|
||||
}
|
||||
Reference in New Issue
Block a user