From fc5c674c609f4e2c4994a30a8fd49a533e4091a5 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Thu, 5 Nov 2020 23:40:21 +0300 Subject: [PATCH] [IR] update testdata --- ...orderingInDelegatingConstructorCall.kt.txt | 6 ++-- .../classes/delegatedImplementation.kt.txt | 2 +- .../testData/ir/irText/classes/enum.kt.txt | 2 +- .../lambdaInDataClassDefaultParameter.kt.txt | 2 +- .../classes/objectLiteralExpressions.kt.txt | 8 ++--- .../catchParameterInTopLevelProperty.kt.txt | 4 +-- .../localDelegatedProperties.kt.txt | 2 +- .../declarations/localVarInDoWhile.kt.txt | 2 +- .../parameters/useNextParamInLambda.kt.txt | 4 +-- .../ir/irText/declarations/typeAlias.kt.txt | 2 +- .../arrayAugmentedAssignment1.kt.txt | 6 ++-- .../arrayAugmentedAssignment2.kt.txt | 2 +- .../expressions/augmentedAssignment1.kt.txt | 10 +++--- .../expressions/augmentedAssignment2.kt.txt | 10 +++--- .../expressions/badBreakContinue.kt.txt | 8 ++--- .../ir/irText/expressions/bangbang.kt.txt | 2 +- .../irText/expressions/breakContinue.kt.txt | 24 ++++++------- .../breakContinueInLoopHeader.kt.txt | 32 ++++++++--------- .../expressions/breakContinueInWhen.kt.txt | 22 ++++++------ .../callWithReorderedArguments.kt.txt | 4 +-- .../boundInlineAdaptedReference.kt.txt | 2 +- .../caoWithAdaptationForSam.kt.txt | 14 ++++---- .../constructorWithAdaptedArguments.kt.txt | 4 +-- .../suspendConversion.kt.txt | 2 +- ...MemberReferenceWithAdaptedArguments.kt.txt | 4 +-- .../withAdaptedArguments.kt.txt | 2 +- .../withArgumentAdaptationAndReceiver.kt.txt | 10 +++--- .../withVarargViewedAsArray.kt.txt | 4 +-- .../expressions/catchParameterAccess.kt.txt | 4 +-- .../expressions/chainOfSafeCalls.kt.txt | 8 ++--- .../irText/expressions/coercionToUnit.kt.txt | 4 +-- .../complexAugmentedAssignment.kt.txt | 18 +++++----- .../ir/irText/expressions/dotQualified.kt.txt | 2 +- .../ir/irText/expressions/elvis.kt.txt | 10 +++--- .../exhaustiveWhenElseBranch.kt.txt | 24 ++++++------- .../expressions/extFunSafeInvoke.kt.txt | 2 +- .../nullableAnyAsIntToDouble.kt.txt | 2 +- .../nullableFloatingPointEqeq.kt.txt | 6 ++-- .../whenByFloatingPoint.kt.txt | 12 +++---- .../testData/ir/irText/expressions/for.kt.txt | 20 +++++------ .../expressions/forWithBreakContinue.kt.txt | 36 +++++++++---------- .../forWithImplicitReceivers.kt.txt | 10 +++--- .../funInterface/partialSam.kt.txt | 4 +-- .../samConversionInVarargsMixed.kt.txt | 2 +- .../samConversionsWithSmartCasts.kt.txt | 10 +++--- .../ir/irText/expressions/ifElseIf.kt.txt | 8 ++--- .../expressions/incrementDecrement.kt.txt | 32 ++++++++--------- .../javaSyntheticGenericPropertyAccess.kt.txt | 6 ++-- .../javaSyntheticPropertyAccess.kt.txt | 6 ++-- .../jvmStaticFieldReference.kt.txt | 2 +- .../ir/irText/expressions/kt16904.kt.txt | 4 +-- .../ir/irText/expressions/kt24804.kt.txt | 2 +- .../ir/irText/expressions/kt27933.kt.txt | 2 +- .../ir/irText/expressions/kt28456.kt.txt | 4 +-- .../ir/irText/expressions/kt28456b.kt.txt | 4 +-- .../ir/irText/expressions/kt30020.kt.txt | 6 ++-- .../ir/irText/expressions/kt30796.kt.txt | 24 ++++++------- .../ir/irText/expressions/kt36956.kt.txt | 2 +- .../ir/irText/expressions/lambdaInCAO.kt.txt | 4 +-- .../expressions/multipleThisReferences.kt.txt | 2 +- .../irText/expressions/objectReference.kt.txt | 2 +- .../irText/expressions/safeAssignment.kt.txt | 2 +- .../safeCallWithIncrementDecrement.kt.txt | 12 +++---- .../ir/irText/expressions/safeCalls.kt.txt | 12 +++---- .../sam/genericSamSmartcast.kt.txt | 2 +- .../sam/samConversionsWithSmartCasts.kt.txt | 12 +++---- .../setFieldWithImplicitCast.kt.txt | 2 +- ...pendConversionOnArbitraryExpression.kt.txt | 30 ++++++++-------- .../expressions/temporaryInInitBlock.kt.txt | 2 +- .../thisOfGenericOuterClass.kt.txt | 2 +- .../thisReferenceBeforeClassDeclared.kt.txt | 4 +-- .../ir/irText/expressions/throw.kt.txt | 2 +- .../ir/irText/expressions/tryCatch.kt.txt | 12 +++---- .../tryCatchWithImplicitCast.kt.txt | 4 +-- .../expressions/variableAsFunctionCall.kt.txt | 4 +-- .../ir/irText/expressions/when.kt.txt | 4 +-- .../expressions/whenCoercedToUnit.kt.txt | 2 +- .../ir/irText/expressions/whenReturn.kt.txt | 2 +- .../irText/expressions/whenReturnUnit.kt.txt | 2 +- .../expressions/whenUnusedExpression.kt.txt | 4 +-- .../whenWithSubjectVariable.kt.txt | 2 +- .../ir/irText/expressions/whileDoWhile.kt.txt | 22 ++++++------ .../ClashResolutionDescriptor.kt.txt | 8 ++--- .../irText/firProblems/DeepCopyIrTree.kt.txt | 6 ++-- .../firProblems/InnerClassInAnonymous.kt.txt | 2 +- .../ir/irText/firProblems/VarInInit.kt.txt | 2 +- .../irText/firProblems/candidateSymbol.kt.txt | 2 +- .../coercionToUnitForNestedWhen.kt.txt | 6 ++-- .../ir/irText/lambdas/localFunction.kt.txt | 2 +- .../irText/regressions/coercionInLoop.kt.txt | 4 +-- .../ir/irText/regressions/kt24114.kt.txt | 14 ++++---- .../castsInsideCoroutineInference.kt.txt | 4 +-- .../types/genericDelegatedDeepProperty.kt.txt | 6 ++-- .../enhancedNullabilityInForLoop.kt.txt | 32 ++++++++--------- 94 files changed, 354 insertions(+), 354 deletions(-) diff --git a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt.txt b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt.txt index 2710a340fb5b2..fca7a4de60015 100644 --- a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt.txt +++ b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt.txt @@ -20,7 +20,7 @@ open class Base { class Test1 : Base { constructor(xx: Int, yy: Int) /* primary */ { - { //BLOCK + { // BLOCK TODO("IrDelegatingConstructorCall") } /* InstanceInitializerCall */ @@ -34,7 +34,7 @@ class Test1 : Base { class Test2 : Base { constructor(xx: Int, yy: Int) { - { //BLOCK + { // BLOCK TODO("IrDelegatingConstructorCall") } /* InstanceInitializerCall */ @@ -42,7 +42,7 @@ class Test2 : Base { } constructor(xxx: Int, yyy: Int, a: Any) { - { //BLOCK + { // BLOCK TODO("IrDelegatingConstructorCall") } } diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt index 83accae49bc5e..a7165bb003703 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt @@ -50,7 +50,7 @@ interface IOther { } fun otherImpl(x0: String, y0: Int): IOther { - return { //BLOCK + return { // BLOCK local class : IOther { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/classes/enum.kt.txt b/compiler/testData/ir/irText/classes/enum.kt.txt index ab55bfd4ecb28..6ad8f99f2182d 100644 --- a/compiler/testData/ir/irText/classes/enum.kt.txt +++ b/compiler/testData/ir/irText/classes/enum.kt.txt @@ -131,7 +131,7 @@ enum class TestEnum6 : Enum { field = y get - TEST init = { //BLOCK + TEST init = { // BLOCK val tmp0_y: Int = f() val tmp1_x: Int = f() TODO("IrEnumConstructorCall") diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt index 4af7ccf6a7f9a..75a2bdf6f53e1 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt @@ -48,7 +48,7 @@ data class A { } data class B { - constructor(x: Any = { //BLOCK + constructor(x: Any = { // BLOCK local class { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt.txt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt.txt index d254b1ecea708..7e0a87fe7cfdb 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt.txt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt.txt @@ -6,7 +6,7 @@ interface IFoo { } val test1: Any - field = { //BLOCK + field = { // BLOCK local class { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -25,7 +25,7 @@ val test1: Any get val test2: IFoo - field = { //BLOCK + field = { // BLOCK local class : IFoo { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -68,7 +68,7 @@ class Outer { } fun test3(): Inner { - return { //BLOCK + return { // BLOCK local class : Inner { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -96,7 +96,7 @@ class Outer { } fun Outer.test4(): Inner { - return { //BLOCK + return { // BLOCK local class : Inner { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt.txt b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt.txt index 81a302db6ffc3..3ceb39a045342 100644 --- a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt.txt +++ b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt.txt @@ -1,7 +1,7 @@ val test: Unit - field = try { //BLOCK + field = try { // BLOCK } - catch (...) { //BLOCK + catch (...) { // BLOCK } get diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt.txt index c09352b6bbbf5..19fe4213191ee 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt.txt @@ -24,7 +24,7 @@ fun test2() { (value = 0) - { //BLOCK + { // BLOCK val tmp0: Int = () (value = tmp0.inc()) tmp0 diff --git a/compiler/testData/ir/irText/declarations/localVarInDoWhile.kt.txt b/compiler/testData/ir/irText/declarations/localVarInDoWhile.kt.txt index 0ba20a802ad0e..554937bf85b7f 100644 --- a/compiler/testData/ir/irText/declarations/localVarInDoWhile.kt.txt +++ b/compiler/testData/ir/irText/declarations/localVarInDoWhile.kt.txt @@ -1,5 +1,5 @@ fun foo() { - { //BLOCK + { // BLOCK do// COMPOSITE { val x: Int = 42 // } while (EQEQ(arg0 = x, arg1 = 42).not()) diff --git a/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt.txt b/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt.txt index 8d97fb2bef800..47a9dfdf77ec8 100644 --- a/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt.txt +++ b/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt.txt @@ -10,10 +10,10 @@ fun f(f1: Function0 = local fun (): String { fun box(): String { var result: String = "fail" - try { //BLOCK + try { // BLOCK f() /*~> Unit */ } - catch (...) { //BLOCK + catch (...) { // BLOCK result = "OK" } diff --git a/compiler/testData/ir/irText/declarations/typeAlias.kt.txt b/compiler/testData/ir/irText/declarations/typeAlias.kt.txt index 1a0b5a5c619cf..68d461e21a3db 100644 --- a/compiler/testData/ir/irText/declarations/typeAlias.kt.txt +++ b/compiler/testData/ir/irText/declarations/typeAlias.kt.txt @@ -1,6 +1,6 @@ typealias Test1 = String fun foo() { - { //BLOCK + { // BLOCK } } diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt.txt index 9d2b50ff744b2..33fe1816fe2bc 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt.txt @@ -24,7 +24,7 @@ class C { fun testVariable() { var x: IntArray = foo() - { //BLOCK + { // BLOCK val tmp0_array: IntArray = x val tmp1_index0: Int = 0 tmp0_array.set(index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).plus(other = 1)) @@ -32,7 +32,7 @@ fun testVariable() { } fun testCall() { - { //BLOCK + { // BLOCK val tmp0_array: IntArray = foo() val tmp1_index0: Int = bar() tmp0_array.set(index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).times(other = 2)) @@ -40,7 +40,7 @@ fun testCall() { } fun testMember(c: C) { - { //BLOCK + { // BLOCK val tmp0_array: IntArray = c.() val tmp1_index0: Int = 0 val tmp2: Int = tmp0_array.get(index = tmp1_index0) diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt.txt index 79450c07ee447..00549a2d611e3 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt.txt @@ -13,7 +13,7 @@ interface IB { } fun IB.test(a: IA) { - { //BLOCK + { // BLOCK val tmp0_array: IA = a val tmp1_index0: String = "" .set($receiver = tmp0_array, index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).plus(other = 42)) diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment1.kt.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment1.kt.txt index b7083314874e7..0552bd582aae6 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment1.kt.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment1.kt.txt @@ -13,19 +13,19 @@ fun testVariable() { } fun testProperty() { - { //BLOCK + { // BLOCK ( = ().plus(other = 1)) } - { //BLOCK + { // BLOCK ( = ().minus(other = 2)) } - { //BLOCK + { // BLOCK ( = ().times(other = 3)) } - { //BLOCK + { // BLOCK ( = ().div(other = 4)) } - { //BLOCK + { // BLOCK ( = ().rem(other = 5)) } } diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment2.kt.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment2.kt.txt index 7a7ef1f3ec7fa..afa5af875fd89 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment2.kt.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment2.kt.txt @@ -39,19 +39,19 @@ fun testVariable() { } fun testProperty() { - { //BLOCK + { // BLOCK plusAssign($receiver = (), s = "+=") } - { //BLOCK + { // BLOCK minusAssign($receiver = (), s = "-=") } - { //BLOCK + { // BLOCK timesAssign($receiver = (), s = "*=") } - { //BLOCK + { // BLOCK divAssign($receiver = (), s = "/=") } - { //BLOCK + { // BLOCK remAssign($receiver = (), s = "%=") } } diff --git a/compiler/testData/ir/irText/expressions/badBreakContinue.kt.txt b/compiler/testData/ir/irText/expressions/badBreakContinue.kt.txt index ed3662cbd10f8..c05774f4d11ee 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 + while (true) { // BLOCK error("") /* ERROR EXPRESSION */ error("") /* ERROR EXPRESSION */ } } fun test3() { - while (true) { //BLOCK + while (true) { // BLOCK val lambda: Function0 = local fun (): Nothing { error("") /* ERROR EXPRESSION */ error("") /* ERROR EXPRESSION */ @@ -21,9 +21,9 @@ fun test3() { } fun test4() { - while (error("") /* ERROR EXPRESSION */) { //BLOCK + while (error("") /* ERROR EXPRESSION */) { // BLOCK } - while (error("") /* ERROR EXPRESSION */) { //BLOCK + while (error("") /* ERROR EXPRESSION */) { // BLOCK } } diff --git a/compiler/testData/ir/irText/expressions/bangbang.kt.txt b/compiler/testData/ir/irText/expressions/bangbang.kt.txt index d81e5dd97e757..f23cea9dc9882 100644 --- a/compiler/testData/ir/irText/expressions/bangbang.kt.txt +++ b/compiler/testData/ir/irText/expressions/bangbang.kt.txt @@ -3,7 +3,7 @@ fun test1(a: Any?): Any { } fun test2(a: Any?): Int { - return CHECK_NOT_NULL(arg0 = { //BLOCK + return CHECK_NOT_NULL(arg0 = { // BLOCK val tmp0_safe_receiver: Any? = a when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/breakContinue.kt.txt b/compiler/testData/ir/irText/expressions/breakContinue.kt.txt index 4969dd48d799f..273c2cfe566b1 100644 --- a/compiler/testData/ir/irText/expressions/breakContinue.kt.txt +++ b/compiler/testData/ir/irText/expressions/breakContinue.kt.txt @@ -1,16 +1,16 @@ fun test1() { - while (true) { //BLOCK + while (true) { // BLOCK break } - { //BLOCK + { // BLOCK do// COMPOSITE { break // } while (true) } - while (true) { //BLOCK + while (true) { // BLOCK continue } - { //BLOCK + { // BLOCK do// COMPOSITE { continue // } while (true) @@ -18,15 +18,15 @@ fun test1() { } fun test2() { - while (true) { //BLOCK - while (true) { //BLOCK + while (true) { // BLOCK + while (true) { // BLOCK break break } break } - while (true) { //BLOCK - while (true) { //BLOCK + while (true) { // BLOCK + while (true) { // BLOCK continue continue } @@ -35,14 +35,14 @@ fun test2() { } fun test3() { - while (true) { //BLOCK - while (true) { //BLOCK + while (true) { // BLOCK + while (true) { // BLOCK break } break } - while (true) { //BLOCK - while (true) { //BLOCK + while (true) { // BLOCK + while (true) { // BLOCK continue } continue diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt.txt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt.txt index 5db7499dcaeed..1fc4fd54d33d6 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 + while (true) { // BLOCK + 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 + while (true) { // BLOCK + while ({ // BLOCK val tmp0_elvis_lhs: Boolean? = c when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> continue @@ -23,16 +23,16 @@ fun test2(c: Boolean?) { } fun test3(ss: List?) { - while (true) { //BLOCK - { //BLOCK - val tmp1_iterator: Iterator = { //BLOCK + while (true) { // BLOCK + { // BLOCK + val tmp1_iterator: Iterator = { // BLOCK val tmp0_elvis_lhs: List? = ss when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> continue true -> tmp0_elvis_lhs } }.iterator() - while (tmp1_iterator.hasNext()) { //BLOCK + while (tmp1_iterator.hasNext()) { // BLOCK val s: String = tmp1_iterator.next() } } @@ -40,16 +40,16 @@ fun test3(ss: List?) { } fun test4(ss: List?) { - while (true) { //BLOCK - { //BLOCK - val tmp1_iterator: Iterator = { //BLOCK + while (true) { // BLOCK + { // BLOCK + val tmp1_iterator: Iterator = { // BLOCK val tmp0_elvis_lhs: List? = ss when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> break true -> tmp0_elvis_lhs } }.iterator() - while (tmp1_iterator.hasNext()) { //BLOCK + while (tmp1_iterator.hasNext()) { // BLOCK val s: String = tmp1_iterator.next() } } @@ -58,15 +58,15 @@ fun test4(ss: List?) { fun test5() { var i: Int = 0 - while (true) { //BLOCK - { //BLOCK + while (true) { // BLOCK + { // BLOCK i = i.inc() i } /*~> Unit */ var j: Int = 0 - { //BLOCK + { // BLOCK do// COMPOSITE { - { //BLOCK + { // BLOCK j = j.inc() j } /*~> Unit */ diff --git a/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt.txt b/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt.txt index 4a82137af47d6..7af7d6a25a805 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt.txt @@ -1,11 +1,11 @@ fun testBreakFor() { val xs: IntArray = TODO("IrConstructorCall") var k: Int = 0 - { //BLOCK + { // BLOCK val tmp0_iterator: IntIterator = xs.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val x: Int = tmp0_iterator.next() - { //BLOCK + { // BLOCK when { greater(arg0 = k, arg1 = 2) -> break } @@ -16,7 +16,7 @@ fun testBreakFor() { fun testBreakWhile() { var k: Int = 0 - while (less(arg0 = k, arg1 = 10)) { //BLOCK + while (less(arg0 = k, arg1 = 10)) { // BLOCK when { greater(arg0 = k, arg1 = 2) -> break } @@ -25,7 +25,7 @@ fun testBreakWhile() { fun testBreakDoWhile() { var k: Int = 0 - { //BLOCK + { // BLOCK do// COMPOSITE { when { greater(arg0 = k, arg1 = 2) -> break @@ -37,11 +37,11 @@ fun testBreakDoWhile() { fun testContinueFor() { val xs: IntArray = TODO("IrConstructorCall") var k: Int = 0 - { //BLOCK + { // BLOCK val tmp0_iterator: IntIterator = xs.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val x: Int = tmp0_iterator.next() - { //BLOCK + { // BLOCK when { greater(arg0 = k, arg1 = 2) -> continue } @@ -52,7 +52,7 @@ fun testContinueFor() { fun testContinueWhile() { var k: Int = 0 - while (less(arg0 = k, arg1 = 10)) { //BLOCK + while (less(arg0 = k, arg1 = 10)) { // BLOCK when { greater(arg0 = k, arg1 = 2) -> continue } @@ -62,9 +62,9 @@ fun testContinueWhile() { fun testContinueDoWhile() { var k: Int = 0 var s: String = "" - { //BLOCK + { // BLOCK do// COMPOSITE { - { //BLOCK + { // BLOCK k = k.inc() k } /*~> Unit */ diff --git a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt.txt b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt.txt index 4919fc6ef7b15..e826599375ad8 100644 --- a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt.txt +++ b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt.txt @@ -19,12 +19,12 @@ fun reordered2(): Int { fun test() { foo(a = noReorder1(), b = noReorder2()) - { //BLOCK + { // BLOCK val tmp0_b: Int = reordered1() val tmp1_a: Int = reordered2() foo(a = tmp1_a, b = tmp0_b) } - { //BLOCK + { // BLOCK val tmp2_a: Int = reordered2() foo(a = tmp2_a, b = 1) } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt.txt index e1e655aeec158..11d91d981b046 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt.txt @@ -8,7 +8,7 @@ fun String.id(s: String = , vararg xs: Int): String { } fun test() { - foo(x = { //BLOCK + foo(x = { // BLOCK local fun String.id() { id($receiver = receiver, ) /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt.txt index 05d9093bfdb5d..b8d86b1f161f2 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt.txt @@ -55,7 +55,7 @@ fun withVararg(vararg xs: Int): Int { } fun test1() { - { //BLOCK + { // BLOCK val tmp0_array: A = A val tmp2_sam: IFoo = local fun withVararg(p0: Int) { withVararg(xs = [p0]) /*~> Unit */ @@ -66,7 +66,7 @@ fun test1() { } fun test2() { - { //BLOCK + { // BLOCK val tmp0_array: B = B val tmp2_sam: IFoo2 = local fun withVararg(p0: Int) { withVararg(xs = [p0]) /*~> Unit */ @@ -77,7 +77,7 @@ fun test2() { } fun test3(fn: Function1) { - { //BLOCK + { // BLOCK val tmp0_array: A = A val tmp2_sam: IFoo = fn /*-> IFoo */ set($receiver = tmp0_array, i = tmp2_sam, newValue = get($receiver = tmp0_array, i = tmp2_sam).plus(other = 1)) @@ -86,8 +86,8 @@ fun test3(fn: Function1) { fun test4(fn: Function1) { when { - fn is IFoo -> { //BLOCK - { //BLOCK + fn is IFoo -> { // BLOCK + { // BLOCK val tmp0_array: A = A val tmp1_index0: Function1 = fn set($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */, newValue = get($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */).plus(other = 1)) @@ -98,7 +98,7 @@ fun test4(fn: Function1) { fun test5(a: Any) { a as Function1 /*~> Unit */ - { //BLOCK + { // BLOCK val tmp0_array: A = A val tmp2_sam: IFoo = a /*as Function1<@ParameterName(...) Int, Unit> */ /*-> IFoo */ set($receiver = tmp0_array, i = tmp2_sam, newValue = get($receiver = tmp0_array, i = tmp2_sam).plus(other = 1)) @@ -108,7 +108,7 @@ fun test5(a: Any) { fun test6(a: Any) { a as Function1 /*~> Unit */ a as IFoo /*~> Unit */ - { //BLOCK + { // BLOCK val tmp0_array: A = A val tmp1_index0: Any = a set($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */, newValue = get($receiver = tmp0_array, i = tmp1_index0 /*as IFoo */).plus(other = 1)) diff --git a/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt.txt index f2c58b931047d..53498fc83f2c4 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt.txt @@ -46,7 +46,7 @@ fun testConstructor(): Any { } fun testInnerClassConstructor(outer: Outer): Any { - return use(fn = { //BLOCK + return use(fn = { // BLOCK local fun Outer.(p0: Int): Inner { return TODO("IrConstructorCall") } @@ -57,7 +57,7 @@ fun testInnerClassConstructor(outer: Outer): Any { } fun testInnerClassConstructorCapturingOuter(): Any { - return use(fn = { //BLOCK + return use(fn = { // BLOCK local fun Outer.(p0: Int): Inner { return TODO("IrConstructorCall") } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt.txt index 24cdb8da7dc9b..87421fecd5b65 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt.txt @@ -92,7 +92,7 @@ fun testWithDefaults() { } fun testWithBoundReceiver() { - useSuspend(fn = { //BLOCK + useSuspend(fn = { // BLOCK local suspend fun C.bar() { receiver.bar() } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt.txt index 7cfb59d2b7c6a..b704e5d316c88 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt.txt @@ -44,7 +44,7 @@ fun testUnbound() { } fun testBound(a: A) { - use2(fn = { //BLOCK + use2(fn = { // BLOCK local fun A.foo(p0: Int) { receiver.foo(xs = [p0]) /*~> Unit */ } @@ -55,7 +55,7 @@ fun testBound(a: A) { } fun testObject() { - use2(fn = { //BLOCK + use2(fn = { // BLOCK local fun Obj.foo(p0: Int) { receiver.foo(xs = [p0]) /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt.txt index 6638a71bbd2af..c2501fd68f7fd 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt.txt @@ -59,7 +59,7 @@ fun testCoercionToUnit() { } fun testImportedObjectMember(): String { - return use(fn = { //BLOCK + return use(fn = { // BLOCK local fun importedObjectMemberWithVarargs(p0: Int): String { return importedObjectMemberWithVarargs(xs = [p0]) } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt.txt index a81f4d2bffdaa..6c79c42a820c7 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt.txt @@ -14,7 +14,7 @@ class Host { } fun testImplicitThis() { - use(fn = { //BLOCK + use(fn = { // BLOCK local fun Host.withVararg(p0: Int) { receiver.withVararg(xs = [p0]) /*~> Unit */ } @@ -26,7 +26,7 @@ class Host { fun testBoundReceiverLocalVal() { val h: Host = TODO("IrConstructorCall") - use(fn = { //BLOCK + use(fn = { // BLOCK local fun Host.withVararg(p0: Int) { receiver.withVararg(xs = [p0]) /*~> Unit */ } @@ -38,7 +38,7 @@ class Host { fun testBoundReceiverLocalVar() { var h: Host = TODO("IrConstructorCall") - use(fn = { //BLOCK + use(fn = { // BLOCK local fun Host.withVararg(p0: Int) { receiver.withVararg(xs = [p0]) /*~> Unit */ } @@ -49,7 +49,7 @@ class Host { } fun testBoundReceiverParameter(h: Host) { - use(fn = { //BLOCK + use(fn = { // BLOCK local fun Host.withVararg(p0: Int) { receiver.withVararg(xs = [p0]) /*~> Unit */ } @@ -60,7 +60,7 @@ class Host { } fun testBoundReceiverExpression() { - use(fn = { //BLOCK + use(fn = { // BLOCK local fun Host.withVararg(p0: Int) { receiver.withVararg(xs = [p0]) /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt.txt b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt.txt index 7933bb1475f30..3ec8016a28293 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt.txt @@ -1,8 +1,8 @@ fun sum(vararg args: Int): Int { var result: Int = 0 - { //BLOCK + { // BLOCK val tmp0_iterator: IntIterator = args.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val arg: Int = tmp0_iterator.next() result = result.plus(other = arg) } diff --git a/compiler/testData/ir/irText/expressions/catchParameterAccess.kt.txt b/compiler/testData/ir/irText/expressions/catchParameterAccess.kt.txt index 5782f8d74c317..6b8a18927e061 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.kt.txt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.kt.txt @@ -1,8 +1,8 @@ fun test(f: Function0) { - return try { //BLOCK + return try { // BLOCK f.invoke() } - catch (...) { //BLOCK + catch (...) { // BLOCK throw e } diff --git a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt.txt b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt.txt index b90840074d2be..6597c23668d03 100644 --- a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt.txt +++ b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt.txt @@ -19,10 +19,10 @@ class C { } fun test(nc: C?): C? { - return { //BLOCK - val tmp3_safe_receiver: C? = { //BLOCK - val tmp2_safe_receiver: C? = { //BLOCK - val tmp1_safe_receiver: C? = { //BLOCK + return { // BLOCK + val tmp3_safe_receiver: C? = { // BLOCK + val tmp2_safe_receiver: C? = { // BLOCK + val tmp1_safe_receiver: C? = { // BLOCK val tmp0_safe_receiver: C? = nc when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt index 286dd825a1140..e29ccce9721c4 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt @@ -10,14 +10,14 @@ fun test2(mc: MutableCollection) { } fun test3() { - { //BLOCK + { // BLOCK val tmp0_safe_receiver: @FlexibleNullability PrintStream? = #out when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null true -> tmp0_safe_receiver /*!! PrintStream */.println(p0 = "Hello,") } } /*~> Unit */ - { //BLOCK + { // BLOCK val tmp1_safe_receiver: @FlexibleNullability PrintStream? = #out when { EQEQ(arg0 = tmp1_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt.txt index 905bb2523ee1d..d452608ed844c 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt.txt @@ -51,9 +51,9 @@ object X1 { fun test1(a: IntArray) { var i: Int = 0 - { //BLOCK + { // BLOCK val tmp1_array: IntArray = a - val tmp2_index0: Int = { //BLOCK + val tmp2_index0: Int = { // BLOCK val tmp0: Int = i i = tmp0.inc() tmp0 @@ -65,25 +65,25 @@ fun test1(a: IntArray) { } fun test2() { - { //BLOCK + { // BLOCK val tmp0_this: X1 = X1 - { //BLOCK + { // BLOCK val tmp1: Int = tmp0_this.() tmp0_this.( = tmp1.inc()) tmp1 } } /*~> Unit */ - { //BLOCK + { // BLOCK val tmp2_this: X2 = X2 - { //BLOCK + { // BLOCK val tmp3: Int = tmp2_this.() tmp2_this.( = tmp3.inc()) tmp3 } } /*~> Unit */ - { //BLOCK + { // BLOCK val tmp4_this: X3 = X3 - { //BLOCK + { // BLOCK val tmp5: Int = tmp4_this.() tmp4_this.( = tmp5.inc()) tmp5 @@ -116,7 +116,7 @@ object Host { } operator fun B.plusAssign(b: B) { - { //BLOCK + { // BLOCK val tmp0_this: B = tmp0_this.( = tmp0_this.().plus(other = b.())) } diff --git a/compiler/testData/ir/irText/expressions/dotQualified.kt.txt b/compiler/testData/ir/irText/expressions/dotQualified.kt.txt index 5302517c8b78f..a42eda1db6339 100644 --- a/compiler/testData/ir/irText/expressions/dotQualified.kt.txt +++ b/compiler/testData/ir/irText/expressions/dotQualified.kt.txt @@ -3,7 +3,7 @@ fun length(s: String): Int { } fun lengthN(s: String?): Int? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: String? = s when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/elvis.kt.txt b/compiler/testData/ir/irText/expressions/elvis.kt.txt index ab1ac410e8a5e..394c9f1788093 100644 --- a/compiler/testData/ir/irText/expressions/elvis.kt.txt +++ b/compiler/testData/ir/irText/expressions/elvis.kt.txt @@ -7,7 +7,7 @@ fun foo(): Any? { } fun test1(a: Any?, b: Any): Any { - return { //BLOCK + return { // BLOCK val tmp0_elvis_lhs: Any? = a when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> b @@ -17,7 +17,7 @@ fun test1(a: Any?, b: Any): Any { } fun test2(a: String?, b: Any): Any { - return { //BLOCK + return { // BLOCK val tmp0_elvis_lhs: String? = a when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> b @@ -33,7 +33,7 @@ fun test3(a: Any?, b: Any?): String { when { a !is String? -> return "" } - return { //BLOCK + return { // BLOCK val tmp0_elvis_lhs: Any? = a when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> b /*as String */ @@ -43,7 +43,7 @@ fun test3(a: Any?, b: Any?): String { } fun test4(x: Any): Any { - return { //BLOCK + return { // BLOCK val tmp0_elvis_lhs: Any? = () when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> x @@ -53,7 +53,7 @@ fun test4(x: Any): Any { } fun test5(x: Any): Any { - return { //BLOCK + return { // BLOCK val tmp0_elvis_lhs: Any? = foo() when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> x diff --git a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt index add11e0452e14..9104cd4927383 100644 --- a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt +++ b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt.txt @@ -20,7 +20,7 @@ enum class A : Enum { fun testVariableAssignment_throws(a: A) { val x: Int - { //BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> x = 11 @@ -30,7 +30,7 @@ fun testVariableAssignment_throws(a: A) { } fun testStatement_empty(a: A) { - { //BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ @@ -39,7 +39,7 @@ fun testStatement_empty(a: A) { } fun testParenthesized_throwsJvm(a: A) { - { //BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ @@ -48,7 +48,7 @@ fun testParenthesized_throwsJvm(a: A) { } fun testAnnotated_throwsJvm(a: A) { - { //BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ @@ -57,7 +57,7 @@ fun testAnnotated_throwsJvm(a: A) { } fun testExpression_throws(a: A): Int { - return { //BLOCK + return { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 @@ -69,8 +69,8 @@ fun testExpression_throws(a: A): Int { fun testIfTheElseStatement_empty(a: A, flag: Boolean) { when { flag -> 0 /*~> Unit */ - true -> { //BLOCK - { //BLOCK + true -> { // BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ @@ -83,8 +83,8 @@ fun testIfTheElseStatement_empty(a: A, flag: Boolean) { fun testIfTheElseParenthesized_throwsJvm(a: A, flag: Boolean) { when { flag -> 0 /*~> Unit */ - true -> { //BLOCK - { //BLOCK + true -> { // BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ @@ -97,8 +97,8 @@ fun testIfTheElseParenthesized_throwsJvm(a: A, flag: Boolean) { fun testIfTheElseAnnotated_throwsJvm(a: A, flag: Boolean) { when { flag -> 0 /*~> Unit */ - true -> { //BLOCK - { //BLOCK + true -> { // BLOCK + { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 /*~> Unit */ @@ -110,7 +110,7 @@ fun testIfTheElseAnnotated_throwsJvm(a: A, flag: Boolean) { fun testLambdaResultExpression_throws(a: A) { local fun (): Int { - return { //BLOCK + return { // BLOCK val tmp0_subject: A = a when { EQEQ(arg0 = tmp0_subject, arg1 = A) -> 1 diff --git a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt.txt b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt.txt index c2766260f4887..cde2bea701eb9 100644 --- a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt.txt +++ b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt.txt @@ -1,5 +1,5 @@ fun test(receiver: Any?, fn: @ExtensionFunctionType Function3): Unit? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: Any? = receiver when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt.txt index a12320e1b876f..38196c6f7df08 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt.txt @@ -1,6 +1,6 @@ fun test(x: Any?, y: Double): Boolean { return when { - x is Int -> less(arg0 = { //BLOCK + x is Int -> less(arg0 = { // BLOCK val tmp0_safe_receiver: Any? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt.txt index 2a66efd6bc5d9..0fc7eaf8fb006 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt.txt @@ -4,7 +4,7 @@ fun testDD(x: Double?, y: Double?): Boolean { fun testDF(x: Double?, y: Any?): Boolean { return when { - y is Float? -> ieee754equals(arg0 = x, arg1 = { //BLOCK + y is Float? -> ieee754equals(arg0 = x, arg1 = { // BLOCK val tmp0_safe_receiver: Any? = y when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -17,7 +17,7 @@ fun testDF(x: Double?, y: Any?): Boolean { fun testDI(x: Double?, y: Any?): Boolean { return when { - y is Int? -> ieee754equals(arg0 = x, arg1 = { //BLOCK + y is Int? -> ieee754equals(arg0 = x, arg1 = { // BLOCK val tmp0_safe_receiver: Any? = y when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -33,7 +33,7 @@ fun testDI2(x: Any?, y: Any?): Boolean { when { x is Int? -> y is Double true -> false - } -> ieee754equals(arg0 = { //BLOCK + } -> ieee754equals(arg0 = { // BLOCK val tmp0_safe_receiver: Any? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt index b44336eeca210..9d6bff99c7325 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt @@ -1,5 +1,5 @@ fun testSimple(x: Double): Int { - return { //BLOCK + return { // BLOCK val tmp0_subject: Double = x when { ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0 @@ -12,7 +12,7 @@ fun testSmartCastInWhenSubject(x: Any): Int { when { x !is Double -> return -1 } - return { //BLOCK + return { // BLOCK val tmp0_subject: Any = x when { ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0 @@ -25,7 +25,7 @@ fun testSmartCastInWhenCondition(x: Double, y: Any): Int { when { y !is Double -> return -1 } - return { //BLOCK + return { // BLOCK val tmp0_subject: Double = x when { ieee754equals(arg0 = tmp0_subject, arg1 = y /*as Double */) -> 0 @@ -35,7 +35,7 @@ fun testSmartCastInWhenCondition(x: Double, y: Any): Int { } fun testSmartCastInWhenConditionInBranch(x: Any): Int { - return { //BLOCK + return { // BLOCK val tmp0_subject: Any = x when { tmp0_subject is Double.not() -> -1 @@ -52,7 +52,7 @@ fun testSmartCastToDifferentTypes(x: Any, y: Any): Int { when { y !is Float -> return -1 } - return { //BLOCK + return { // BLOCK val tmp0_subject: Any = x when { ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = y /*as Float */.toDouble()) -> 0 @@ -66,7 +66,7 @@ fun foo(x: Double): Double { } fun testWithPrematureExitInConditionSubexpression(x: Any): Int { - return { //BLOCK + return { // BLOCK val tmp0_subject: Any = x when { EQEQ(arg0 = tmp0_subject, arg1 = foo(x = when { diff --git a/compiler/testData/ir/irText/expressions/for.kt.txt b/compiler/testData/ir/irText/expressions/for.kt.txt index a1ab4dfddbe77..0f2fc03ca992f 100644 --- a/compiler/testData/ir/irText/expressions/for.kt.txt +++ b/compiler/testData/ir/irText/expressions/for.kt.txt @@ -1,18 +1,18 @@ fun testEmpty(ss: List) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val s: String = tmp0_iterator.next() } } } fun testIterable(ss: List) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val s: String = tmp0_iterator.next() - { //BLOCK + { // BLOCK println(message = s) } } @@ -20,13 +20,13 @@ fun testIterable(ss: List) { } fun testDestructuring(pp: List>) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator> = pp.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val tmp1_loop_parameter: Pair = tmp0_iterator.next() val i: Int = tmp1_loop_parameter.component1() val s: String = tmp1_loop_parameter.component2() - { //BLOCK + { // BLOCK println(message = i) println(message = s) } @@ -35,9 +35,9 @@ fun testDestructuring(pp: List>) { } fun testRange() { - { //BLOCK + { // BLOCK val tmp0_iterator: IntIterator = 1.rangeTo(other = 10).iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val i: Int = tmp0_iterator.next() } } diff --git a/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt b/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt index 361ffee9399fe..103f58c1e4d9c 100644 --- a/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt +++ b/compiler/testData/ir/irText/expressions/forWithBreakContinue.kt.txt @@ -1,9 +1,9 @@ fun testForBreak1(ss: List) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val s: String = tmp0_iterator.next() - { //BLOCK + { // BLOCK break } } @@ -11,16 +11,16 @@ fun testForBreak1(ss: List) { } fun testForBreak2(ss: List) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val s1: String = tmp0_iterator.next() - { //BLOCK - { //BLOCK + { // BLOCK + { // BLOCK val tmp1_iterator: Iterator = ss.iterator() - while (tmp1_iterator.hasNext()) { //BLOCK + while (tmp1_iterator.hasNext()) { // BLOCK val s2: String = tmp1_iterator.next() - { //BLOCK + { // BLOCK break break break @@ -34,11 +34,11 @@ fun testForBreak2(ss: List) { } fun testForContinue1(ss: List) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val s: String = tmp0_iterator.next() - { //BLOCK + { // BLOCK continue } } @@ -46,16 +46,16 @@ fun testForContinue1(ss: List) { } fun testForContinue2(ss: List) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator = ss.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val s1: String = tmp0_iterator.next() - { //BLOCK - { //BLOCK + { // BLOCK + { // BLOCK val tmp1_iterator: Iterator = ss.iterator() - while (tmp1_iterator.hasNext()) { //BLOCK + while (tmp1_iterator.hasNext()) { // BLOCK val s2: String = tmp1_iterator.next() - { //BLOCK + { // BLOCK continue continue continue diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt.txt index 7cb41718f38ab..b2b23e39172b3 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt.txt @@ -37,9 +37,9 @@ interface IReceiver { } operator fun IntCell.next(): Int { - return { //BLOCK + return { // BLOCK val tmp0_this: IntCell = - { //BLOCK + { // BLOCK val tmp1: Int = tmp0_this.() tmp0_this.( = tmp1.dec()) tmp1 @@ -53,11 +53,11 @@ interface IReceiver { } fun IReceiver.test() { - { //BLOCK + { // BLOCK val tmp0_iterator: IntCell = .iterator($receiver = FiveTimes) - while (.hasNext($receiver = tmp0_iterator)) { //BLOCK + while (.hasNext($receiver = tmp0_iterator)) { // BLOCK val i: Int = .next($receiver = tmp0_iterator) - { //BLOCK + { // BLOCK println(message = i) } } diff --git a/compiler/testData/ir/irText/expressions/funInterface/partialSam.kt.txt b/compiler/testData/ir/irText/expressions/funInterface/partialSam.kt.txt index cca51d2739baa..9f09ca71bd91b 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/partialSam.kt.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/partialSam.kt.txt @@ -22,7 +22,7 @@ class J { } val fsi: Fn - field = { //BLOCK + field = { // BLOCK local class : Fn { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -45,7 +45,7 @@ val fsi: Fn get val fis: Fn - field = { //BLOCK + field = { // BLOCK local class : Fn { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt.txt index 2f043ee06e389..91714c6636232 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt.txt @@ -7,7 +7,7 @@ fun interface MyRunnable { fun test(a: Any, r: MyRunnable) { when { - a is MyRunnable -> { //BLOCK + a is MyRunnable -> { // BLOCK foo(rs = [ local fun () { return Unit } diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt.txt index a08314e70c312..163d4f2b02d36 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt.txt @@ -21,7 +21,7 @@ fun test0(a: T) where T : KRunnable, T : Function0 { fun test1(a: Function0) { when { - a is KRunnable -> { //BLOCK + a is KRunnable -> { // BLOCK run1(r = a /*as KRunnable */) } } @@ -34,7 +34,7 @@ fun test2(a: KRunnable) { fun test3(a: Function0) { when { - a is KRunnable -> { //BLOCK + a is KRunnable -> { // BLOCK run2(r1 = a /*as KRunnable */, r2 = a /*as KRunnable */) } } @@ -42,7 +42,7 @@ fun test3(a: Function0) { fun test4(a: Function0, b: Function0) { when { - a is KRunnable -> { //BLOCK + a is KRunnable -> { // BLOCK run2(r1 = a /*as KRunnable */, r2 = b /*-> KRunnable */) } } @@ -50,7 +50,7 @@ fun test4(a: Function0, b: Function0) { fun test5(a: Any) { when { - a is KRunnable -> { //BLOCK + a is KRunnable -> { // BLOCK run1(r = a /*as KRunnable */) } } @@ -58,7 +58,7 @@ fun test5(a: Any) { fun test5x(a: Any) { when { - a is KRunnable -> { //BLOCK + a is KRunnable -> { // BLOCK a as Function0 /*~> Unit */ run1(r = a /*as KRunnable */) } diff --git a/compiler/testData/ir/irText/expressions/ifElseIf.kt.txt b/compiler/testData/ir/irText/expressions/ifElseIf.kt.txt index 04dca45f626d7..158a5e08ddc5e 100644 --- a/compiler/testData/ir/irText/expressions/ifElseIf.kt.txt +++ b/compiler/testData/ir/irText/expressions/ifElseIf.kt.txt @@ -8,7 +8,7 @@ fun test(i: Int): Int { fun testEmptyBranches1(flag: Boolean) { when { - flag -> { //BLOCK + flag -> { // BLOCK } true -> true /*~> Unit */ } @@ -19,20 +19,20 @@ fun testEmptyBranches1(flag: Boolean) { fun testEmptyBranches2(flag: Boolean) { when { - flag -> { //BLOCK + flag -> { // BLOCK } true -> true /*~> Unit */ } when { flag -> true /*~> Unit */ - true -> { //BLOCK + true -> { // BLOCK } } } fun testEmptyBranches3(flag: Boolean) { when { - flag -> { //BLOCK + flag -> { // BLOCK } true -> true /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.kt.txt b/compiler/testData/ir/irText/expressions/incrementDecrement.kt.txt index 37c658b7a50ca..74c0b03838d72 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.kt.txt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.kt.txt @@ -9,11 +9,11 @@ val arr: IntArray fun testVarPrefix() { var x: Int = 0 - val x1: Int = { //BLOCK + val x1: Int = { // BLOCK x = x.inc() x } - val x2: Int = { //BLOCK + val x2: Int = { // BLOCK x = x.dec() x } @@ -21,12 +21,12 @@ fun testVarPrefix() { fun testVarPostfix() { var x: Int = 0 - val x1: Int = { //BLOCK + val x1: Int = { // BLOCK val tmp0: Int = x x = tmp0.inc() tmp0 } - val x2: Int = { //BLOCK + val x2: Int = { // BLOCK val tmp1: Int = x x = tmp1.dec() tmp1 @@ -34,14 +34,14 @@ fun testVarPostfix() { } fun testPropPrefix() { - val p1: Int = { //BLOCK - { //BLOCK + val p1: Int = { // BLOCK + { // BLOCK ( = ().inc()) () } } - val p2: Int = { //BLOCK - { //BLOCK + val p2: Int = { // BLOCK + { // BLOCK ( = ().dec()) () } @@ -49,15 +49,15 @@ fun testPropPrefix() { } fun testPropPostfix() { - val p1: Int = { //BLOCK - { //BLOCK + val p1: Int = { // BLOCK + { // BLOCK val tmp0: Int = () ( = tmp0.inc()) tmp0 } } - val p2: Int = { //BLOCK - { //BLOCK + val p2: Int = { // BLOCK + { // BLOCK ( = ().dec()) () } @@ -65,13 +65,13 @@ fun testPropPostfix() { } fun testArrayPrefix() { - val a1: Int = { //BLOCK + val a1: Int = { // BLOCK val tmp0_array: IntArray = () val tmp1_index0: Int = 0 tmp0_array.set(index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).inc()) tmp0_array.get(index = tmp1_index0) } - val a2: Int = { //BLOCK + val a2: Int = { // BLOCK val tmp2_array: IntArray = () val tmp3_index0: Int = 0 tmp2_array.set(index = tmp3_index0, value = tmp2_array.get(index = tmp3_index0).dec()) @@ -80,14 +80,14 @@ fun testArrayPrefix() { } fun testArrayPostfix() { - val a1: Int = { //BLOCK + val a1: Int = { // BLOCK val tmp0_array: IntArray = () val tmp1_index0: Int = 0 val tmp2: Int = tmp0_array.get(index = tmp1_index0) tmp0_array.set(index = tmp1_index0, value = tmp2.inc()) tmp2 } - val a2: Int = { //BLOCK + val a2: Int = { // BLOCK val tmp3_array: IntArray = () val tmp4_index0: Int = 0 val tmp5: Int = tmp3_array.get(index = tmp4_index0) diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropertyAccess.kt.txt b/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropertyAccess.kt.txt index 98c77cbdc76d4..0d4ca8768c59a 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropertyAccess.kt.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropertyAccess.kt.txt @@ -1,15 +1,15 @@ fun test(j: J) { j.getFoo() /*~> Unit */ j.setFoo(x = 1) - { //BLOCK + { // BLOCK val tmp0_receiver: J = j - { //BLOCK + { // BLOCK val tmp1: Int = tmp0_receiver.getFoo() tmp0_receiver.setFoo(x = tmp1.inc()) tmp1 } } /*~> Unit */ - { //BLOCK + { // BLOCK val tmp2_receiver: J = j tmp2_receiver.setFoo(x = tmp2_receiver.getFoo().plus(other = 1)) } diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.kt.txt b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.kt.txt index 5ba46d3caee4b..67c0f25235428 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.kt.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.kt.txt @@ -1,15 +1,15 @@ fun test(j: J) { j.getFoo() /*~> Unit */ j.setFoo(x = 1) - { //BLOCK + { // BLOCK val tmp0_receiver: J = j - { //BLOCK + { // BLOCK val tmp1: Int = tmp0_receiver.getFoo() tmp0_receiver.setFoo(x = tmp1.inc()) tmp1 } } /*~> Unit */ - { //BLOCK + { // BLOCK val tmp2_receiver: J = j tmp2_receiver.setFoo(x = tmp2_receiver.getFoo().plus(other = 1)) } diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt index 4ccf6c4bd1f56..06d44251ce8e3 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt @@ -20,7 +20,7 @@ class TestClass { val test: Int field = when { - true -> { //BLOCK + true -> { // BLOCK #out /*!! PrintStream */.println(p0 = "TestClass/test") 42 } diff --git a/compiler/testData/ir/irText/expressions/kt16904.kt.txt b/compiler/testData/ir/irText/expressions/kt16904.kt.txt index f3b9ea81a454a..955aaa204a803 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.kt.txt @@ -39,11 +39,11 @@ class Test1 : A { TODO("IrDelegatingConstructorCall") /* InstanceInitializerCall */ - { //BLOCK + { // BLOCK val tmp0_this: Test1 = tmp0_this.().plusAssign(x = 42) } - { //BLOCK + { // BLOCK val tmp1_this: Test1 = tmp1_this.( = tmp1_this.().plus(other = 42)) } diff --git a/compiler/testData/ir/irText/expressions/kt24804.kt.txt b/compiler/testData/ir/irText/expressions/kt24804.kt.txt index 55eef83097a8a..4a437a80b86e6 100644 --- a/compiler/testData/ir/irText/expressions/kt24804.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt24804.kt.txt @@ -4,7 +4,7 @@ inline fun foo(): Boolean { fun run(x: Boolean, y: Boolean): String { var z: Int = 10 - { //BLOCK + { // BLOCK do// COMPOSITE { z = z.plus(other = 1) when { diff --git a/compiler/testData/ir/irText/expressions/kt27933.kt.txt b/compiler/testData/ir/irText/expressions/kt27933.kt.txt index 93a84bbe32681..204ef061ef7f7 100644 --- a/compiler/testData/ir/irText/expressions/kt27933.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt27933.kt.txt @@ -1,7 +1,7 @@ fun box(): String { var r: String = "" when { - EQEQ(arg0 = r, arg1 = "").not() -> { //BLOCK + EQEQ(arg0 = r, arg1 = "").not() -> { // BLOCK } true -> r = r.plus(other = "O") } diff --git a/compiler/testData/ir/irText/expressions/kt28456.kt.txt b/compiler/testData/ir/irText/expressions/kt28456.kt.txt index 610133346bdd6..9d097e282a387 100644 --- a/compiler/testData/ir/irText/expressions/kt28456.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt28456.kt.txt @@ -22,7 +22,7 @@ fun testSimpleAssignment(a: A) { } fun testPostfixIncrement(a: A): Int { - return { //BLOCK + return { // BLOCK val tmp0_array: A = a val tmp1_index0: Int = 1 val tmp2_index1: Int = 2 @@ -33,7 +33,7 @@ fun testPostfixIncrement(a: A): Int { } fun testCompoundAssignment(a: A) { - { //BLOCK + { // BLOCK val tmp0_array: A = a val tmp1_index0: Int = 1 val tmp2_index1: Int = 2 diff --git a/compiler/testData/ir/irText/expressions/kt28456b.kt.txt b/compiler/testData/ir/irText/expressions/kt28456b.kt.txt index 07efb170f5876..19be20de821ab 100644 --- a/compiler/testData/ir/irText/expressions/kt28456b.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt28456b.kt.txt @@ -22,7 +22,7 @@ fun testSimpleAssignment(a: A) { } fun testPostfixIncrement(a: A): Int { - return { //BLOCK + return { // BLOCK val tmp0_array: A = a val tmp1_index0: Int = 1 val tmp2: Int = get($receiver = tmp0_array, i = tmp1_index0) @@ -32,7 +32,7 @@ fun testPostfixIncrement(a: A): Int { } fun testCompoundAssignment(a: A) { - { //BLOCK + { // BLOCK val tmp0_array: A = a val tmp1_index0: Int = 1 set($receiver = tmp0_array, i = tmp1_index0, v = get($receiver = tmp0_array, i = tmp1_index0).plus(other = 10)) diff --git a/compiler/testData/ir/irText/expressions/kt30020.kt.txt b/compiler/testData/ir/irText/expressions/kt30020.kt.txt index 4b7723bab3744..24d63966eb39f 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt30020.kt.txt @@ -9,21 +9,21 @@ interface X { } fun test(x: X, nx: X?) { - { //BLOCK + { // BLOCK val tmp0_this: X = x plusAssign($receiver = tmp0_this.(), element = 1) } plusAssign($receiver = x.f(), element = 2) plusAssign($receiver = x.() as MutableList, element = 3) plusAssign($receiver = x.f() as MutableList, element = 4) - plusAssign($receiver = CHECK_NOT_NULL>(arg0 = { //BLOCK + plusAssign($receiver = CHECK_NOT_NULL>(arg0 = { // BLOCK val tmp1_safe_receiver: X? = nx when { EQEQ(arg0 = tmp1_safe_receiver, arg1 = null) -> null true -> tmp1_safe_receiver.() } }), element = 5) - plusAssign($receiver = CHECK_NOT_NULL>(arg0 = { //BLOCK + plusAssign($receiver = CHECK_NOT_NULL>(arg0 = { // BLOCK val tmp2_safe_receiver: X? = nx when { EQEQ(arg0 = tmp2_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/kt30796.kt.txt b/compiler/testData/ir/irText/expressions/kt30796.kt.txt index 9af83d46b088e..12526d1473e6c 100644 --- a/compiler/testData/ir/irText/expressions/kt30796.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt30796.kt.txt @@ -3,17 +3,17 @@ fun magic(): T { } fun test(value: T, value2: T) { - val x1: Any = { //BLOCK + val x1: Any = { // BLOCK val tmp0_elvis_lhs: T = value when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> 42 true -> tmp0_elvis_lhs } } - val x2: Any = { //BLOCK + val x2: Any = { // BLOCK val tmp2_elvis_lhs: T = value when { - EQEQ(arg0 = tmp2_elvis_lhs, arg1 = null) -> { //BLOCK + EQEQ(arg0 = tmp2_elvis_lhs, arg1 = null) -> { // BLOCK val tmp1_elvis_lhs: T = value2 when { EQEQ(arg0 = tmp1_elvis_lhs, arg1 = null) -> 42 @@ -23,8 +23,8 @@ fun test(value: T, value2: T) { true -> tmp2_elvis_lhs } } - val x3: Any = { //BLOCK - val tmp4_elvis_lhs: T = { //BLOCK + val x3: Any = { // BLOCK + val tmp4_elvis_lhs: T = { // BLOCK val tmp3_elvis_lhs: T = value when { EQEQ(arg0 = tmp3_elvis_lhs, arg1 = null) -> value2 @@ -36,8 +36,8 @@ fun test(value: T, value2: T) { true -> tmp4_elvis_lhs } } - val x4: Any = { //BLOCK - val tmp6_elvis_lhs: T = { //BLOCK + val x4: Any = { // BLOCK + val tmp6_elvis_lhs: T = { // BLOCK val tmp5_elvis_lhs: T = value when { EQEQ(arg0 = tmp5_elvis_lhs, arg1 = null) -> value2 @@ -49,15 +49,15 @@ fun test(value: T, value2: T) { true -> tmp6_elvis_lhs } } - val x5: Any = { //BLOCK + val x5: Any = { // BLOCK val tmp7_elvis_lhs: Any? = magic() when { EQEQ(arg0 = tmp7_elvis_lhs, arg1 = null) -> 42 true -> tmp7_elvis_lhs } } - val x6: Any = { //BLOCK - val tmp9_elvis_lhs: Any? = { //BLOCK + val x6: Any = { // BLOCK + val tmp9_elvis_lhs: Any? = { // BLOCK val tmp8_elvis_lhs: T = value when { EQEQ(arg0 = tmp8_elvis_lhs, arg1 = null) -> magic() @@ -69,8 +69,8 @@ fun test(value: T, value2: T) { true -> tmp9_elvis_lhs } } - val x7: Any = { //BLOCK - val tmp11_elvis_lhs: Any? = { //BLOCK + val x7: Any = { // BLOCK + val tmp11_elvis_lhs: Any? = { // BLOCK val tmp10_elvis_lhs: Any? = magic() when { EQEQ(arg0 = tmp10_elvis_lhs, arg1 = null) -> value diff --git a/compiler/testData/ir/irText/expressions/kt36956.kt.txt b/compiler/testData/ir/irText/expressions/kt36956.kt.txt index 83ffb5581e13b..90da1570330d4 100644 --- a/compiler/testData/ir/irText/expressions/kt36956.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt36956.kt.txt @@ -26,7 +26,7 @@ val aFloat: A get val aInt: Float - field = { //BLOCK + field = { // BLOCK val tmp0_array: A = () val tmp1_index0: Int = 1 val tmp2: Float = tmp0_array.get(i = tmp1_index0) diff --git a/compiler/testData/ir/irText/expressions/lambdaInCAO.kt.txt b/compiler/testData/ir/irText/expressions/lambdaInCAO.kt.txt index b86ae164b7fe5..76d87b6809ba7 100644 --- a/compiler/testData/ir/irText/expressions/lambdaInCAO.kt.txt +++ b/compiler/testData/ir/irText/expressions/lambdaInCAO.kt.txt @@ -16,7 +16,7 @@ fun test1(a: Any) { } fun test2(a: Any) { - { //BLOCK + { // BLOCK val tmp0_array: Any = a val tmp1_index0: Function0 = local fun () { return Unit @@ -27,7 +27,7 @@ fun test2(a: Any) { } fun test3(a: Any) { - { //BLOCK + { // BLOCK val tmp0_array: Any = a val tmp1_index0: Function0 = local fun () { return Unit diff --git a/compiler/testData/ir/irText/expressions/multipleThisReferences.kt.txt b/compiler/testData/ir/irText/expressions/multipleThisReferences.kt.txt index a931c661a06e2..570c8ea6ce048 100644 --- a/compiler/testData/ir/irText/expressions/multipleThisReferences.kt.txt +++ b/compiler/testData/ir/irText/expressions/multipleThisReferences.kt.txt @@ -38,7 +38,7 @@ class Host { get fun Outer.test(): Inner { - return { //BLOCK + return { // BLOCK local class : Inner { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/expressions/objectReference.kt.txt b/compiler/testData/ir/irText/expressions/objectReference.kt.txt index ea15cb714008e..302e727b38aa9 100644 --- a/compiler/testData/ir/irText/expressions/objectReference.kt.txt +++ b/compiler/testData/ir/irText/expressions/objectReference.kt.txt @@ -57,7 +57,7 @@ object Z { get val anObject: Any - field = { //BLOCK + field = { // BLOCK local class { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.kt.txt b/compiler/testData/ir/irText/expressions/safeAssignment.kt.txt index d6b7db03636ad..775ce838759fe 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.kt.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.kt.txt @@ -16,7 +16,7 @@ class C { } fun test(nc: C?) { - { //BLOCK + { // BLOCK val tmp0_safe_receiver: C? = nc when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null /*~> Unit */ diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt.txt index 325d9e64596c7..dd5c708cf03d7 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt.txt @@ -20,7 +20,7 @@ var C?.p: Int } operator fun Int?.inc(): Int? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: Int? = when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -37,13 +37,13 @@ operator fun Int?.set(index: Int, value: Int) { } fun testProperty(nc: C?) { - { //BLOCK + { // BLOCK val tmp0_safe_receiver: C? = nc when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null - true -> { //BLOCK + true -> { // BLOCK val tmp1_receiver: C? = tmp0_safe_receiver - { //BLOCK + { // BLOCK val tmp2: Int = ($receiver = tmp1_receiver) ($receiver = tmp1_receiver, value = inc($receiver = tmp2)) tmp2 @@ -54,8 +54,8 @@ fun testProperty(nc: C?) { } fun testArrayAccess(nc: C?) { - { //BLOCK - val tmp1_array: Int? = { //BLOCK + { // BLOCK + val tmp1_array: Int? = { // BLOCK val tmp0_safe_receiver: C? = nc when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/safeCalls.kt.txt b/compiler/testData/ir/irText/expressions/safeCalls.kt.txt index 01a40661271f3..aa175df6b49ef 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.kt.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.kt.txt @@ -26,7 +26,7 @@ interface IHost { } fun test1(x: String?): Int? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: String? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -36,7 +36,7 @@ fun test1(x: String?): Int? { } fun test2(x: String?): Int? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: String? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -46,7 +46,7 @@ fun test2(x: String?): Int? { } fun test3(x: String?, y: Any?): Boolean? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: String? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -56,7 +56,7 @@ fun test3(x: String?, y: Any?): Boolean? { } fun test4(x: Ref?) { - { //BLOCK + { // BLOCK val tmp0_safe_receiver: Ref? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null /*~> Unit */ @@ -66,7 +66,7 @@ fun test4(x: Ref?) { } fun IHost.test5(s: String?): Int? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: String? = s when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null @@ -80,7 +80,7 @@ fun Int.foo(): Int { } fun box() { - { //BLOCK + { // BLOCK val tmp0_safe_receiver: Int = 42 when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/sam/genericSamSmartcast.kt.txt b/compiler/testData/ir/irText/expressions/sam/genericSamSmartcast.kt.txt index 1f3d46dbcf1f6..39514e81528bf 100644 --- a/compiler/testData/ir/irText/expressions/sam/genericSamSmartcast.kt.txt +++ b/compiler/testData/ir/irText/expressions/sam/genericSamSmartcast.kt.txt @@ -1,6 +1,6 @@ fun f(x: Any): String { when { - x is A<*> -> { //BLOCK + x is A<*> -> { // BLOCK return x /*as A */.call(block = local fun (y: Any?): @FlexibleNullability String? { return "OK" } diff --git a/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.kt.txt b/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.kt.txt index cc591c082b164..8fbbf0f2a7efe 100644 --- a/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.kt.txt +++ b/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.kt.txt @@ -1,6 +1,6 @@ fun test1(a: Function0) { when { - a is Runnable -> { //BLOCK + a is Runnable -> { // BLOCK runStatic(r = a /*as Runnable */) } } @@ -8,7 +8,7 @@ fun test1(a: Function0) { fun test2(a: Function0) { when { - a is Runnable -> { //BLOCK + a is Runnable -> { // BLOCK TODO("IrConstructorCall").run1(r = a /*as Runnable */) } } @@ -16,7 +16,7 @@ fun test2(a: Function0) { fun test3(a: Function0) { when { - a is Runnable -> { //BLOCK + a is Runnable -> { // BLOCK TODO("IrConstructorCall").run2(r1 = a /*as Runnable */, r2 = a /*as Runnable */) } } @@ -24,7 +24,7 @@ fun test3(a: Function0) { fun test4(a: Function0, b: Function0) { when { - a is Runnable -> { //BLOCK + a is Runnable -> { // BLOCK TODO("IrConstructorCall").run2(r1 = a /*-> @FlexibleNullability Runnable? */, r2 = b /*-> @FlexibleNullability Runnable? */) } } @@ -32,7 +32,7 @@ fun test4(a: Function0, b: Function0) { fun test5(a: Any) { when { - a is Runnable -> { //BLOCK + a is Runnable -> { // BLOCK TODO("IrConstructorCall").run1(r = a /*as Runnable */) } } @@ -40,7 +40,7 @@ fun test5(a: Any) { fun test5x(a: Any) { when { - a is Runnable -> { //BLOCK + a is Runnable -> { // BLOCK a as Function0 /*~> Unit */ TODO("IrConstructorCall").run1(r = a /*as Runnable */) } diff --git a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt index 8cd1a219d9f01..382a7e2aa378c 100644 --- a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt +++ b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt @@ -7,7 +7,7 @@ class Derived : Base { fun setValue(v: Any) { when { - v is String -> { //BLOCK + v is String -> { // BLOCK #value = v /*as String */ } } diff --git a/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt.txt b/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt.txt index aacf697d0fe00..19c59c3abcd21 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt.txt @@ -21,7 +21,7 @@ fun produceFun(): Function0 { } fun testSimple(fn: Function0) { - useSuspend(sfn = { //BLOCK + useSuspend(sfn = { // BLOCK local suspend fun Function0.suspendConversion0() { callee.invoke() } @@ -32,7 +32,7 @@ fun testSimple(fn: Function0) { } fun testSimpleNonVal() { - useSuspend(sfn = { //BLOCK + useSuspend(sfn = { // BLOCK local suspend fun Function0.suspendConversion0() { callee.invoke() } @@ -43,7 +43,7 @@ fun testSimpleNonVal() { } fun testExtAsExt(fn: @ExtensionFunctionType Function1) { - useSuspendExt(sfn = { //BLOCK + useSuspendExt(sfn = { // BLOCK local suspend fun @ExtensionFunctionType Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -54,7 +54,7 @@ fun testExtAsExt(fn: @ExtensionFunctionType Function1) { } fun testExtAsSimple(fn: @ExtensionFunctionType Function1) { - useSuspendArg(sfn = { //BLOCK + useSuspendArg(sfn = { // BLOCK local suspend fun Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -65,7 +65,7 @@ fun testExtAsSimple(fn: @ExtensionFunctionType Function1) { } fun testSimpleAsExt(fn: Function1) { - useSuspendExt(sfn = { //BLOCK + useSuspendExt(sfn = { // BLOCK local suspend fun @ExtensionFunctionType Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -76,7 +76,7 @@ fun testSimpleAsExt(fn: Function1) { } fun testSimpleAsSimpleT(fn: Function1) { - useSuspendArgT(sfn = { //BLOCK + useSuspendArgT(sfn = { // BLOCK local suspend fun Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -87,7 +87,7 @@ fun testSimpleAsSimpleT(fn: Function1) { } fun testSimpleAsExtT(fn: Function1) { - useSuspendExtT(sfn = { //BLOCK + useSuspendExtT(sfn = { // BLOCK local suspend fun @ExtensionFunctionType Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -98,7 +98,7 @@ fun testSimpleAsExtT(fn: Function1) { } fun testExtAsSimpleT(fn: @ExtensionFunctionType Function1) { - useSuspendArgT(sfn = { //BLOCK + useSuspendArgT(sfn = { // BLOCK local suspend fun Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -109,7 +109,7 @@ fun testExtAsSimpleT(fn: @ExtensionFunctionType Function1) { } fun testExtAsExtT(fn: @ExtensionFunctionType Function1) { - useSuspendExtT(sfn = { //BLOCK + useSuspendExtT(sfn = { // BLOCK local suspend fun @ExtensionFunctionType Function1.suspendConversion0(p0: Int) { callee.invoke(p1 = p0) } @@ -120,7 +120,7 @@ fun testExtAsExtT(fn: @ExtensionFunctionType Function1) { } fun testSimpleSAsSimpleT(fn: Function1) { - useSuspendArgT(sfn = { //BLOCK + useSuspendArgT(sfn = { // BLOCK local suspend fun Function1.suspendConversion0(p0: S) { callee.invoke(p1 = p0) } @@ -131,7 +131,7 @@ fun testSimpleSAsSimpleT(fn: Function1) { } fun testSimpleSAsExtT(fn: Function1) { - useSuspendExtT(sfn = { //BLOCK + useSuspendExtT(sfn = { // BLOCK local suspend fun @ExtensionFunctionType Function1.suspendConversion0(p0: S) { callee.invoke(p1 = p0) } @@ -142,7 +142,7 @@ fun testSimpleSAsExtT(fn: Function1) { } fun testExtSAsSimpleT(fn: @ExtensionFunctionType Function1) { - useSuspendArgT(sfn = { //BLOCK + useSuspendArgT(sfn = { // BLOCK local suspend fun Function1.suspendConversion0(p0: S) { callee.invoke(p1 = p0) } @@ -153,7 +153,7 @@ fun testExtSAsSimpleT(fn: @ExtensionFunctionType Function1) } fun testExtSAsExtT(fn: @ExtensionFunctionType Function1) { - useSuspendExtT(sfn = { //BLOCK + useSuspendExtT(sfn = { // BLOCK local suspend fun @ExtensionFunctionType Function1.suspendConversion0(p0: S) { callee.invoke(p1 = p0) } @@ -165,7 +165,7 @@ fun testExtSAsExtT(fn: @ExtensionFunctionType Function1) { fun testSmartCastWithSuspendConversion(a: Any) { a as Function0 /*~> Unit */ - useSuspend(sfn = { //BLOCK + useSuspend(sfn = { // BLOCK local suspend fun Function0.suspendConversion0() { callee.invoke() } @@ -178,7 +178,7 @@ fun testSmartCastWithSuspendConversion(a: Any) { fun testSmartCastOnVarWithSuspendConversion(a: Any) { var b: Any = a b as Function0 /*~> Unit */ - useSuspend(sfn = { //BLOCK + useSuspend(sfn = { // BLOCK local suspend fun Function0.suspendConversion0() { callee.invoke() } diff --git a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt index 9247da77c6cf1..380fc2d7a00c8 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt @@ -9,7 +9,7 @@ class C { get init { - #s = { //BLOCK + #s = { // BLOCK val tmp0_safe_receiver: Any? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt.txt b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt.txt index 5aa5c99dbefc6..8da74d6a5a801 100644 --- a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt.txt +++ b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt.txt @@ -31,7 +31,7 @@ class Outer { } fun Outer.test(): Inner { - return { //BLOCK + return { // BLOCK local class : Inner { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt.txt b/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt.txt index 160498490c375..fb28868a546f5 100644 --- a/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt.txt +++ b/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt.txt @@ -1,5 +1,5 @@ fun WithCompanion.test() { - val test1: = { //BLOCK + val test1: = { // BLOCK local class : WithCompanion { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -15,7 +15,7 @@ fun WithCompanion.test() { TODO("IrConstructorCall") } - val test2: = { //BLOCK + val test2: = { // BLOCK local class : WithCompanion { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/expressions/throw.kt.txt b/compiler/testData/ir/irText/expressions/throw.kt.txt index ab082bfb92745..fdd105381529a 100644 --- a/compiler/testData/ir/irText/expressions/throw.kt.txt +++ b/compiler/testData/ir/irText/expressions/throw.kt.txt @@ -4,7 +4,7 @@ fun test1() { fun testImplicitCast(a: Any) { when { - a is Throwable -> { //BLOCK + a is Throwable -> { // BLOCK throw a /*as Throwable */ } } diff --git a/compiler/testData/ir/irText/expressions/tryCatch.kt.txt b/compiler/testData/ir/irText/expressions/tryCatch.kt.txt index 20dc663e17b95..999a57277cc58 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.kt.txt +++ b/compiler/testData/ir/irText/expressions/tryCatch.kt.txt @@ -1,25 +1,25 @@ fun test1() { - try { //BLOCK + try { // BLOCK println() } - catch (...) { //BLOCK + catch (...) { // BLOCK println() } - finally { //BLOCK + finally { // BLOCK println() } } fun test2(): Int { - return try { //BLOCK + return try { // BLOCK println() 42 } - catch (...) { //BLOCK + catch (...) { // BLOCK println() 24 } - finally { //BLOCK + finally { // BLOCK println() 555 /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt.txt b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt.txt index f629a1d3fc98f..9dd92f483db65 100644 --- a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt.txt +++ b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt.txt @@ -2,10 +2,10 @@ fun testImplicitCast(a: Any) { when { a !is String -> return Unit } - val t: String = try { //BLOCK + val t: String = try { // BLOCK a } /*as String */ - catch (...) { //BLOCK + catch (...) { // BLOCK "" } diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt.txt index 6ee5073ed4e2c..a60aecfe3c1fe 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt.txt @@ -18,8 +18,8 @@ fun test3(): String { } fun test4(ns: String?): String? { - return { //BLOCK - val tmp1_safe_receiver: Function0? = { //BLOCK + return { // BLOCK + val tmp1_safe_receiver: Function0? = { // BLOCK val tmp0_safe_receiver: String? = ns when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/expressions/when.kt.txt b/compiler/testData/ir/irText/expressions/when.kt.txt index d1d468710601e..74e681094a3db 100644 --- a/compiler/testData/ir/irText/expressions/when.kt.txt +++ b/compiler/testData/ir/irText/expressions/when.kt.txt @@ -11,7 +11,7 @@ object A { } fun testWithSubject(x: Any?): String { - return { //BLOCK + return { // BLOCK val tmp0_subject: Any? = x when { EQEQ(arg0 = tmp0_subject, arg1 = null) -> "null" @@ -36,7 +36,7 @@ fun test(x: Any?): String { } fun testComma(x: Int): String { - return { //BLOCK + return { // BLOCK val tmp0_subject: Int = x when { when { diff --git a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt.txt b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt.txt index f43dc7c7d667d..efb7668476611 100644 --- a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt.txt +++ b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt.txt @@ -1,5 +1,5 @@ fun foo(x: Int) { - { //BLOCK + { // BLOCK val tmp0_subject: Int = x when { EQEQ(arg0 = tmp0_subject, arg1 = 0) -> 0 /*~> Unit */ diff --git a/compiler/testData/ir/irText/expressions/whenReturn.kt.txt b/compiler/testData/ir/irText/expressions/whenReturn.kt.txt index 0a6b0fd9593fb..aeb3926d9f146 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.kt.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.kt.txt @@ -1,5 +1,5 @@ fun toString(grade: String): String { - { //BLOCK + { // BLOCK val tmp0_subject: String = grade when { EQEQ(arg0 = tmp0_subject, arg1 = "A") -> return "Excellent" diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt.txt b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt.txt index cf685aacbea16..f4137c0011897 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt.txt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt.txt @@ -3,7 +3,7 @@ fun run(block: Function0) { fun branch(x: Int) { return run(block = local fun () { - { //BLOCK + { // BLOCK val tmp0_subject: Int = x when { EQEQ(arg0 = tmp0_subject, arg1 = 1) -> TODO(reason = "1") diff --git a/compiler/testData/ir/irText/expressions/whenUnusedExpression.kt.txt b/compiler/testData/ir/irText/expressions/whenUnusedExpression.kt.txt index 48b6c1f32c2a1..baed6e41583f6 100644 --- a/compiler/testData/ir/irText/expressions/whenUnusedExpression.kt.txt +++ b/compiler/testData/ir/irText/expressions/whenUnusedExpression.kt.txt @@ -1,7 +1,7 @@ fun test(b: Boolean, i: Int) { when { - b -> { //BLOCK - { //BLOCK + b -> { // BLOCK + { // BLOCK val tmp0_subject: Int = i when { EQEQ(arg0 = tmp0_subject, arg1 = 0) -> 1 /*~> Unit */ diff --git a/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt.txt b/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt.txt index 276726d19f6f7..5fe9c6b4c0404 100644 --- a/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt.txt +++ b/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt.txt @@ -3,7 +3,7 @@ fun foo(): Any { } fun test(): Int { - return { //BLOCK + return { // BLOCK val y: Any = foo() when { EQEQ(arg0 = y, arg1 = 42) -> 1 diff --git a/compiler/testData/ir/irText/expressions/whileDoWhile.kt.txt b/compiler/testData/ir/irText/expressions/whileDoWhile.kt.txt index ffe8dac5c3629..46212964887f1 100644 --- a/compiler/testData/ir/irText/expressions/whileDoWhile.kt.txt +++ b/compiler/testData/ir/irText/expressions/whileDoWhile.kt.txt @@ -1,31 +1,31 @@ fun test() { var x: Int = 0 while (less(arg0 = x, arg1 = 0)) - while (less(arg0 = x, arg1 = 5)) { //BLOCK + while (less(arg0 = x, arg1 = 5)) { // BLOCK val tmp0: Int = x x = tmp0.inc() tmp0 } /*~> Unit */ - while (less(arg0 = x, arg1 = 10)) { //BLOCK - { //BLOCK + while (less(arg0 = x, arg1 = 10)) { // BLOCK + { // BLOCK val tmp1: Int = x x = tmp1.inc() tmp1 } /*~> Unit */ } - { //BLOCK + { // BLOCK do while (less(arg0 = x, arg1 = 0)) } - { //BLOCK - do{ //BLOCK + { // BLOCK + do{ // BLOCK val tmp2: Int = x x = tmp2.inc() tmp2 } /*~> Unit */ while (less(arg0 = x, arg1 = 15)) } - { //BLOCK + { // BLOCK do// COMPOSITE { - { //BLOCK + { // BLOCK val tmp3: Int = x x = tmp3.inc() tmp3 @@ -37,10 +37,10 @@ fun test() { fun testSmartcastInCondition() { val a: Any? = null when { - a is Boolean -> { //BLOCK - while (a /*as Boolean */) { //BLOCK + a is Boolean -> { // BLOCK + while (a /*as Boolean */) { // BLOCK } - { //BLOCK + { // BLOCK do// COMPOSITE { // } while (a /*as Boolean */) } diff --git a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.kt.txt b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.kt.txt index 51444e6a76f7a..3964e87a4cd5a 100644 --- a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.kt.txt +++ b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.kt.txt @@ -57,12 +57,12 @@ private val registrationMap: HashMap private get fun resolveClashesIfAny(container: ComponentContainer, clashResolvers: List>) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator> = clashResolvers.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val resolver: PlatformExtensionsClashResolver<*> = tmp0_iterator.next() - { //BLOCK - val clashedComponents: Collection = { //BLOCK + { // BLOCK + val clashedComponents: Collection = { // BLOCK val tmp1_elvis_lhs: Collection? = ().get(key = resolver.()) as? Collection when { EQEQ(arg0 = tmp1_elvis_lhs, arg1 = null) -> continue diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt.txt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt.txt index ef5e95b41a714..dd44f5ebe9288 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt.txt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt.txt @@ -65,13 +65,13 @@ class DeepCopyIrTreeWithSymbols { } )) withinScope($receiver = .(), irTypeParametersContainer = , fn = local fun () { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator> = zip($receiver = .(), other = other.()).iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val tmp1_loop_parameter: Pair = tmp0_iterator.next() val thisTypeParameter: IrTypeParameter = tmp1_loop_parameter.component1() val otherTypeParameter: IrTypeParameter = tmp1_loop_parameter.component2() - { //BLOCK + { // BLOCK mapTo>($receiver = otherTypeParameter.(), destination = thisTypeParameter.(), transform = local fun (it: IrType): IrType { return .().remapType(type = it) } diff --git a/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt.txt b/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt.txt index ac1758bf056b5..2e326ce32daca 100644 --- a/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt.txt +++ b/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt.txt @@ -1,5 +1,5 @@ fun box(): String { - val obj: = { //BLOCK + val obj: = { // BLOCK local class { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/firProblems/VarInInit.kt.txt b/compiler/testData/ir/irText/firProblems/VarInInit.kt.txt index b0a0634a3c694..fe7198ef8ed6e 100644 --- a/compiler/testData/ir/irText/firProblems/VarInInit.kt.txt +++ b/compiler/testData/ir/irText/firProblems/VarInInit.kt.txt @@ -12,7 +12,7 @@ class Some { init { when { - less(arg0 = .(), arg1 = 0) -> { //BLOCK + less(arg0 = .(), arg1 = 0) -> { // BLOCK .( = 0) } } diff --git a/compiler/testData/ir/irText/firProblems/candidateSymbol.kt.txt b/compiler/testData/ir/irText/firProblems/candidateSymbol.kt.txt index 30d819580f8dd..d3f666afc6703 100644 --- a/compiler/testData/ir/irText/firProblems/candidateSymbol.kt.txt +++ b/compiler/testData/ir/irText/firProblems/candidateSymbol.kt.txt @@ -60,7 +60,7 @@ fun foo(candidate: Candidate) { when { me is FirCallableMemberDeclaration<*> -> EQEQ(arg0 = me /*as FirCallableMemberDeclaration> */.(), arg1 = null).not() true -> false - } -> { //BLOCK + } -> { // BLOCK } } } diff --git a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.kt.txt b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.kt.txt index 8f3c59033f7c2..f9bd364c41bd8 100644 --- a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.kt.txt +++ b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.kt.txt @@ -3,7 +3,7 @@ private const val BACKSLASH: Char private get private fun Reader.nextChar(): Char? { - return { //BLOCK + return { // BLOCK val tmp0_safe_receiver: Int? = takeUnless($receiver = .read(), predicate = local fun (it: Int): Boolean { return EQEQ(arg0 = it, arg1 = -1) } @@ -20,9 +20,9 @@ fun Reader.consumeRestOfQuotedSequence(sb: StringBuilder, quote: Char) { while (when { EQEQ(arg0 = ch, arg1 = null).not() -> EQEQ(arg0 = ch, arg1 = quote).not() true -> false - }) { //BLOCK + }) { // BLOCK when { - EQEQ(arg0 = ch, arg1 = ()) -> { //BLOCK + EQEQ(arg0 = ch, arg1 = ()) -> { // BLOCK val tmp0_safe_receiver: Char? = nextChar($receiver = ) when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/lambdas/localFunction.kt.txt b/compiler/testData/ir/irText/lambdas/localFunction.kt.txt index f65d2beb7d1f5..2824390cd8242 100644 --- a/compiler/testData/ir/irText/lambdas/localFunction.kt.txt +++ b/compiler/testData/ir/irText/lambdas/localFunction.kt.txt @@ -1,7 +1,7 @@ fun outer() { var x: Int = 0 local fun local() { - { //BLOCK + { // BLOCK val tmp0: Int = x x = tmp0.inc() tmp0 diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.kt.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.kt.txt index c748f81b1782b..fab7b0505663f 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.kt.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.kt.txt @@ -2,12 +2,12 @@ fun box(): String { val a: DoubleArray = TODO("IrConstructorCall") val x: DoubleIterator = a.iterator() var i: Int = 0 - while (x.hasNext()) { //BLOCK + while (x.hasNext()) { // BLOCK when { ieee754equals(arg0 = a.get(index = i), arg1 = x.next()).not() -> return "Fail " + i } - { //BLOCK + { // BLOCK val tmp0: Int = i i = tmp0.inc() tmp0 diff --git a/compiler/testData/ir/irText/regressions/kt24114.kt.txt b/compiler/testData/ir/irText/regressions/kt24114.kt.txt index 53addefba7fa9..7215c3bba5371 100644 --- a/compiler/testData/ir/irText/regressions/kt24114.kt.txt +++ b/compiler/testData/ir/irText/regressions/kt24114.kt.txt @@ -7,12 +7,12 @@ fun two(): Int { } fun test1(): Int { - while (true) { //BLOCK - { //BLOCK + while (true) { // BLOCK + { // BLOCK val tmp0_subject: Int = one() when { - EQEQ(arg0 = tmp0_subject, arg1 = 1) -> { //BLOCK - { //BLOCK + EQEQ(arg0 = tmp0_subject, arg1 = 1) -> { // BLOCK + { // BLOCK val tmp1_subject: Int = two() when { EQEQ(arg0 = tmp1_subject, arg1 = 2) -> return 2 @@ -26,11 +26,11 @@ fun test1(): Int { } fun test2(): Int { - while (true) { //BLOCK - { //BLOCK + while (true) { // BLOCK + { // BLOCK val tmp0_subject: Int = one() when { - EQEQ(arg0 = tmp0_subject, arg1 = 1) -> { //BLOCK + EQEQ(arg0 = tmp0_subject, arg1 = 1) -> { // BLOCK val tmp1_subject: Int = two() when { EQEQ(arg0 = tmp1_subject, arg1 = 2) -> return 2 diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt index 41a3a2945792b..60879c7cacd46 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt.txt @@ -38,7 +38,7 @@ private fun CoroutineScope.asFairChannel(flow: Flow<*>): ReceiveChannel { return produce($receiver = , block = local suspend fun ProducerScope.() { val channel: ChannelCoroutine = .() as ChannelCoroutine collect($receiver = flow, action = local suspend fun (value: Any?) { - return channel.sendFair(element = { //BLOCK + return channel.sendFair(element = { // BLOCK val tmp0_elvis_lhs: Any? = value when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> TODO("IrConstructorCall") @@ -54,7 +54,7 @@ private fun CoroutineScope.asFairChannel(flow: Flow<*>): ReceiveChannel { private fun CoroutineScope.asChannel(flow: Flow<*>): ReceiveChannel { return produce($receiver = , block = local suspend fun ProducerScope.() { collect($receiver = flow, action = local suspend fun (value: Any?) { - return .().send(e = { //BLOCK + return .().send(e = { // BLOCK val tmp0_elvis_lhs: Any? = value when { EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> TODO("IrConstructorCall") diff --git a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt index 90607b2195279..b8676199a9ced 100644 --- a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt +++ b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt @@ -81,7 +81,7 @@ class P { } val Value>.additionalText: P /* by */ - field = { //BLOCK + field = { // BLOCK local class : IDelegate1>, P> { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -98,7 +98,7 @@ val Value>.additionalText: P /* by */ } private val Value>.deepO: Any? /* by */ - field = { //BLOCK + field = { // BLOCK local class : IDelegate1>, Any?> { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") @@ -131,7 +131,7 @@ val Value>.additionalText: P /* by */ } private val Value>.deepK: Any? /* by */ - field = { //BLOCK + field = { // BLOCK local class : IDelegate1>, Any?> { constructor() /* primary */ { TODO("IrDelegatingConstructorCall") diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt index d8965c05dcc8a..26b9674931d10 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt @@ -2,24 +2,24 @@ fun use(s: P) { } fun testForInListUnused() { - { //BLOCK + { // BLOCK val tmp0_iterator: MutableIterator<@NotNull(...) @EnhancedNullability P> = listOfNotNull() /*!! List<@NotNull(...) @EnhancedNullability P> */ /*as MutableList<*> */.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val x: @NotNull(...) @EnhancedNullability P = tmp0_iterator.next() - { //BLOCK + { // BLOCK } } } } fun testForInListDestructured() { - { //BLOCK + { // BLOCK val tmp0_iterator: MutableIterator<@NotNull(...) @EnhancedNullability P> = listOfNotNull() /*!! List<@NotNull(...) @EnhancedNullability P> */ /*as MutableList<*> */.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val tmp1_loop_parameter: @NotNull(...) @EnhancedNullability P = tmp0_iterator.next() val x: Int = tmp1_loop_parameter /*!! @NotNull(...) P */.component1() val y: Int = tmp1_loop_parameter /*!! @NotNull(...) P */.component2() - { //BLOCK + { // BLOCK } } } @@ -27,28 +27,28 @@ fun testForInListDestructured() { fun testDesugaredForInList() { val iterator: MutableIterator<@NotNull(...) @EnhancedNullability P> = listOfNotNull() /*!! List<@NotNull(...) @EnhancedNullability P> */ /*as MutableList<*> */.iterator() - while (iterator.hasNext()) { //BLOCK + while (iterator.hasNext()) { // BLOCK val x: @NotNull(...) P = iterator.next() /*!! @NotNull(...) P */ } } fun testForInArrayUnused(j: J) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator<@EnhancedNullability P> = j.arrayOfNotNull() /*!! Array */ /*as Array<@EnhancedNullability P> */.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val x: @EnhancedNullability P = tmp0_iterator.next() - { //BLOCK + { // BLOCK } } } } fun testForInListUse() { - { //BLOCK + { // BLOCK val tmp0_iterator: MutableIterator<@NotNull(...) @EnhancedNullability P> = listOfNotNull() /*!! List<@NotNull(...) @EnhancedNullability P> */ /*as MutableList<*> */.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val x: @NotNull(...) @EnhancedNullability P = tmp0_iterator.next() - { //BLOCK + { // BLOCK use(s = x /*!! @NotNull(...) P */) use(s = x) } @@ -57,11 +57,11 @@ fun testForInListUse() { } fun testForInArrayUse(j: J) { - { //BLOCK + { // BLOCK val tmp0_iterator: Iterator<@EnhancedNullability P> = j.arrayOfNotNull() /*!! Array */ /*as Array<@EnhancedNullability P> */.iterator() - while (tmp0_iterator.hasNext()) { //BLOCK + while (tmp0_iterator.hasNext()) { // BLOCK val x: @EnhancedNullability P = tmp0_iterator.next() - { //BLOCK + { // BLOCK use(s = x /*!! P */) use(s = x) }