diff --git a/compiler/testData/ir/irText/expressions/badBreakContinue.kt.txt b/compiler/testData/ir/irText/expressions/badBreakContinue.kt.txt index b056fc3aef9..4171a8d0714 100644 --- a/compiler/testData/ir/irText/expressions/badBreakContinue.kt.txt +++ b/compiler/testData/ir/irText/expressions/badBreakContinue.kt.txt @@ -4,14 +4,14 @@ fun test1() { } fun test2() { - while (true) { // BLOCK + L1@ while (true) { // BLOCK error("") /* ERROR EXPRESSION */ error("") /* ERROR EXPRESSION */ } } fun test3() { - while (true) { // BLOCK + L1@ while (true) { // BLOCK val lambda: Function0 = local fun (): Nothing { error("") /* ERROR EXPRESSION */ error("") /* ERROR EXPRESSION */ diff --git a/compiler/testData/ir/irText/expressions/breakContinue.kt.txt b/compiler/testData/ir/irText/expressions/breakContinue.kt.txt index 273c2cfe566..d7ebb7a1ef3 100644 --- a/compiler/testData/ir/irText/expressions/breakContinue.kt.txt +++ b/compiler/testData/ir/irText/expressions/breakContinue.kt.txt @@ -18,34 +18,34 @@ fun test1() { } fun test2() { - while (true) { // BLOCK - while (true) { // BLOCK - break - break + OUTER@ while (true) { // BLOCK + INNER@ while (true) { // BLOCK + break@INNER + break@OUTER } - break + break@OUTER } - while (true) { // BLOCK - while (true) { // BLOCK - continue - continue + OUTER@ while (true) { // BLOCK + INNER@ while (true) { // BLOCK + continue@INNER + continue@OUTER } - continue + continue@OUTER } } fun test3() { - while (true) { // BLOCK - while (true) { // BLOCK - break + L@ while (true) { // BLOCK + L@ while (true) { // BLOCK + break@L } - break + break@L } - while (true) { // BLOCK - while (true) { // BLOCK - continue + L@ while (true) { // BLOCK + L@ while (true) { // BLOCK + continue@L } - continue + continue@L } } diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt.txt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt.txt index 1fc4fd54d33..9d029d555c8 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt.txt @@ -1,6 +1,6 @@ fun test1(c: Boolean?) { - while (true) { // BLOCK - while ({ // BLOCK + L@ while (true) { // BLOCK + L2@ while ({ // BLOCK val tmp0_elvis_lhs: Boolean? = c when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> break @@ -11,8 +11,8 @@ fun test1(c: Boolean?) { } fun test2(c: Boolean?) { - while (true) { // BLOCK - while ({ // BLOCK + L@ while (true) { // BLOCK + L2@ while ({ // BLOCK val tmp0_elvis_lhs: Boolean? = c when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> continue @@ -23,7 +23,7 @@ fun test2(c: Boolean?) { } fun test3(ss: List?) { - while (true) { // BLOCK + L@ while (true) { // BLOCK { // BLOCK val tmp1_iterator: Iterator = { // BLOCK val tmp0_elvis_lhs: List? = ss @@ -32,7 +32,7 @@ fun test3(ss: List?) { true -> tmp0_elvis_lhs } }.iterator() - while (tmp1_iterator.hasNext()) { // BLOCK + L2@ while (tmp1_iterator.hasNext()) { // BLOCK val s: String = tmp1_iterator.next() } } @@ -40,7 +40,7 @@ fun test3(ss: List?) { } fun test4(ss: List?) { - while (true) { // BLOCK + L@ while (true) { // BLOCK { // BLOCK val tmp1_iterator: Iterator = { // BLOCK val tmp0_elvis_lhs: List? = ss @@ -49,7 +49,7 @@ fun test4(ss: List?) { true -> tmp0_elvis_lhs } }.iterator() - while (tmp1_iterator.hasNext()) { // BLOCK + L2@ while (tmp1_iterator.hasNext()) { // BLOCK val s: String = tmp1_iterator.next() } } @@ -58,14 +58,14 @@ fun test4(ss: List?) { fun test5() { var i: Int = 0 - while (true) { // BLOCK + Outer@ while (true) { // BLOCK { // BLOCK i = i.inc() i } /*~> Unit */ var j: Int = 0 { // BLOCK - do// COMPOSITE { + Inner@ do// COMPOSITE { { // BLOCK j = j.inc() j diff --git a/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt b/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt index 103f58c1e4d..2dbb6589b61 100644 --- a/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt +++ b/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt @@ -13,21 +13,21 @@ fun testForBreak1(ss: List) { fun testForBreak2(ss: List) { { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { // BLOCK + OUTER@ while (tmp0_iterator.hasNext()) { // BLOCK val s1: String = tmp0_iterator.next() { // BLOCK { // BLOCK val tmp1_iterator: Iterator = ss.iterator() - while (tmp1_iterator.hasNext()) { // BLOCK + INNER@ while (tmp1_iterator.hasNext()) { // BLOCK val s2: String = tmp1_iterator.next() { // BLOCK - break - break + break@OUTER + break@INNER break } } } - break + break@OUTER } } } @@ -48,21 +48,21 @@ fun testForContinue1(ss: List) { fun testForContinue2(ss: List) { { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { // BLOCK + OUTER@ while (tmp0_iterator.hasNext()) { // BLOCK val s1: String = tmp0_iterator.next() { // BLOCK { // BLOCK val tmp1_iterator: Iterator = ss.iterator() - while (tmp1_iterator.hasNext()) { // BLOCK + INNER@ while (tmp1_iterator.hasNext()) { // BLOCK val s2: String = tmp1_iterator.next() { // BLOCK - continue - continue + continue@OUTER + continue@INNER continue } } } - continue + continue@OUTER } } } diff --git a/compiler/testData/ir/irText/expressions/kt24804.kt.txt b/compiler/testData/ir/irText/expressions/kt24804.kt.txt index 4a437a80b86..ca84dff8a76 100644 --- a/compiler/testData/ir/irText/expressions/kt24804.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt24804.kt.txt @@ -5,16 +5,16 @@ inline fun foo(): Boolean { fun run(x: Boolean, y: Boolean): String { var z: Int = 10 { // BLOCK - do// COMPOSITE { + l2@ do// COMPOSITE { z = z.plus(other = 1) when { greater(arg0 = z, arg1 = 100) -> return "NOT_OK" } when { - x -> continue + x -> continue@l2 } when { - y -> continue + y -> continue@l2 } // } while (foo()) }