From 6cb68531ae92f86ffa9900b74bbfa51c8b0711c4 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Tue, 16 Jan 2018 16:49:03 +0300 Subject: [PATCH] Minor: add missing "'" --- .../kotlin/ir/util/RenderIrElement.kt | 2 +- compiler/testData/ir/irCfg/expressionFun.txt | 2 +- compiler/testData/ir/irCfg/expressionUnit.txt | 2 +- .../testData/ir/irCfg/loop/digitCount.txt | 2 +- compiler/testData/ir/irCfg/loop/factorial.txt | 2 +- compiler/testData/ir/irCfg/loop/isPerfect.txt | 2 +- compiler/testData/ir/irCfg/returnUnit.txt | 2 +- compiler/testData/ir/irCfg/sequentialFun.txt | 2 +- compiler/testData/ir/irCfg/simpleReturn.txt | 2 +- compiler/testData/ir/irCfg/when/cascadeIf.txt | 2 +- compiler/testData/ir/irCfg/when/emptyWhen.txt | 2 +- .../testData/ir/irCfg/when/expressionIf.txt | 2 +- compiler/testData/ir/irCfg/when/ifChain.txt | 10 +- .../testData/ir/irCfg/when/whenReturn.txt | 12 +-- ...tReorderingInDelegatingConstructorCall.txt | 4 +- .../ir/irText/classes/classMembers.txt | 12 +-- .../classes/dataClassWithArrayMembers.txt | 102 +++++++++--------- .../ir/irText/classes/dataClasses.txt | 48 ++++----- .../ir/irText/classes/dataClassesGeneric.txt | 18 ++-- .../classes/delegatedImplementation.txt | 24 ++--- ...gConstructorCallToTypeAliasConstructor.txt | 2 +- compiler/testData/ir/irText/classes/enum.txt | 8 +- .../irText/classes/enumWithSecondaryCtor.txt | 6 +- .../testData/ir/irText/classes/initBlock.txt | 2 +- .../testData/ir/irText/classes/initVal.txt | 6 +- .../testData/ir/irText/classes/initVar.txt | 12 +-- .../innerClassWithDelegatingConstructor.txt | 2 +- .../lambdaInDataClassDefaultParameter.txt | 38 +++---- .../classes/objectLiteralExpressions.txt | 8 +- .../irText/classes/objectWithInitializers.txt | 4 +- .../ir/irText/classes/primaryConstructor.txt | 12 +-- ...aryConstructorWithSuperConstructorCall.txt | 4 +- .../ir/irText/classes/qualifiedSuperCalls.txt | 6 +- .../ir/irText/classes/sealedClasses.txt | 6 +- ...nstructorWithInitializersFromClassBody.txt | 4 +- .../testData/ir/irText/classes/superCalls.txt | 4 +- .../catchParameterInTopLevelProperty.txt | 2 +- .../declarations/classLevelProperties.txt | 20 ++-- .../declarations/delegatedProperties.txt | 18 ++-- .../declarations/extensionProperties.txt | 1 + .../ir/irText/declarations/fakeOverrides.txt | 2 +- .../declarations/fileWithAnnotations.txt | 2 +- .../declarations/interfaceProperties.txt | 4 +- .../declarations/localDelegatedProperties.txt | 8 +- ...lDelegatedPropertyWithSuspendOperators.txt | 18 ++-- .../declarations/packageLevelProperties.txt | 20 ++-- .../declarations/parameters/constructor.txt | 14 +-- .../parameters/dataClassMembers.txt | 24 ++--- .../parameters/defaultPropertyAccessors.txt | 12 +-- .../parameters/delegatedMembers.txt | 2 +- .../declarations/parameters/lambdas.txt | 14 +-- .../parameters/propertyAccessors.txt | 24 ++--- .../primaryCtorDefaultArguments.txt | 2 +- .../declarations/primaryCtorProperties.txt | 4 +- .../provideDelegate/differentReceivers.txt | 12 +-- .../declarations/provideDelegate/local.txt | 10 +- .../localDifferentReceivers.txt | 12 +-- .../declarations/provideDelegate/member.txt | 10 +- .../provideDelegate/memberExtension.txt | 10 +- .../declarations/provideDelegate/topLevel.txt | 10 +- .../ir/irText/errors/unresolvedReference.txt | 8 +- .../expressions/argumentMappedWithError.txt | 2 +- .../ir/irText/expressions/arrayAccess.txt | 6 +- .../ir/irText/expressions/arrayAssignment.txt | 2 +- .../expressions/arrayAugmentedAssignment1.txt | 6 +- .../ir/irText/expressions/assignments.txt | 2 +- .../expressions/augmentedAssignment1.txt | 2 +- .../expressions/augmentedAssignment2.txt | 2 +- .../augmentedAssignmentWithExpression.txt | 2 +- .../ir/irText/expressions/bangbang.txt | 4 +- .../expressions/booleanConstsInAndAndOrOr.txt | 4 +- .../irText/expressions/booleanOperators.txt | 8 +- .../expressions/boundCallableReferences.txt | 8 +- .../testData/ir/irText/expressions/boxOk.txt | 2 +- .../callWithReorderedArguments.txt | 8 +- .../callableRefToGenericMember.txt | 6 +- .../callableReferenceToImportedFromObject.txt | 12 +-- .../testData/ir/irText/expressions/calls.txt | 12 +-- .../expressions/catchParameterAccess.txt | 2 +- .../irText/expressions/chainOfSafeCalls.txt | 6 +- .../ir/irText/expressions/coercionToUnit.txt | 4 +- .../complexAugmentedAssignment.txt | 8 +- .../ir/irText/expressions/contructorCall.txt | 2 +- .../expressions/conventionComparisons.txt | 8 +- .../ir/irText/expressions/destructuring1.txt | 4 +- .../destructuringWithUnderscore.txt | 6 +- .../ir/irText/expressions/dotQualified.txt | 4 +- .../testData/ir/irText/expressions/elvis.txt | 18 ++-- .../expressions/enumEntryAsReceiver.txt | 8 +- .../ir/irText/expressions/equality.txt | 6 +- .../irText/expressions/extFunInvokeAsFun.txt | 4 +- .../irText/expressions/extFunSafeInvoke.txt | 2 +- .../extensionPropertyGetterCall.txt | 4 +- .../testData/ir/irText/expressions/field.txt | 4 +- .../expressions/forWithImplicitReceivers.txt | 8 +- .../expressions/genericPropertyCall.txt | 4 +- .../ir/irText/expressions/identity.txt | 6 +- .../ir/irText/expressions/ifElseIf.txt | 2 +- .../implicitCastOnPlatformType.txt | 2 +- .../testData/ir/irText/expressions/in.txt | 8 +- .../irText/expressions/incrementDecrement.txt | 4 +- .../expressions/jvmInstanceFieldReference.txt | 2 +- .../expressions/jvmStaticFieldReference.txt | 4 +- .../ir/irText/expressions/kt16904.txt | 4 +- .../ir/irText/expressions/kt16905.txt | 2 +- .../ir/irText/expressions/lambdaInCAO.txt | 8 +- .../ir/irText/expressions/literals.txt | 34 +++--- .../expressions/membersImportedFromObject.txt | 16 +-- .../expressions/multipleThisReferences.txt | 8 +- .../irText/expressions/objectAsCallable.txt | 8 +- .../outerClassInstanceReference.txt | 2 +- .../expressions/primitiveComparisons.txt | 48 ++++----- .../primitivesImplicitConversions.txt | 14 +-- .../ir/irText/expressions/references.txt | 18 ++-- .../irText/expressions/reflectionLiterals.txt | 16 +-- .../ir/irText/expressions/safeAssignment.txt | 2 +- .../safeCallWithIncrementDecrement.txt | 6 +- .../ir/irText/expressions/safeCalls.txt | 14 +-- .../ir/irText/expressions/simpleOperators.txt | 22 ++-- .../expressions/simpleUnaryOperators.txt | 12 +-- .../ir/irText/expressions/smartCasts.txt | 14 +-- .../smartCastsWithDestructuring.txt | 6 +- .../irText/expressions/stringComparisons.txt | 8 +- .../ir/irText/expressions/stringPlus.txt | 6 +- .../ir/irText/expressions/stringTemplates.txt | 22 ++-- .../expressions/thisOfGenericOuterClass.txt | 8 +- .../ir/irText/expressions/tryCatch.txt | 2 +- .../expressions/tryCatchWithImplicitCast.txt | 2 +- .../ir/irText/expressions/typeArguments.txt | 2 +- .../ir/irText/expressions/typeOperators.txt | 8 +- .../testData/ir/irText/expressions/values.txt | 10 +- .../testData/ir/irText/expressions/vararg.txt | 6 +- .../expressions/varargWithImplicitCast.txt | 8 +- .../expressions/variableAsFunctionCall.txt | 12 +-- .../testData/ir/irText/expressions/when.txt | 6 +- .../ir/irText/expressions/whenElse.txt | 2 +- .../ir/irText/expressions/whenReturn.txt | 12 +-- .../ir/irText/lambdas/anonymousFunction.txt | 2 +- .../irText/lambdas/destructuringInLambda.txt | 28 ++--- .../ir/irText/lambdas/extensionLambda.txt | 4 +- .../testData/ir/irText/lambdas/justLambda.txt | 8 +- .../lambdas/multipleImplicitReceivers.txt | 10 +- .../ir/irText/lambdas/nonLocalReturn.txt | 18 ++-- .../testData/ir/irText/lambdas/samAdapter.txt | 2 +- .../ir/irText/regressions/coercionInLoop.txt | 4 +- .../irText/regressions/integerCoercionToT.txt | 6 +- .../newInference/fixationOrder1.txt | 8 +- .../typeAliasCtorForGenericClass.txt | 2 +- .../testData/ir/irText/stubs/builtinMap.txt | 4 +- .../testData/ir/irText/stubs/javaEnum.txt | 2 +- .../ir/irText/stubs/javaInnerClass.txt | 2 +- .../ir/irText/stubs/javaNestedClass.txt | 2 +- .../ir/irText/stubs/kotlinInnerClass.txt | 2 +- compiler/testData/ir/irText/stubs/simple.txt | 2 +- .../augmentedAssignmentWithExpression.txt | 2 +- .../synthesizedDataClassMembers.txt | 30 +++--- 156 files changed, 683 insertions(+), 682 deletions(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt index 63069cadaf0..eafa3a1cd23 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt @@ -197,7 +197,7 @@ class RenderIrElementVisitor : IrElementVisitor { "COMPOSITE type=${expression.type.render()} origin=${expression.origin}" override fun visitReturn(expression: IrReturn, data: Nothing?): String = - "RETURN type=${expression.type.render()} from=${expression.returnTarget.ref()}'" + "RETURN type=${expression.type.render()} from='${expression.returnTarget.ref()}'" override fun visitCall(expression: IrCall, data: Nothing?): String = "CALL '${expression.descriptor.ref()}' ${expression.renderSuperQualifier()}" + diff --git a/compiler/testData/ir/irCfg/expressionFun.txt b/compiler/testData/ir/irCfg/expressionFun.txt index 41fdd142771..4f07bf8976c 100644 --- a/compiler/testData/ir/irCfg/expressionFun.txt +++ b/compiler/testData/ir/irCfg/expressionFun.txt @@ -4,7 +4,7 @@ BB 0 CONTENT 1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: 2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null - 3 RETURN type=kotlin.Nothing from=foo(Int): Int' + 3 RETURN type=kotlin.Nothing from='foo(Int): Int' OUTGOING -> NONE Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/expressionUnit.txt b/compiler/testData/ir/irCfg/expressionUnit.txt index 7e6ebacbf11..0607d061b81 100644 --- a/compiler/testData/ir/irCfg/expressionUnit.txt +++ b/compiler/testData/ir/irCfg/expressionUnit.txt @@ -4,7 +4,7 @@ BB 0 CONTENT 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: 2 GET_OBJECT 'Unit' type=kotlin.Unit - 3 RETURN type=kotlin.Nothing from=foo(): Unit' + 3 RETURN type=kotlin.Nothing from='foo(): Unit' OUTGOING -> NONE Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: diff --git a/compiler/testData/ir/irCfg/loop/digitCount.txt b/compiler/testData/ir/irCfg/loop/digitCount.txt index 039cde6f5ae..027fc394a6a 100644 --- a/compiler/testData/ir/irCfg/loop/digitCount.txt +++ b/compiler/testData/ir/irCfg/loop/digitCount.txt @@ -59,7 +59,7 @@ INCOMING <- BB 5 Do..while exit: DO_WHILE label=null origin=DO_WHILE_LOOP CONTENT 1 GET_VAR 'count: Int' type=kotlin.Int origin=null - 2 RETURN type=kotlin.Nothing from=digitCountInNumber(Int, Int): Int' + 2 RETURN type=kotlin.Nothing from='digitCountInNumber(Int, Int): Int' OUTGOING -> NONE Function exit: FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/loop/factorial.txt b/compiler/testData/ir/irCfg/loop/factorial.txt index dcdc130d499..7d02ea06b82 100644 --- a/compiler/testData/ir/irCfg/loop/factorial.txt +++ b/compiler/testData/ir/irCfg/loop/factorial.txt @@ -41,7 +41,7 @@ INCOMING <- BB 3 While exit: WHILE label=null origin=FOR_LOOP_INNER_WHILE CONTENT 1 GET_VAR 'result: Int' type=kotlin.Int origin=null - 2 RETURN type=kotlin.Nothing from=factorial(Int): Int' + 2 RETURN type=kotlin.Nothing from='factorial(Int): Int' OUTGOING -> NONE Function exit: FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/loop/isPerfect.txt b/compiler/testData/ir/irCfg/loop/isPerfect.txt index e8ed6ee3d39..40215cb96f4 100644 --- a/compiler/testData/ir/irCfg/loop/isPerfect.txt +++ b/compiler/testData/ir/irCfg/loop/isPerfect.txt @@ -81,7 +81,7 @@ CONTENT 1 GET_VAR 'sum: Int' type=kotlin.Int origin=null 2 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null 3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ - 4 RETURN type=kotlin.Nothing from=isPerfect(Int): Boolean' + 4 RETURN type=kotlin.Nothing from='isPerfect(Int): Boolean' OUTGOING -> NONE Function exit: FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags: diff --git a/compiler/testData/ir/irCfg/returnUnit.txt b/compiler/testData/ir/irCfg/returnUnit.txt index 40bc840234f..47358a78d59 100644 --- a/compiler/testData/ir/irCfg/returnUnit.txt +++ b/compiler/testData/ir/irCfg/returnUnit.txt @@ -4,7 +4,7 @@ BB 0 CONTENT 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: 2 GET_OBJECT 'Unit' type=kotlin.Unit - 3 RETURN type=kotlin.Nothing from=foo(): Unit' + 3 RETURN type=kotlin.Nothing from='foo(): Unit' OUTGOING -> NONE Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: diff --git a/compiler/testData/ir/irCfg/sequentialFun.txt b/compiler/testData/ir/irCfg/sequentialFun.txt index 5e230fb70bc..db5758eb77b 100644 --- a/compiler/testData/ir/irCfg/sequentialFun.txt +++ b/compiler/testData/ir/irCfg/sequentialFun.txt @@ -8,7 +8,7 @@ CONTENT 4 CALL 'times(Int): Int' type=kotlin.Int origin=MUL 5 VAR name:dbl type:kotlin.Int flags:val 6 GET_VAR 'dbl: Int' type=kotlin.Int origin=null - 7 RETURN type=kotlin.Nothing from=foo(Int): Int' + 7 RETURN type=kotlin.Nothing from='foo(Int): Int' OUTGOING -> NONE Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/simpleReturn.txt b/compiler/testData/ir/irCfg/simpleReturn.txt index 7fad1c157c0..cdee12f7ade 100644 --- a/compiler/testData/ir/irCfg/simpleReturn.txt +++ b/compiler/testData/ir/irCfg/simpleReturn.txt @@ -4,7 +4,7 @@ BB 0 CONTENT 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: 2 GET_OBJECT 'Unit' type=kotlin.Unit - 3 RETURN type=kotlin.Nothing from=foo(): Unit' + 3 RETURN type=kotlin.Nothing from='foo(): Unit' OUTGOING -> NONE Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: diff --git a/compiler/testData/ir/irCfg/when/cascadeIf.txt b/compiler/testData/ir/irCfg/when/cascadeIf.txt index 5eae6b27fac..dc96da1545c 100644 --- a/compiler/testData/ir/irCfg/when/cascadeIf.txt +++ b/compiler/testData/ir/irCfg/when/cascadeIf.txt @@ -49,7 +49,7 @@ BB 6 INCOMING <- BB 3, 4, 5 When exit: WHEN type=kotlin.Int origin=WHEN CONTENT - 1 RETURN type=kotlin.Nothing from=compare(Int, Int): Int' + 1 RETURN type=kotlin.Nothing from='compare(Int, Int): Int' OUTGOING -> NONE Function exit: FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/when/emptyWhen.txt b/compiler/testData/ir/irCfg/when/emptyWhen.txt index df30d8542a0..dc46c47b1eb 100644 --- a/compiler/testData/ir/irCfg/when/emptyWhen.txt +++ b/compiler/testData/ir/irCfg/when/emptyWhen.txt @@ -17,7 +17,7 @@ BB 2 INCOMING <- BB 1 When exit: WHEN type=kotlin.Int origin=WHEN CONTENT - 1 RETURN type=kotlin.Nothing from=empty(): Int' + 1 RETURN type=kotlin.Nothing from='empty(): Int' OUTGOING -> NONE Function exit: FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/when/expressionIf.txt b/compiler/testData/ir/irCfg/when/expressionIf.txt index bc22d646bfd..a0670dca45e 100644 --- a/compiler/testData/ir/irCfg/when/expressionIf.txt +++ b/compiler/testData/ir/irCfg/when/expressionIf.txt @@ -33,7 +33,7 @@ BB 4 INCOMING <- BB 2, 3 When exit: WHEN type=kotlin.Int origin=null CONTENT - 1 RETURN type=kotlin.Nothing from=max(Int, Int): Int' + 1 RETURN type=kotlin.Nothing from='max(Int, Int): Int' OUTGOING -> NONE Function exit: FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: diff --git a/compiler/testData/ir/irCfg/when/ifChain.txt b/compiler/testData/ir/irCfg/when/ifChain.txt index 2322beb7ddd..f745895bddd 100644 --- a/compiler/testData/ir/irCfg/when/ifChain.txt +++ b/compiler/testData/ir/irCfg/when/ifChain.txt @@ -22,7 +22,7 @@ INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 CONST Double type=kotlin.Double value=1.0 - 2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' + 2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 3 @@ -45,7 +45,7 @@ INCOMING <- BB 3 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT 1 CONST Double type=kotlin.Double value=2.0 - 2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' + 2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 5 @@ -54,7 +54,7 @@ INCOMING <- BB 3 CONTENT 1 GET_VAR 'bc: Double' type=kotlin.Double origin=null 2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS - 3 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' + 3 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 6 @@ -82,7 +82,7 @@ INCOMING <- BB 6 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT 1 CONST Double type=kotlin.Double value=3.0 - 2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' + 2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 8 @@ -169,7 +169,7 @@ BB 16 INCOMING <- BB 14, 15 When exit: WHEN type=kotlin.Double origin=null CONTENT - 1 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' + 1 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: diff --git a/compiler/testData/ir/irCfg/when/whenReturn.txt b/compiler/testData/ir/irCfg/when/whenReturn.txt index b5612e5ea96..69f5e1252d5 100644 --- a/compiler/testData/ir/irCfg/when/whenReturn.txt +++ b/compiler/testData/ir/irCfg/when/whenReturn.txt @@ -45,7 +45,7 @@ INCOMING <- BB 0 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 CONST String type=kotlin.String value=Excellent - 2 RETURN type=kotlin.Nothing from=toString(String): String' + 2 RETURN type=kotlin.Nothing from='toString(String): String' OUTGOING -> NONE Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 6 @@ -53,7 +53,7 @@ INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 CONST String type=kotlin.String value=Good - 2 RETURN type=kotlin.Nothing from=toString(String): String' + 2 RETURN type=kotlin.Nothing from='toString(String): String' OUTGOING -> NONE Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 7 @@ -61,7 +61,7 @@ INCOMING <- BB 2 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 CONST String type=kotlin.String value=Mediocre - 2 RETURN type=kotlin.Nothing from=toString(String): String' + 2 RETURN type=kotlin.Nothing from='toString(String): String' OUTGOING -> NONE Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 8 @@ -69,7 +69,7 @@ INCOMING <- BB 3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 CONST String type=kotlin.String value=Fair - 2 RETURN type=kotlin.Nothing from=toString(String): String' + 2 RETURN type=kotlin.Nothing from='toString(String): String' OUTGOING -> NONE Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 9 @@ -77,7 +77,7 @@ INCOMING <- BB 4 CONST Boolean type=kotlin.Boolean value=true CONTENT 1 CONST String type=kotlin.String value=Failure - 2 RETURN type=kotlin.Nothing from=toString(String): String' + 2 RETURN type=kotlin.Nothing from='toString(String): String' OUTGOING -> NONE Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 10 @@ -85,7 +85,7 @@ INCOMING <- BB 4 CONST Boolean type=kotlin.Boolean value=true CONTENT 1 CONST String type=kotlin.String value=??? - 2 RETURN type=kotlin.Nothing from=toString(String): String' + 2 RETURN type=kotlin.Nothing from='toString(String): String' OUTGOING -> NONE Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: diff --git a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt index 12acd8c3907..f0e0f559a3c 100644 --- a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Base: Base' type=Base origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val @@ -24,7 +24,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Base: Base' type=Base origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/classes/classMembers.txt b/compiler/testData/ir/irText/classes/classMembers.txt index 0e3557da618..2bf03e84df4 100644 --- a/compiler/testData/ir/irText/classes/classMembers.txt +++ b/compiler/testData/ir/irText/classes/classMembers.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/classMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null PROPERTY name:z type:kotlin.Int visibility:public modality:FINAL flags:var @@ -27,7 +27,7 @@ FILE fqName: fileName:/classMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'z: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: @@ -50,20 +50,20 @@ FILE fqName: fileName:/classMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'property: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null PROPERTY name:propertyWithGet type:kotlin.Int visibility:public modality:FINAL flags:val FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 PROPERTY name:propertyWithGetAndSet type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@C: C' type=C origin=null FUN name: visibility:public modality:FINAL <> ($this:C, value:kotlin.Int) returnType:Unit flags: @@ -115,7 +115,7 @@ FILE fqName: fileName:/classMembers.kt FUN name:bar visibility:public modality:OPEN <> ($this:C.NestedInterface) returnType:Unit flags: $this: VALUE_PARAMETER name: type:C.NestedInterface flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(): Unit' + RETURN type=kotlin.Nothing from='bar(): Unit' CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@NestedInterface: NestedInterface' type=C.NestedInterface origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt index 2be3f817dd6..6c44c517862 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt @@ -21,7 +21,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Array flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Array' + RETURN type=kotlin.Nothing from='(): Array' GET_FIELD 'stringArray: Array' type=kotlin.Array origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:charArray type:kotlin.CharArray visibility:public modality:FINAL flags:val @@ -31,7 +31,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:CharArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): CharArray' + RETURN type=kotlin.Nothing from='(): CharArray' GET_FIELD 'charArray: CharArray' type=kotlin.CharArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:booleanArray type:kotlin.BooleanArray visibility:public modality:FINAL flags:val @@ -41,7 +41,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:BooleanArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): BooleanArray' + RETURN type=kotlin.Nothing from='(): BooleanArray' GET_FIELD 'booleanArray: BooleanArray' type=kotlin.BooleanArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:byteArray type:kotlin.ByteArray visibility:public modality:FINAL flags:val @@ -51,7 +51,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:ByteArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): ByteArray' + RETURN type=kotlin.Nothing from='(): ByteArray' GET_FIELD 'byteArray: ByteArray' type=kotlin.ByteArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:shortArray type:kotlin.ShortArray visibility:public modality:FINAL flags:val @@ -61,7 +61,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:ShortArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): ShortArray' + RETURN type=kotlin.Nothing from='(): ShortArray' GET_FIELD 'shortArray: ShortArray' type=kotlin.ShortArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:intArray type:kotlin.IntArray visibility:public modality:FINAL flags:val @@ -71,7 +71,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:IntArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): IntArray' + RETURN type=kotlin.Nothing from='(): IntArray' GET_FIELD 'intArray: IntArray' type=kotlin.IntArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:longArray type:kotlin.LongArray visibility:public modality:FINAL flags:val @@ -81,7 +81,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:LongArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): LongArray' + RETURN type=kotlin.Nothing from='(): LongArray' GET_FIELD 'longArray: LongArray' type=kotlin.LongArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:floatArray type:kotlin.FloatArray visibility:public modality:FINAL flags:val @@ -91,7 +91,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:FloatArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): FloatArray' + RETURN type=kotlin.Nothing from='(): FloatArray' GET_FIELD 'floatArray: FloatArray' type=kotlin.FloatArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:doubleArray type:kotlin.DoubleArray visibility:public modality:FINAL flags:val @@ -101,61 +101,61 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:DoubleArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): DoubleArray' + RETURN type=kotlin.Nothing from='(): DoubleArray' GET_FIELD 'doubleArray: DoubleArray' type=kotlin.DoubleArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test1) returnType:Array flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Array' + RETURN type=kotlin.Nothing from='component1(): Array' CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:Test1) returnType:CharArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2(): CharArray' + RETURN type=kotlin.Nothing from='component2(): CharArray' CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:Test1) returnType:BooleanArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component3(): BooleanArray' + RETURN type=kotlin.Nothing from='component3(): BooleanArray' CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component4 visibility:public modality:FINAL <> ($this:Test1) returnType:ByteArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component4(): ByteArray' + RETURN type=kotlin.Nothing from='component4(): ByteArray' CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component5 visibility:public modality:FINAL <> ($this:Test1) returnType:ShortArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component5(): ShortArray' + RETURN type=kotlin.Nothing from='component5(): ShortArray' CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component6 visibility:public modality:FINAL <> ($this:Test1) returnType:IntArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component6(): IntArray' + RETURN type=kotlin.Nothing from='component6(): IntArray' CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component7 visibility:public modality:FINAL <> ($this:Test1) returnType:LongArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component7(): LongArray' + RETURN type=kotlin.Nothing from='component7(): LongArray' CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component8 visibility:public modality:FINAL <> ($this:Test1) returnType:FloatArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component8(): FloatArray' + RETURN type=kotlin.Nothing from='component8(): FloatArray' CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component9 visibility:public modality:FINAL <> ($this:Test1) returnType:DoubleArray flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component9(): DoubleArray' + RETURN type=kotlin.Nothing from='component9(): DoubleArray' CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test1, stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:Test1 flags: @@ -197,7 +197,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Array = ..., CharArray = ..., BooleanArray = ..., ByteArray = ..., ShortArray = ..., IntArray = ..., LongArray = ..., FloatArray = ..., DoubleArray = ...): Test1' + RETURN type=kotlin.Nothing from='copy(Array = ..., CharArray = ..., BooleanArray = ..., ByteArray = ..., ShortArray = ..., IntArray = ..., LongArray = ..., FloatArray = ..., DoubleArray = ...): Test1' CALL 'constructor Test1(Array, CharArray, BooleanArray, ByteArray, ShortArray, IntArray, LongArray, FloatArray, DoubleArray)' type=Test1 origin=null stringArray: GET_VAR 'value-parameter stringArray: Array = ...' type=kotlin.Array origin=null charArray: GET_VAR 'value-parameter charArray: CharArray = ...' type=kotlin.CharArray origin=null @@ -211,7 +211,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test1) returnType:String flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test1( CONST String type=kotlin.String value=stringArray= @@ -332,7 +332,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test1, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test1 flags: @@ -343,13 +343,13 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test1 flags:val TYPE_OP type=Test1 origin=CAST typeOperand=Test1 @@ -362,7 +362,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -372,7 +372,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -382,7 +382,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -392,7 +392,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -402,7 +402,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -412,7 +412,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -422,7 +422,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -432,7 +432,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -442,9 +442,9 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test2 modality:FINAL visibility:public flags:data $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: @@ -461,13 +461,13 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Array flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Array' + RETURN type=kotlin.Nothing from='(): Array' GET_FIELD 'genericArray: Array' type=kotlin.Array origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test2) returnType:Array flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Array' + RETURN type=kotlin.Nothing from='component1(): Array' CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test2, genericArray:kotlin.Array) returnType:Test2 flags: @@ -477,14 +477,14 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Array = ...): Test2' + RETURN type=kotlin.Nothing from='copy(Array = ...): Test2' CALL 'constructor Test2(Array)' type=Test2 origin=null : null genericArray: GET_VAR 'value-parameter genericArray: Array = ...' type=kotlin.Array origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test2) returnType:String flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test2( CONST String type=kotlin.String value=genericArray= @@ -501,7 +501,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test2, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test2 flags: @@ -512,13 +512,13 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test2 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test2 flags:val TYPE_OP type=Test2 origin=CAST typeOperand=Test2 @@ -531,9 +531,9 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test2' type=Test2 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test3 modality:FINAL visibility:public flags:data $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: @@ -549,13 +549,13 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Array? flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Array?' + RETURN type=kotlin.Nothing from='(): Array?' GET_FIELD 'anyArrayN: Array?' type=kotlin.Array? origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test3) returnType:Array? flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Array?' + RETURN type=kotlin.Nothing from='component1(): Array?' CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test3, anyArrayN:kotlin.Array?) returnType:Test3 flags: @@ -565,13 +565,13 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Array? = ...): Test3' + RETURN type=kotlin.Nothing from='copy(Array? = ...): Test3' CALL 'constructor Test3(Array?)' type=Test3 origin=null anyArrayN: GET_VAR 'value-parameter anyArrayN: Array? = ...' type=kotlin.Array? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test3) returnType:String flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test3( CONST String type=kotlin.String value=anyArrayN= @@ -599,7 +599,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: GET_VAR 'tmp1: Array?' type=kotlin.Array? origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test3, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test3 flags: @@ -610,13 +610,13 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test3: Test3' type=Test3 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test3 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test3 flags:val TYPE_OP type=Test3 origin=CAST typeOperand=Test3 @@ -629,8 +629,8 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null arg1: CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test3' type=Test3 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses.txt b/compiler/testData/ir/irText/classes/dataClasses.txt index 48a4c55d6eb..f9debd03098 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/dataClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val @@ -25,7 +25,7 @@ FILE fqName: fileName:/dataClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:String flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:z type:kotlin.Any visibility:public modality:FINAL flags:val @@ -35,25 +35,25 @@ FILE fqName: fileName:/dataClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Any flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any' + RETURN type=kotlin.Nothing from='(): Any' GET_FIELD 'z: Any' type=kotlin.Any origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Int' + RETURN type=kotlin.Nothing from='component1(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:Test1) returnType:String flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2(): String' + RETURN type=kotlin.Nothing from='component2(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:Test1) returnType:Any flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component3(): Any' + RETURN type=kotlin.Nothing from='component3(): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test1, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:Test1 flags: @@ -71,7 +71,7 @@ FILE fqName: fileName:/dataClasses.kt CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Int = ..., String = ..., Any = ...): Test1' + RETURN type=kotlin.Nothing from='copy(Int = ..., String = ..., Any = ...): Test1' CALL 'constructor Test1(Int, String, Any)' type=Test1 origin=null x: GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=null y: GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=null @@ -79,7 +79,7 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test1) returnType:String flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test1( CONST String type=kotlin.String value=x= @@ -119,7 +119,7 @@ FILE fqName: fileName:/dataClasses.kt other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test1, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test1 flags: @@ -130,13 +130,13 @@ FILE fqName: fileName:/dataClasses.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test1 flags:val TYPE_OP type=Test1 origin=CAST typeOperand=Test1 @@ -149,7 +149,7 @@ FILE fqName: fileName:/dataClasses.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -159,7 +159,7 @@ FILE fqName: fileName:/dataClasses.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -169,9 +169,9 @@ FILE fqName: fileName:/dataClasses.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test2 modality:FINAL visibility:public flags:data $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: @@ -187,13 +187,13 @@ FILE fqName: fileName:/dataClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Any? flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any?' + RETURN type=kotlin.Nothing from='(): Any?' GET_FIELD 'x: Any?' type=kotlin.Any? origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test2) returnType:Any? flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Any?' + RETURN type=kotlin.Nothing from='component1(): Any?' CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test2, x:kotlin.Any?) returnType:Test2 flags: @@ -203,13 +203,13 @@ FILE fqName: fileName:/dataClasses.kt CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Any? = ...): Test2' + RETURN type=kotlin.Nothing from='copy(Any? = ...): Test2' CALL 'constructor Test2(Any?)' type=Test2 origin=null x: GET_VAR 'value-parameter x: Any? = ...' type=kotlin.Any? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test2) returnType:String flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test2( CONST String type=kotlin.String value=x= @@ -236,7 +236,7 @@ FILE fqName: fileName:/dataClasses.kt if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp1: Any?' type=kotlin.Any? origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test2, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test2 flags: @@ -247,13 +247,13 @@ FILE fqName: fileName:/dataClasses.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test2 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test2 flags:val TYPE_OP type=Test2 origin=CAST typeOperand=Test2 @@ -266,8 +266,8 @@ FILE fqName: fileName:/dataClasses.kt $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test2' type=Test2 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt index 286c9fd5824..5b6a1440e2a 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt @@ -14,13 +14,13 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:T flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T' + RETURN type=kotlin.Nothing from='(): T' GET_FIELD 'x: T' type=T origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test1) returnType:T flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): T' + RETURN type=kotlin.Nothing from='component1(): T' CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test1, x:T) returnType:Test1 flags: @@ -30,14 +30,14 @@ FILE fqName: fileName:/dataClassesGeneric.kt CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(T = ...): Test1' + RETURN type=kotlin.Nothing from='copy(T = ...): Test1' CALL 'constructor Test1(T)' type=Test1 origin=null : null x: GET_VAR 'value-parameter x: T = ...' type=T origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test1) returnType:String flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test1( CONST String type=kotlin.String value=x= @@ -65,7 +65,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Any origin=IMPLICIT_CAST typeOperand=kotlin.Any GET_VAR 'tmp1: T' type=T origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test1, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test1 flags: @@ -76,13 +76,13 @@ FILE fqName: fileName:/dataClassesGeneric.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test1 flags:val TYPE_OP type=Test1 origin=CAST typeOperand=Test1 @@ -95,8 +95,8 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.txt index 29397c830ee..3cd80d39405 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN name:bar visibility:public modality:OPEN <> ($this:BaseImpl) returnType:Int flags: $this: VALUE_PARAMETER name: type:BaseImpl flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(): Int' + RETURN type=kotlin.Nothing from='bar(): Int' CONST Int type=kotlin.Int value=42 FUN name:qux visibility:public modality:OPEN <> ($this:BaseImpl, $receiver:kotlin.String) returnType:Unit flags: $this: VALUE_PARAMETER name: type:BaseImpl flags: @@ -78,7 +78,7 @@ FILE fqName: fileName:/delegatedImplementation.kt VALUE_PARAMETER name:x0 index:0 type:kotlin.String flags: VALUE_PARAMETER name:y0 index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=otherImpl(String, Int): IOther' + RETURN type=kotlin.Nothing from='otherImpl(String, Int): IOther' BLOCK type=otherImpl. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:otherImpl. flags: @@ -93,7 +93,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:otherImpl.) returnType:String flags: $this: VALUE_PARAMETER name: type:otherImpl. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'x: String' type=kotlin.String origin=null receiver: GET_VAR 'this@: ' type=otherImpl. origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:OPEN flags:var @@ -103,7 +103,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:otherImpl.) returnType:Int flags: $this: VALUE_PARAMETER name: type:otherImpl. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@: ' type=otherImpl. origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:otherImpl., :kotlin.Int) returnType:Unit flags: @@ -118,14 +118,14 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER name: type:otherImpl. flags: $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on Byte: Int' + RETURN type=kotlin.Nothing from='() on Byte: Int' CONST Int type=kotlin.Int value=1 PROPERTY name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var FUN name: visibility:public modality:OPEN <> ($this:otherImpl., $receiver:kotlin.Byte) returnType:Int flags: $this: VALUE_PARAMETER name: type:otherImpl. flags: $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on Byte: Int' + RETURN type=kotlin.Nothing from='() on Byte: Int' CONST Int type=kotlin.Int value=2 FUN name: visibility:public modality:OPEN <> ($this:otherImpl., $receiver:kotlin.Byte, value:kotlin.Int) returnType:Unit flags: $this: VALUE_PARAMETER name: type:otherImpl. flags: @@ -152,7 +152,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN DELEGATED_MEMBER name:bar visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(): Int' + RETURN type=kotlin.Nothing from='bar(): Int' CALL 'bar(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test1$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -193,7 +193,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN DELEGATED_MEMBER name:bar visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(): Int' + RETURN type=kotlin.Nothing from='bar(): Int' CALL 'bar(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null @@ -225,7 +225,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER name: type:Test2 flags: $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on Byte: Int' + RETURN type=kotlin.Nothing from='() on Byte: Int' CALL '() on Byte: Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null @@ -234,7 +234,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2) returnType:String flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL '(): String' type=kotlin.String origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null @@ -243,7 +243,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER name: type:Test2 flags: $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on Byte: Int' + RETURN type=kotlin.Nothing from='() on Byte: Int' CALL '() on Byte: Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null @@ -262,7 +262,7 @@ FILE fqName: fileName:/delegatedImplementation.kt FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL '(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt index b75cb37edf9..9bea0a74fb3 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Cell) returnType:T flags: $this: VALUE_PARAMETER name: type:Cell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T' + RETURN type=kotlin.Nothing from='(): T' GET_FIELD 'value: T' type=T origin=null receiver: GET_VAR 'this@Cell: Cell' type=Cell origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/classes/enum.txt b/compiler/testData/ir/irText/classes/enum.txt index cda8e27ef8c..99ad25a6e3c 100644 --- a/compiler/testData/ir/irText/classes/enum.txt +++ b/compiler/testData/ir/irText/classes/enum.txt @@ -52,7 +52,7 @@ FILE fqName: fileName:/enum.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum2) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestEnum2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestEnum2: TestEnum2' type=TestEnum2 origin=null ENUM_ENTRY name:TEST1 @@ -177,7 +177,7 @@ FILE fqName: fileName:/enum.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum4) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestEnum4 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestEnum4: TestEnum4' type=TestEnum4 origin=null ENUM_ENTRY name:TEST1 @@ -233,7 +233,7 @@ FILE fqName: fileName:/enum.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum4.TEST2) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestEnum4.TEST2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'z: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TEST2: TEST2' type=TestEnum4.TEST2 origin=null ANONYMOUS_INITIALIZER TEST2 @@ -318,7 +318,7 @@ FILE fqName: fileName:/enum.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum5) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestEnum5 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestEnum5: TestEnum5' type=TestEnum5 origin=null ENUM_ENTRY name:TEST1 diff --git a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt index 1f527d6758b..56b904626e5 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test0) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test0: Test0' type=Test0 origin=null ENUM_ENTRY name:ZERO @@ -65,7 +65,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null ENUM_ENTRY name:ZERO @@ -119,7 +119,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null ENUM_ENTRY name:ZERO diff --git a/compiler/testData/ir/irText/classes/initBlock.txt b/compiler/testData/ir/irText/classes/initBlock.txt index 548f0c15111..6e715d7771c 100644 --- a/compiler/testData/ir/irText/classes/initBlock.txt +++ b/compiler/testData/ir/irText/classes/initBlock.txt @@ -29,7 +29,7 @@ FILE fqName: fileName:/initBlock.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null ANONYMOUS_INITIALIZER Test2 diff --git a/compiler/testData/ir/irText/classes/initVal.txt b/compiler/testData/ir/irText/classes/initVal.txt index af670aecd5c..c3de6ade593 100644 --- a/compiler/testData/ir/irText/classes/initVal.txt +++ b/compiler/testData/ir/irText/classes/initVal.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/initVal.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitValFromParameter) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitValFromParameter flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitValFromParameter: TestInitValFromParameter' type=TestInitValFromParameter origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -36,7 +36,7 @@ FILE fqName: fileName:/initVal.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitValInClass) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitValInClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitValInClass: TestInitValInClass' type=TestInitValInClass origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -57,7 +57,7 @@ FILE fqName: fileName:/initVal.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitValInInitBlock) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitValInInitBlock flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitValInInitBlock: TestInitValInInitBlock' type=TestInitValInInitBlock origin=null ANONYMOUS_INITIALIZER TestInitValInInitBlock diff --git a/compiler/testData/ir/irText/classes/initVar.txt b/compiler/testData/ir/irText/classes/initVar.txt index 422bebb48bc..384cb1a827a 100644 --- a/compiler/testData/ir/irText/classes/initVar.txt +++ b/compiler/testData/ir/irText/classes/initVar.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/initVar.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarFromParameter) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitVarFromParameter flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarFromParameter: TestInitVarFromParameter' type=TestInitVarFromParameter origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarFromParameter, :kotlin.Int) returnType:Unit flags: @@ -43,7 +43,7 @@ FILE fqName: fileName:/initVar.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInClass) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitVarInClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarInClass: TestInitVarInClass' type=TestInitVarInClass origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInClass, :kotlin.Int) returnType:Unit flags: @@ -71,7 +71,7 @@ FILE fqName: fileName:/initVar.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInInitBlock) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitVarInInitBlock flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarInInitBlock: TestInitVarInInitBlock' type=TestInitVarInInitBlock origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInInitBlock, :kotlin.Int) returnType:Unit flags: @@ -106,7 +106,7 @@ FILE fqName: fileName:/initVar.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetter) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetter flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarWithCustomSetter: TestInitVarWithCustomSetter' type=TestInitVarWithCustomSetter origin=null FUN name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetter, value:kotlin.Int) returnType:Unit flags: @@ -130,7 +130,7 @@ FILE fqName: fileName:/initVar.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterWithExplicitCtor) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetterWithExplicitCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor' type=TestInitVarWithCustomSetterWithExplicitCtor origin=null FUN name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterWithExplicitCtor, value:kotlin.Int) returnType:Unit flags: @@ -163,7 +163,7 @@ FILE fqName: fileName:/initVar.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterInCtor) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetterInCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor' type=TestInitVarWithCustomSetterInCtor origin=null FUN name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterInCtor, value:kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt index 51f52f3e1ab..e25cb2e5a5a 100644 --- a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt +++ b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt @@ -20,7 +20,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt index a2085721390..3a77ccdbe92 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $receiver: VALUE_PARAMETER name: type:A flags: VALUE_PARAMETER name:it index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(String) on A: Unit' + RETURN type=kotlin.Nothing from='(String) on A: Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(String) on A: Unit' type=A.(kotlin.String) -> kotlin.Unit origin=LAMBDA BLOCK_BODY @@ -22,13 +22,13 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:[@kotlin.ExtensionFunctionType] Function2 flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): A.(String) -> Unit' + RETURN type=kotlin.Nothing from='(): A.(String) -> Unit' GET_FIELD 'runA: A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:A) returnType:[@kotlin.ExtensionFunctionType] Function2 flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): A.(String) -> Unit' + RETURN type=kotlin.Nothing from='component1(): A.(String) -> Unit' CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:A, runA:A.(kotlin.String) -> kotlin.Unit) returnType:A flags: @@ -38,13 +38,13 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(A.(String) -> Unit = ...): A' + RETURN type=kotlin.Nothing from='copy(A.(String) -> Unit = ...): A' CALL 'constructor A(A.(String) -> Unit = ...)' type=A origin=null runA: GET_VAR 'value-parameter runA: A.(String) -> Unit = ...' type=A.(kotlin.String) -> kotlin.Unit origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:A) returnType:String flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=A( CONST String type=kotlin.String value=runA= @@ -60,7 +60,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:A, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:A flags: @@ -71,13 +71,13 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@A: A' type=A origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=A GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:A flags:val TYPE_OP type=A origin=CAST typeOperand=A @@ -90,9 +90,9 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: GET_VAR 'this@A: A' type=A origin=null arg1: CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: A' type=A origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:B modality:FINAL visibility:public flags:data $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: @@ -124,13 +124,13 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:B) returnType:Any flags: $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any' + RETURN type=kotlin.Nothing from='(): Any' GET_FIELD 'x: Any' type=kotlin.Any origin=null receiver: GET_VAR 'this@B: B' type=B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:B) returnType:Any flags: $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Any' + RETURN type=kotlin.Nothing from='component1(): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:B, x:kotlin.Any) returnType:B flags: @@ -140,13 +140,13 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Any = ...): B' + RETURN type=kotlin.Nothing from='copy(Any = ...): B' CALL 'constructor B(Any = ...)' type=B origin=null x: GET_VAR 'value-parameter x: Any = ...' type=kotlin.Any origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:B) returnType:String flags: $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=B( CONST String type=kotlin.String value=x= @@ -162,7 +162,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:B, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:B flags: @@ -173,13 +173,13 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@B: B' type=B origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=B GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:B flags:val TYPE_OP type=B origin=CAST typeOperand=B @@ -192,8 +192,8 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: GET_VAR 'this@B: B' type=B origin=null arg1: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: B' type=B origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt index 6d99d1d189f..4da0f9c786b 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt @@ -30,7 +30,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt CALL 'constructor ()' type=test1. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any' + RETURN type=kotlin.Nothing from='(): Any' GET_FIELD 'test1: Any' type=kotlin.Any origin=null PROPERTY name:test2 type:IFoo visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:IFoo visibility:public @@ -57,7 +57,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt CALL 'constructor ()' type=test2. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:IFoo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): IFoo' + RETURN type=kotlin.Nothing from='(): IFoo' GET_FIELD 'test2: IFoo' type=IFoo origin=null CLASS CLASS name:Outer modality:FINAL visibility:public flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: @@ -84,7 +84,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt FUN name:test3 visibility:public modality:FINAL <> ($this:Outer) returnType:Inner flags: $this: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(): Outer.Inner' + RETURN type=kotlin.Nothing from='test3(): Outer.Inner' BLOCK type=Outer.test3. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.test3. flags: @@ -116,7 +116,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt FUN name:test4 visibility:public modality:FINAL <> ($receiver:Outer) returnType:Inner flags: $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4() on Outer: Outer.Inner' + RETURN type=kotlin.Nothing from='test4() on Outer: Outer.Inner' BLOCK type=test4. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test4. flags: diff --git a/compiler/testData/ir/irText/classes/objectWithInitializers.txt b/compiler/testData/ir/irText/classes/objectWithInitializers.txt index 62951d94daa..d30e14604f0 100644 --- a/compiler/testData/ir/irText/classes/objectWithInitializers.txt +++ b/compiler/testData/ir/irText/classes/objectWithInitializers.txt @@ -25,7 +25,7 @@ FILE fqName: fileName:/objectWithInitializers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val @@ -33,7 +33,7 @@ FILE fqName: fileName:/objectWithInitializers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null ANONYMOUS_INITIALIZER Test diff --git a/compiler/testData/ir/irText/classes/primaryConstructor.txt b/compiler/testData/ir/irText/classes/primaryConstructor.txt index 281d2c4e267..64b3cb18ff1 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructor.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructor.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/primaryConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val @@ -24,7 +24,7 @@ FILE fqName: fileName:/primaryConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -49,7 +49,7 @@ FILE fqName: fileName:/primaryConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val @@ -59,7 +59,7 @@ FILE fqName: fileName:/primaryConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -84,7 +84,7 @@ FILE fqName: fileName:/primaryConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val @@ -92,7 +92,7 @@ FILE fqName: fileName:/primaryConstructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null ANONYMOUS_INITIALIZER Test3 diff --git a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt index d8cc92bc458..2487dc5bcfb 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt @@ -53,7 +53,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestWithDelegatingConstructor) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestWithDelegatingConstructor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestWithDelegatingConstructor: TestWithDelegatingConstructor' type=TestWithDelegatingConstructor origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val @@ -63,7 +63,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestWithDelegatingConstructor) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestWithDelegatingConstructor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestWithDelegatingConstructor: TestWithDelegatingConstructor' type=TestWithDelegatingConstructor origin=null CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestWithDelegatingConstructor flags: diff --git a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt index 03583619801..0e951cc206a 100644 --- a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt +++ b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt FUN name: visibility:public modality:OPEN <> ($this:ILeft) returnType:Int flags: $this: VALUE_PARAMETER name: type:ILeft flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -26,7 +26,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt FUN name: visibility:public modality:OPEN <> ($this:IRight) returnType:Int flags: $this: VALUE_PARAMETER name: type:IRight flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=2 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -52,7 +52,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt FUN name: visibility:public modality:OPEN <> ($this:CBoth) returnType:Int flags: $this: VALUE_PARAMETER name: type:CBoth flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL '(): Int' superQualifier=ILeft type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@CBoth: CBoth' type=CBoth origin=null diff --git a/compiler/testData/ir/irText/classes/sealedClasses.txt b/compiler/testData/ir/irText/classes/sealedClasses.txt index eaf6e16aed0..28f1a95034b 100644 --- a/compiler/testData/ir/irText/classes/sealedClasses.txt +++ b/compiler/testData/ir/irText/classes/sealedClasses.txt @@ -19,7 +19,7 @@ FILE fqName: fileName:/sealedClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Expr.Const) returnType:Double flags: $this: VALUE_PARAMETER name: type:Expr.Const flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Double' + RETURN type=kotlin.Nothing from='(): Double' GET_FIELD 'number: Double' type=kotlin.Double origin=null receiver: GET_VAR 'this@Const: Const' type=Expr.Const origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -44,7 +44,7 @@ FILE fqName: fileName:/sealedClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Expr.Sum) returnType:Expr flags: $this: VALUE_PARAMETER name: type:Expr.Sum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Expr' + RETURN type=kotlin.Nothing from='(): Expr' GET_FIELD 'e1: Expr' type=Expr origin=null receiver: GET_VAR 'this@Sum: Sum' type=Expr.Sum origin=null PROPERTY name:e2 type:Expr visibility:public modality:FINAL flags:val @@ -54,7 +54,7 @@ FILE fqName: fileName:/sealedClasses.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Expr.Sum) returnType:Expr flags: $this: VALUE_PARAMETER name: type:Expr.Sum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Expr' + RETURN type=kotlin.Nothing from='(): Expr' GET_FIELD 'e2: Expr' type=Expr origin=null receiver: GET_VAR 'this@Sum: Sum' type=Expr.Sum origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt index 4c736726a75..a5b16acaef1 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt @@ -21,7 +21,7 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestProperty) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestProperty flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestProperty: TestProperty' type=TestProperty origin=null CONSTRUCTOR visibility:public <> () returnType:TestProperty flags: @@ -42,7 +42,7 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitBlock) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestInitBlock flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitBlock: TestInitBlock' type=TestInitBlock origin=null ANONYMOUS_INITIALIZER TestInitBlock diff --git a/compiler/testData/ir/irText/classes/superCalls.txt b/compiler/testData/ir/irText/classes/superCalls.txt index 7114ade158e..603c4b0290b 100644 --- a/compiler/testData/ir/irText/classes/superCalls.txt +++ b/compiler/testData/ir/irText/classes/superCalls.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/superCalls.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:Base) returnType:String flags: $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'bar: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Base: Base' type=Base origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -40,7 +40,7 @@ FILE fqName: fileName:/superCalls.kt FUN name: visibility:public modality:OPEN <> ($this:Derived) returnType:String flags: $this: VALUE_PARAMETER name: type:Derived flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL '(): String' superQualifier=Base type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Derived: Derived' type=Derived origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt index e990b1a231d..43d14210ca8 100644 --- a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt +++ b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt @@ -9,6 +9,6 @@ FILE fqName: fileName:/catchParameterInTopLevelProperty.kt BLOCK type=kotlin.Unit origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_FIELD 'test: Unit' type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.txt index 88815dcab79..fbadc1f6e82 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.txt @@ -12,14 +12,14 @@ FILE fqName: fileName:/classLevelProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=0 PROPERTY name:test3 type:kotlin.Int visibility:public modality:FINAL flags:var FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Int visibility:public @@ -28,7 +28,7 @@ FILE fqName: fileName:/classLevelProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test3: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: @@ -45,7 +45,7 @@ FILE fqName: fileName:/classLevelProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test4: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN name: visibility:public modality:FINAL <> ($this:C, value:kotlin.Int) returnType:Unit flags: @@ -62,7 +62,7 @@ FILE fqName: fileName:/classLevelProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test5: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN name: visibility:private modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: @@ -79,7 +79,7 @@ FILE fqName: fileName:/classLevelProperties.kt FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test6: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null PROPERTY name:test7 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval @@ -90,13 +90,13 @@ FILE fqName: fileName:/classLevelProperties.kt initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test7$delegate`: Lazy' type=kotlin.Lazy origin=null @@ -112,7 +112,7 @@ FILE fqName: fileName:/classLevelProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Int' type=kotlin.Int origin=null : Int : Int @@ -124,7 +124,7 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:C flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Int): Unit' + RETURN type=kotlin.Nothing from='(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int) on MutableMap: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_FIELD '`test8$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.txt index fc80fdbbd07..d1835ddc87c 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.txt @@ -7,12 +7,12 @@ FILE fqName: fileName:/delegatedProperties.kt initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test1$delegate`: Lazy' type=kotlin.Lazy origin=null @@ -32,7 +32,7 @@ FILE fqName: fileName:/delegatedProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:MutableMap flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): MutableMap' + RETURN type=kotlin.Nothing from='(): MutableMap' GET_FIELD 'map: MutableMap' type=kotlin.collections.MutableMap origin=null receiver: GET_VAR 'this@C: C' type=C origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval @@ -43,13 +43,13 @@ FILE fqName: fileName:/delegatedProperties.kt initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test2$delegate`: Lazy' type=kotlin.Lazy origin=null @@ -64,7 +64,7 @@ FILE fqName: fileName:/delegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Any flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any' + RETURN type=kotlin.Nothing from='(): Any' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Any' type=kotlin.Any origin=null : Any : Any @@ -76,7 +76,7 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:C flags: VALUE_PARAMETER name: index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Any): Unit' + RETURN type=kotlin.Nothing from='(Any): Unit' CALL 'setValue(Any?, KProperty<*>, Any) on MutableMap: Unit' type=kotlin.Unit origin=null : Any $receiver: GET_FIELD '`test3$delegate`: MutableMap' type=kotlin.collections.MutableMap origin=null @@ -99,7 +99,7 @@ FILE fqName: fileName:/delegatedProperties.kt : Any FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any' + RETURN type=kotlin.Nothing from='(): Any' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Any' type=kotlin.Any origin=null : Any : Any @@ -109,7 +109,7 @@ FILE fqName: fileName:/delegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Any) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Any): Unit' + RETURN type=kotlin.Nothing from='(Any): Unit' CALL 'setValue(Any?, KProperty<*>, Any) on MutableMap: Unit' type=kotlin.Unit origin=null : Any $receiver: GET_FIELD '`test4$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null diff --git a/compiler/testData/ir/irText/declarations/extensionProperties.txt b/compiler/testData/ir/irText/declarations/extensionProperties.txt index 3a227ec0ffd..a07941a64ab 100644 --- a/compiler/testData/ir/irText/declarations/extensionProperties.txt +++ b/compiler/testData/ir/irText/declarations/extensionProperties.txt @@ -47,3 +47,4 @@ FILE fqName: fileName:/extensionProperties.kt $this: VALUE_PARAMETER name: type:kotlin.Any flags: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/fakeOverrides.txt b/compiler/testData/ir/irText/declarations/fakeOverrides.txt index 30b64f67bb9..f613acb837c 100644 --- a/compiler/testData/ir/irText/declarations/fakeOverrides.txt +++ b/compiler/testData/ir/irText/declarations/fakeOverrides.txt @@ -55,7 +55,7 @@ FILE fqName: fileName:/fakeOverrides.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:CFoo, x:kotlin.String) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt b/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt index f1fd1b671ee..bed7e37fd24 100644 --- a/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt @@ -9,6 +9,6 @@ FILE fqName: fileName:/fileWithAnnotations.kt CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/interfaceProperties.txt b/compiler/testData/ir/irText/declarations/interfaceProperties.txt index ac79231d14e..bf0c7b0f088 100644 --- a/compiler/testData/ir/irText/declarations/interfaceProperties.txt +++ b/compiler/testData/ir/irText/declarations/interfaceProperties.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/interfaceProperties.kt FUN name: visibility:public modality:OPEN <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=0 PROPERTY name:test3 type:kotlin.Int visibility:public modality:ABSTRACT flags:var FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:C) returnType:Int flags: @@ -20,7 +20,7 @@ FILE fqName: fileName:/interfaceProperties.kt FUN name: visibility:public modality:OPEN <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=0 FUN name: visibility:public modality:OPEN <> ($this:C, value:kotlin.Int) returnType:Unit flags: $this: VALUE_PARAMETER name: type:C flags: diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt index 9bdd6ae8d50..8ae9ed56537 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt @@ -8,12 +8,12 @@ FILE fqName: fileName:/localDelegatedProperties.kt initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_VAR '`x$delegate`: Lazy' type=kotlin.Lazy origin=null @@ -30,7 +30,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt : Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Int' type=kotlin.Int origin=null : Int : Int @@ -40,7 +40,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Int): Unit' + RETURN type=kotlin.Nothing from='(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int) on MutableMap: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_VAR '`x$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null diff --git a/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt b/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt index 2b5830a17a6..49a3decd14c 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'z: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A, :kotlin.Int) returnType:Unit flags: @@ -27,7 +27,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(Any?, KProperty<*>): Int' + RETURN type=kotlin.Nothing from='getValue(Any?, KProperty<*>): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null FUN name:setValue visibility:public modality:FINAL <> ($this:A, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>, value:kotlin.Int) returnType:Unit flags:suspend @@ -36,7 +36,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> flags: VALUE_PARAMETER name:value index:2 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=setValue(Any?, KProperty<*>, Int): Unit' + RETURN type=kotlin.Nothing from='setValue(Any?, KProperty<*>, Int): Unit' CALL 'suspendCoroutineOrReturn(crossinline (Continuation) -> Any?): Unit' type=kotlin.Unit origin=null : Unit block: BLOCK type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA @@ -49,7 +49,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt CALL 'resume(Unit): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter x: Continuation' type=kotlin.coroutines.experimental.Continuation origin=null value: GET_OBJECT 'Unit' type=kotlin.Unit - RETURN type=kotlin.Nothing from=(Continuation): Any' + RETURN type=kotlin.Nothing from='(Continuation): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY FUNCTION_REFERENCE '(Continuation): Any' type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA FUN name:provideDelegate visibility:public modality:FINAL <> ($this:A, host:kotlin.Any?, p:kotlin.Any) returnType:A flags:suspend @@ -57,7 +57,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any): A' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any): A' CALL 'suspendCoroutineOrReturn(crossinline (Continuation) -> Any?): A' type=A origin=null : A block: BLOCK type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA @@ -67,7 +67,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt CALL 'resume(A): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter x: Continuation' type=kotlin.coroutines.experimental.Continuation origin=null value: GET_VAR 'this@A: A' type=A origin=null - RETURN type=kotlin.Nothing from=(Continuation): Any' + RETURN type=kotlin.Nothing from='(Continuation): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY FUNCTION_REFERENCE '(Continuation): Any' type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -87,7 +87,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVal: Int' delegate='`testVal$delegate`: A' getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags:suspend BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>): Int' type=kotlin.Int origin=null $this: GET_VAR '`testVal$delegate`: A' type=A origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -100,7 +100,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVar: Int' delegate='`testVar$delegate`: A' getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags:suspend BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>): Int' type=kotlin.Int origin=null $this: GET_VAR '`testVar$delegate`: A' type=A origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -108,7 +108,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> (value:kotlin.Int) returnType:Unit flags:suspend VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Int): Unit' + RETURN type=kotlin.Nothing from='(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int): Unit' type=kotlin.Unit origin=null $this: GET_VAR '`testVar$delegate`: A' type=A origin=null thisRef: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.txt b/compiler/testData/ir/irText/declarations/packageLevelProperties.txt index e44370c9ce6..bee3ff919cd 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.txt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.txt @@ -5,12 +5,12 @@ FILE fqName: fileName:/packageLevelProperties.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=0 PROPERTY name:test3 type:kotlin.Int visibility:public modality:FINAL flags:var FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Int visibility:public @@ -18,7 +18,7 @@ FILE fqName: fileName:/packageLevelProperties.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test3: Int' type=kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: @@ -31,7 +31,7 @@ FILE fqName: fileName:/packageLevelProperties.kt CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test4: Int' type=kotlin.Int origin=null FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: @@ -44,7 +44,7 @@ FILE fqName: fileName:/packageLevelProperties.kt CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test5: Int' type=kotlin.Int origin=null FUN name: visibility:private modality:FINAL <> (:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: @@ -57,7 +57,7 @@ FILE fqName: fileName:/packageLevelProperties.kt CONST Int type=kotlin.Int value=1 FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test6: Int' type=kotlin.Int origin=null PROPERTY name:test7 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval FIELD DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private @@ -67,12 +67,12 @@ FILE fqName: fileName:/packageLevelProperties.kt initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test7$delegate`: Lazy' type=kotlin.Lazy origin=null @@ -86,7 +86,7 @@ FILE fqName: fileName:/packageLevelProperties.kt : Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Int' type=kotlin.Int origin=null : Int : Int @@ -96,7 +96,7 @@ FILE fqName: fileName:/packageLevelProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Int): Unit' + RETURN type=kotlin.Nothing from='(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int) on MutableMap: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_FIELD '`test8$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null diff --git a/compiler/testData/ir/irText/declarations/parameters/constructor.txt b/compiler/testData/ir/irText/declarations/parameters/constructor.txt index f861be53f13..d2b77756811 100644 --- a/compiler/testData/ir/irText/declarations/parameters/constructor.txt +++ b/compiler/testData/ir/irText/declarations/parameters/constructor.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:T1 flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T1' + RETURN type=kotlin.Nothing from='(): T1' GET_FIELD 'x: T1' type=T1 origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY name:y type:T2 visibility:public modality:FINAL flags:val @@ -26,7 +26,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:T2 flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T2' + RETURN type=kotlin.Nothing from='(): T2' GET_FIELD 'y: T2' type=T2 origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -51,7 +51,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:String flags: $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null CLASS CLASS name:TestInner modality:FINAL visibility:public flags: @@ -70,7 +70,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2.TestInner) returnType:Z flags: $this: VALUE_PARAMETER name: type:Test2.TestInner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Z' + RETURN type=kotlin.Nothing from='(): Z' GET_FIELD 'z: Z' type=Z origin=null receiver: GET_VAR 'this@TestInner: TestInner' type=Test2.TestInner origin=null CONSTRUCTOR visibility:public <> ($this:Test2, z:Z, i:kotlin.Int) returnType:Test2.TestInner flags: @@ -113,7 +113,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val @@ -123,7 +123,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:String flags: $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -148,7 +148,7 @@ FILE fqName: fileName:/constructor.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test4) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test4 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test4: Test4' type=Test4 origin=null CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test4 flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt index ff3fa5d1448..d91e8e1798c 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/dataClassMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:T flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T' + RETURN type=kotlin.Nothing from='(): T' GET_FIELD 'x: T' type=T origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val @@ -27,19 +27,19 @@ FILE fqName: fileName:/dataClassMembers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:String flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test) returnType:T flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): T' + RETURN type=kotlin.Nothing from='component1(): T' CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:Test) returnType:String flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2(): String' + RETURN type=kotlin.Nothing from='component2(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test, x:T, y:kotlin.String) returnType:Test flags: @@ -53,7 +53,7 @@ FILE fqName: fileName:/dataClassMembers.kt CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(T = ..., String = ...): Test' + RETURN type=kotlin.Nothing from='copy(T = ..., String = ...): Test' CALL 'constructor Test(T, String = ...)' type=Test origin=null : null x: GET_VAR 'value-parameter x: T = ...' type=T origin=null @@ -61,7 +61,7 @@ FILE fqName: fileName:/dataClassMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test) returnType:String flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Test( CONST String type=kotlin.String value=x= @@ -101,7 +101,7 @@ FILE fqName: fileName:/dataClassMembers.kt other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:Test flags: @@ -112,13 +112,13 @@ FILE fqName: fileName:/dataClassMembers.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test: Test' type=Test origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test flags:val TYPE_OP type=Test origin=CAST typeOperand=Test @@ -131,7 +131,7 @@ FILE fqName: fileName:/dataClassMembers.kt $this: GET_VAR 'this@Test: Test' type=Test origin=null arg1: CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test' type=Test origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -141,8 +141,8 @@ FILE fqName: fileName:/dataClassMembers.kt $this: GET_VAR 'this@Test: Test' type=Test origin=null arg1: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test' type=Test origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt index 04d0fd37600..a7e835d1b74 100644 --- a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt +++ b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:var FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public @@ -13,7 +13,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: @@ -33,7 +33,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'testMember1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null PROPERTY name:testMember2 type:kotlin.Int visibility:public modality:FINAL flags:var @@ -43,7 +43,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'testMember2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host, :kotlin.Int) returnType:Unit flags: @@ -78,7 +78,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:InPrimaryCtor) returnType:T flags: $this: VALUE_PARAMETER name: type:InPrimaryCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T' + RETURN type=kotlin.Nothing from='(): T' GET_FIELD 'testInPrimaryCtor1: T' type=T origin=null receiver: GET_VAR 'this@InPrimaryCtor: InPrimaryCtor' type=InPrimaryCtor origin=null PROPERTY name:testInPrimaryCtor2 type:kotlin.Int visibility:public modality:FINAL flags:var @@ -88,7 +88,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:InPrimaryCtor) returnType:Int flags: $this: VALUE_PARAMETER name: type:InPrimaryCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'testInPrimaryCtor2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@InPrimaryCtor: InPrimaryCtor' type=InPrimaryCtor origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:InPrimaryCtor, :kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt index 4660d6b48b6..148b8e06916 100644 --- a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt @@ -56,7 +56,7 @@ FILE fqName: fileName:/delegatedMembers.kt FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CALL '(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test$IBase$delegate`: IBase' type=IBase origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null diff --git a/compiler/testData/ir/irText/declarations/parameters/lambdas.txt b/compiler/testData/ir/irText/declarations/parameters/lambdas.txt index 298a7a0afae..2fe527f55d9 100644 --- a/compiler/testData/ir/irText/declarations/parameters/lambdas.txt +++ b/compiler/testData/ir/irText/declarations/parameters/lambdas.txt @@ -6,12 +6,12 @@ FILE fqName: fileName:/lambdas.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:String flags: VALUE_PARAMETER name:it index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(String): String' + RETURN type=kotlin.Nothing from='(String): String' GET_VAR 'value-parameter it: String' type=kotlin.String origin=null FUNCTION_REFERENCE '(String): String' type=(kotlin.String) -> kotlin.String origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): (String) -> String' + RETURN type=kotlin.Nothing from='(): (String) -> String' GET_FIELD 'test1: (String) -> String' type=(kotlin.String) -> kotlin.String origin=null PROPERTY name:test2 type:kotlin.Any.(kotlin.Any) -> kotlin.Any visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Any.(kotlin.Any) -> kotlin.Any visibility:public @@ -21,13 +21,13 @@ FILE fqName: fileName:/lambdas.kt $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: VALUE_PARAMETER name:it index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Any) on Any: Int' + RETURN type=kotlin.Nothing from='(Any) on Any: Int' CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter it: Any' type=kotlin.Any origin=null FUNCTION_REFERENCE '(Any) on Any: Int' type=kotlin.Any.(kotlin.Any) -> kotlin.Int origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[@kotlin.ExtensionFunctionType] Function2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any.(Any) -> Any' + RETURN type=kotlin.Nothing from='(): Any.(Any) -> Any' GET_FIELD 'test2: Any.(Any) -> Any' type=kotlin.Any.(kotlin.Any) -> kotlin.Any origin=null PROPERTY name:test3 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public @@ -37,12 +37,12 @@ FILE fqName: fileName:/lambdas.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: VALUE_PARAMETER name:j index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(Int, Int): Unit' + RETURN type=kotlin.Nothing from='(Int, Int): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(Int, Int): Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): (Int, Int) -> Unit' + RETURN type=kotlin.Nothing from='(): (Int, Int) -> Unit' GET_FIELD 'test3: (Int, Int) -> Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=null PROPERTY name:test4 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public @@ -55,6 +55,6 @@ FILE fqName: fileName:/lambdas.kt FUNCTION_REFERENCE '(Int, Int): Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=ANONYMOUS_FUNCTION FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): (Int, Int) -> Unit' + RETURN type=kotlin.Nothing from='(): (Int, Int) -> Unit' GET_FIELD 'test4: (Int, Int) -> Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt index 75e4cd1cca3..94842c12312 100644 --- a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt +++ b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt @@ -2,12 +2,12 @@ FILE fqName: fileName:/propertyAccessors.kt PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: @@ -16,13 +16,13 @@ FILE fqName: fileName:/propertyAccessors.kt FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: Int' + RETURN type=kotlin.Nothing from='() on String: Int' CONST Int type=kotlin.Int value=42 PROPERTY name:testExt2 type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: Int' + RETURN type=kotlin.Nothing from='() on String: Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String, value:kotlin.Int) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: @@ -32,13 +32,13 @@ FILE fqName: fileName:/propertyAccessors.kt FUN name: visibility:public modality:FINAL <> ($receiver:T) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:T flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on T: Int' + RETURN type=kotlin.Nothing from='() on T: Int' CONST Int type=kotlin.Int value=42 PROPERTY name:testExt4 type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> ($receiver:T) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:T flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on T: Int' + RETURN type=kotlin.Nothing from='() on T: Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> ($receiver:T, value:kotlin.Int) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:T flags: @@ -55,13 +55,13 @@ FILE fqName: fileName:/propertyAccessors.kt FUN name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 PROPERTY name:testMem2 type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> ($this:Host, value:kotlin.Int) returnType:Unit flags: $this: VALUE_PARAMETER name: type:Host flags: @@ -72,14 +72,14 @@ FILE fqName: fileName:/propertyAccessors.kt $this: VALUE_PARAMETER name: type:Host flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: Int' + RETURN type=kotlin.Nothing from='() on String: Int' CONST Int type=kotlin.Int value=42 PROPERTY name:testMemExt2 type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: Int' + RETURN type=kotlin.Nothing from='() on String: Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String, value:kotlin.Int) returnType:Unit flags: $this: VALUE_PARAMETER name: type:Host flags: @@ -91,14 +91,14 @@ FILE fqName: fileName:/propertyAccessors.kt $this: VALUE_PARAMETER name: type:Host flags: $receiver: VALUE_PARAMETER name: type:TT flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on TT: Int' + RETURN type=kotlin.Nothing from='() on TT: Int' CONST Int type=kotlin.Int value=42 PROPERTY name:testMemExt4 type:kotlin.Int visibility:public modality:FINAL flags:var FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:TT) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: $receiver: VALUE_PARAMETER name: type:TT flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on TT: Int' + RETURN type=kotlin.Nothing from='() on TT: Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:TT, value:kotlin.Int) returnType:Unit flags: $this: VALUE_PARAMETER name: type:Host flags: diff --git a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt index 90d590939e2..7f59de86c4c 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/primaryCtorDefaultArguments.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:Int flags: $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt b/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt index 64463d39224..0518f000153 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/primaryCtorProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:var @@ -24,7 +24,7 @@ FILE fqName: fileName:/primaryCtorProperties.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt index dbc2e9f9f21..79ea932b427 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/differentReceivers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:MyClass) returnType:String flags: $this: VALUE_PARAMETER name: type:MyClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@MyClass: MyClass' type=MyClass origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -28,7 +28,7 @@ FILE fqName: fileName:/differentReceivers.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any) on MyClass: String' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on MyClass: String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@provideDelegate: MyClass' type=MyClass origin=null FUN name:getValue visibility:public modality:FINAL <> ($receiver:kotlin.String, receiver:kotlin.Any?, p:kotlin.Any) returnType:String flags: @@ -36,7 +36,7 @@ FILE fqName: fileName:/differentReceivers.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(Any?, Any) on String: String' + RETURN type=kotlin.Nothing from='getValue(Any?, Any) on String: String' GET_VAR 'this@getValue: String' type=kotlin.String origin=null PROPERTY name:testO type:kotlin.String visibility:public modality:FINAL flags:delegatedmval FIELD DELEGATE name:testO$delegate type:kotlin.String visibility:private @@ -48,7 +48,7 @@ FILE fqName: fileName:/differentReceivers.kt p: PROPERTY_REFERENCE 'testO: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_FIELD '`testO$delegate`: String' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null @@ -59,7 +59,7 @@ FILE fqName: fileName:/differentReceivers.kt CONST String type=kotlin.String value=K FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_FIELD '`testK$delegate`: String' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null @@ -72,6 +72,6 @@ FILE fqName: fileName:/differentReceivers.kt other: CALL '(): String' type=kotlin.String origin=GET_PROPERTY FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'testOK: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/local.txt b/compiler/testData/ir/irText/declarations/provideDelegate/local.txt index 112aa310450..9514f8f4aaa 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/local.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/local.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/local.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Delegate) returnType:String flags: $this: VALUE_PARAMETER name: type:Delegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null FUN name:getValue visibility:public modality:FINAL <> ($this:Delegate, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:String flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/local.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(Any?, Any?): String' + RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -45,7 +45,7 @@ FILE fqName: fileName:/local.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:DelegateProvider) returnType:String flags: $this: VALUE_PARAMETER name: type:DelegateProvider flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null FUN name:provideDelegate visibility:public modality:FINAL <> ($this:DelegateProvider, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:Delegate flags: @@ -53,7 +53,7 @@ FILE fqName: fileName:/local.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any?): Delegate' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate' CALL 'constructor Delegate(String)' type=Delegate origin=null value: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null @@ -75,7 +75,7 @@ FILE fqName: fileName:/local.kt property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testMember: String' delegate='`testMember$delegate`: Delegate' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null $this: GET_VAR '`testMember$delegate`: Delegate' type=Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt index 8e2f0ed9efd..6c281840a86 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:MyClass) returnType:String flags: $this: VALUE_PARAMETER name: type:MyClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@MyClass: MyClass' type=MyClass origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -28,7 +28,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any) on MyClass: String' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on MyClass: String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@provideDelegate: MyClass' type=MyClass origin=null FUN name:getValue visibility:public modality:FINAL <> ($receiver:kotlin.String, receiver:kotlin.Any?, p:kotlin.Any) returnType:String flags: @@ -36,7 +36,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(Any?, Any) on String: String' + RETURN type=kotlin.Nothing from='getValue(Any?, Any) on String: String' GET_VAR 'this@getValue: String' type=kotlin.String origin=null FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY @@ -49,7 +49,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testO: String' delegate='`testO$delegate`: String' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_VAR '`testO$delegate`: String' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null @@ -59,7 +59,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt CONST String type=kotlin.String value=K FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_VAR '`testK$delegate`: String' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null @@ -68,6 +68,6 @@ FILE fqName: fileName:/localDifferentReceivers.kt CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL '(): String' type=kotlin.String origin=GET_LOCAL_PROPERTY other: CALL '(): String' type=kotlin.String origin=GET_LOCAL_PROPERTY - RETURN type=kotlin.Nothing from=box(): String' + RETURN type=kotlin.Nothing from='box(): String' GET_VAR 'testOK: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/member.txt b/compiler/testData/ir/irText/declarations/provideDelegate/member.txt index ade88831848..9e29faf89b8 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/member.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/member.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/member.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Delegate) returnType:String flags: $this: VALUE_PARAMETER name: type:Delegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null FUN name:getValue visibility:public modality:FINAL <> ($this:Delegate, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:String flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/member.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(Any?, Any?): String' + RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -45,7 +45,7 @@ FILE fqName: fileName:/member.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:DelegateProvider) returnType:String flags: $this: VALUE_PARAMETER name: type:DelegateProvider flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null FUN name:provideDelegate visibility:public modality:FINAL <> ($this:DelegateProvider, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:Delegate flags: @@ -53,7 +53,7 @@ FILE fqName: fileName:/member.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any?): Delegate' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate' CALL 'constructor Delegate(String)' type=Delegate origin=null value: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null @@ -81,7 +81,7 @@ FILE fqName: fileName:/member.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:String flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null $this: GET_FIELD '`testMember$delegate`: Delegate' type=Delegate origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt index 05083fd9281..0e20c11c9c1 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt @@ -19,7 +19,7 @@ FILE fqName: fileName:/memberExtension.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host.StringDelegate) returnType:String flags: $this: VALUE_PARAMETER name: type:Host.StringDelegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 's: String' type=kotlin.String origin=null receiver: GET_VAR 'this@StringDelegate: StringDelegate' type=Host.StringDelegate origin=null FUN name:getValue visibility:public modality:FINAL <> ($this:Host.StringDelegate, receiver:kotlin.String, p:kotlin.Any) returnType:String flags: @@ -27,7 +27,7 @@ FILE fqName: fileName:/memberExtension.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.String flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(String, Any): String' + RETURN type=kotlin.Nothing from='getValue(String, Any): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter receiver: String' type=kotlin.String origin=null other: CALL '(): String' type=kotlin.String origin=GET_PROPERTY @@ -45,7 +45,7 @@ FILE fqName: fileName:/memberExtension.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any) on String: Host.StringDelegate' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on String: Host.StringDelegate' CALL 'constructor StringDelegate(String)' type=Host.StringDelegate origin=null s: GET_VAR 'this@provideDelegate: String' type=kotlin.String origin=null PROPERTY name:plusK type:kotlin.String visibility:public modality:FINAL flags:delegatedmval @@ -60,7 +60,7 @@ FILE fqName: fileName:/memberExtension.kt $this: VALUE_PARAMETER name: type:Host flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: String' + RETURN type=kotlin.Nothing from='() on String: String' CALL 'getValue(String, Any): String' type=kotlin.String origin=null $this: GET_FIELD '`plusK$delegate`: Host.StringDelegate' type=Host.StringDelegate origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null @@ -75,7 +75,7 @@ FILE fqName: fileName:/memberExtension.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:String flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'ok: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt index dc58de751c7..e7b6ef03beb 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/topLevel.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Delegate) returnType:String flags: $this: VALUE_PARAMETER name: type:Delegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null FUN name:getValue visibility:public modality:FINAL <> ($this:Delegate, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:String flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/topLevel.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(Any?, Any?): String' + RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -45,7 +45,7 @@ FILE fqName: fileName:/topLevel.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:DelegateProvider) returnType:String flags: $this: VALUE_PARAMETER name: type:DelegateProvider flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null FUN name:provideDelegate visibility:public modality:FINAL <> ($this:DelegateProvider, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:Delegate flags: @@ -53,7 +53,7 @@ FILE fqName: fileName:/topLevel.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any?): Delegate' + RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate' CALL 'constructor Delegate(String)' type=Delegate origin=null value: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null @@ -74,7 +74,7 @@ FILE fqName: fileName:/topLevel.kt property: PROPERTY_REFERENCE 'testTopLevel: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null $this: GET_FIELD '`testTopLevel$delegate`: Delegate' type=Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/errors/unresolvedReference.txt b/compiler/testData/ir/irText/errors/unresolvedReference.txt index 440938ef06b..7e9fc81f850 100644 --- a/compiler/testData/ir/irText/errors/unresolvedReference.txt +++ b/compiler/testData/ir/irText/errors/unresolvedReference.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/unresolvedReference.kt ERROR_CALL '' type=[ERROR : ] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Type for unresolved] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): [ERROR : Type for unresolved]' + RETURN type=kotlin.Nothing from='(): [ERROR : Type for unresolved]' GET_FIELD 'test1: [ERROR : Type for unresolved]' type=[ERROR : Type for unresolved] origin=null PROPERTY name:test2 type:[ERROR : Unresolved] visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:[ERROR : Unresolved] visibility:public @@ -13,7 +13,7 @@ FILE fqName: fileName:/unresolvedReference.kt ERROR_CALL '' type=[ERROR : ] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Unresolved] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): [ERROR : Unresolved]' + RETURN type=kotlin.Nothing from='(): [ERROR : Unresolved]' GET_FIELD 'test2: [ERROR : Unresolved]' type=[ERROR : Unresolved] origin=null PROPERTY name:test3 type:[ERROR : Type for 42.unresolved(56)] visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:[ERROR : Type for 42.unresolved(56)] visibility:public @@ -23,7 +23,7 @@ FILE fqName: fileName:/unresolvedReference.kt CONST Int type=kotlin.Int value=56 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Type for 42.unresolved(56)] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): [ERROR : Type for 42.unresolved(56)]' + RETURN type=kotlin.Nothing from='(): [ERROR : Type for 42.unresolved(56)]' GET_FIELD 'test3: [ERROR : Type for 42.unresolved(56)]' type=[ERROR : Type for 42.unresolved(56)] origin=null PROPERTY name:test4 type:[ERROR : Type for 42 *] visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:[ERROR : Type for 42 *] visibility:public @@ -31,6 +31,6 @@ FILE fqName: fileName:/unresolvedReference.kt ERROR_EXPR '' type=[ERROR : ] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Type for 42 *] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): [ERROR : Type for 42 *]' + RETURN type=kotlin.Nothing from='(): [ERROR : Type for 42 *]' GET_FIELD 'test4: [ERROR : Type for 42 *]' type=[ERROR : Type for 42 *] origin=null diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt index 04f418254c5..7b30a4041cd 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/argumentMappedWithError.kt TYPE_PARAMETER name:R index:0 variance: upperBounds:[kotlin.Number] $receiver: VALUE_PARAMETER name: type:kotlin.Number flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=convert() on Number: R' + RETURN type=kotlin.Nothing from='convert() on Number: R' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Number) returnType:Unit flags: VALUE_PARAMETER name:arg index:0 type:kotlin.Number flags: diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.txt b/compiler/testData/ir/irText/expressions/arrayAccess.txt index 2baf64233b5..ed6fed0fdce 100644 --- a/compiler/testData/ir/irText/expressions/arrayAccess.txt +++ b/compiler/testData/ir/irText/expressions/arrayAccess.txt @@ -5,16 +5,16 @@ FILE fqName: fileName:/arrayAccess.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'p: Int' type=kotlin.Int origin=null FUN name:foo visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): Int' + RETURN type=kotlin.Nothing from='foo(): Int' CONST Int type=kotlin.Int value=1 FUN name:test visibility:public modality:FINAL <> (a:kotlin.IntArray) returnType:Int flags: VALUE_PARAMETER name:a index:0 type:kotlin.IntArray flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(IntArray): Int' + RETURN type=kotlin.Nothing from='test(IntArray): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL 'get(Int): Int' type=kotlin.Int origin=GET_ARRAY_ELEMENT diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.txt b/compiler/testData/ir/irText/expressions/arrayAssignment.txt index 7d6ea3fd181..c23e1f0c0c1 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.txt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/arrayAssignment.kt value: CONST Int type=kotlin.Int value=0 FUN name:foo visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): Int' + RETURN type=kotlin.Nothing from='foo(): Int' CONST Int type=kotlin.Int value=1 FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt index edc81cb8e37..d8e8344e62f 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt FUN name:foo visibility:public modality:FINAL <> () returnType:IntArray flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): IntArray' + RETURN type=kotlin.Nothing from='foo(): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int CONST Int type=kotlin.Int value=1 @@ -9,7 +9,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CONST Int type=kotlin.Int value=3 FUN name:bar visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(): Int' + RETURN type=kotlin.Nothing from='bar(): Int' CONST Int type=kotlin.Int value=42 CLASS CLASS name:C modality:FINAL visibility:public flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: @@ -25,7 +25,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:IntArray flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): IntArray' + RETURN type=kotlin.Nothing from='(): IntArray' GET_FIELD 'x: IntArray' type=kotlin.IntArray origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/expressions/assignments.txt b/compiler/testData/ir/irText/expressions/assignments.txt index e2f9249d2e0..2eaeb3a473b 100644 --- a/compiler/testData/ir/irText/expressions/assignments.txt +++ b/compiler/testData/ir/irText/expressions/assignments.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/assignments.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref) returnType:Int flags: $this: VALUE_PARAMETER name: type:Ref flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref, :kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt index d25a03ea26f..421915a9a74 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/augmentedAssignment1.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'p: Int' type=kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt index d7093d7d452..650e5a5ed12 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt @@ -38,7 +38,7 @@ FILE fqName: fileName:/augmentedAssignment2.kt CALL 'constructor A()' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): A' + RETURN type=kotlin.Nothing from='(): A' GET_FIELD 'p: A' type=A origin=null FUN name:testVariable visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt index 209272fe793..21a1e3b562e 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt @@ -24,7 +24,7 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt $this: VALUE_PARAMETER name: type:kotlin.Any flags: FUN name:foo visibility:public modality:FINAL <> () returnType:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): Host' + RETURN type=kotlin.Nothing from='foo(): Host' CALL 'constructor Host()' type=Host origin=null FUN name:test2 visibility:public modality:FINAL <> ($receiver:Host) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:Host flags: diff --git a/compiler/testData/ir/irText/expressions/bangbang.txt b/compiler/testData/ir/irText/expressions/bangbang.txt index 9ddee8e6d6c..5b50e209913 100644 --- a/compiler/testData/ir/irText/expressions/bangbang.txt +++ b/compiler/testData/ir/irText/expressions/bangbang.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/bangbang.kt FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any?) returnType:Any flags: VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Any?): Any' + RETURN type=kotlin.Nothing from='test1(Any?): Any' BLOCK type=kotlin.Any origin=EXCLEXCL VAR IR_TEMPORARY_VARIABLE name:tmp0_notnull type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null @@ -18,7 +18,7 @@ FILE fqName: fileName:/bangbang.kt FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any?) returnType:Int flags: VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Any?): Int' + RETURN type=kotlin.Nothing from='test2(Any?): Int' BLOCK type=kotlin.Int origin=EXCLEXCL VAR IR_TEMPORARY_VARIABLE name:tmp1_notnull type:kotlin.Int? flags:val BLOCK type=kotlin.Int? origin=SAFE_CALL diff --git a/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt b/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt index 422297ed1a1..dde11602318 100644 --- a/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt +++ b/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/booleanConstsInAndAndOrOr.kt WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null - then: RETURN type=kotlin.Nothing from=test1(Boolean): Unit' + then: RETURN type=kotlin.Nothing from='test1(Boolean): Unit' GET_OBJECT 'Unit' type=kotlin.Unit BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -21,6 +21,6 @@ FILE fqName: fileName:/booleanConstsInAndAndOrOr.kt then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: RETURN type=kotlin.Nothing from=test2(Boolean): Unit' + then: RETURN type=kotlin.Nothing from='test2(Boolean): Unit' GET_OBJECT 'Unit' type=kotlin.Unit diff --git a/compiler/testData/ir/irText/expressions/booleanOperators.txt b/compiler/testData/ir/irText/expressions/booleanOperators.txt index c21c746d0d4..50f58373933 100644 --- a/compiler/testData/ir/irText/expressions/booleanOperators.txt +++ b/compiler/testData/ir/irText/expressions/booleanOperators.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/booleanOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from='test1(Boolean, Boolean): Boolean' WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null @@ -15,7 +15,7 @@ FILE fqName: fileName:/booleanOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from='test2(Boolean, Boolean): Boolean' WHEN type=kotlin.Boolean origin=OROR BRANCH if: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null @@ -27,7 +27,7 @@ FILE fqName: fileName:/booleanOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1x(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from='test1x(Boolean, Boolean): Boolean' CALL 'and(Boolean): Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null other: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null @@ -35,7 +35,7 @@ FILE fqName: fileName:/booleanOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2x(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from='test2x(Boolean, Boolean): Boolean' CALL 'or(Boolean): Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null other: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null diff --git a/compiler/testData/ir/irText/expressions/boundCallableReferences.txt b/compiler/testData/ir/irText/expressions/boundCallableReferences.txt index 3e75a0331b2..2898de872cd 100644 --- a/compiler/testData/ir/irText/expressions/boundCallableReferences.txt +++ b/compiler/testData/ir/irText/expressions/boundCallableReferences.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/boundCallableReferences.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -35,7 +35,7 @@ FILE fqName: fileName:/boundCallableReferences.kt $this: CALL 'constructor A()' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test1: KFunction0' type=kotlin.reflect.KFunction0 origin=null PROPERTY name:test2 type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KProperty0 visibility:public @@ -44,7 +44,7 @@ FILE fqName: fileName:/boundCallableReferences.kt $this: CALL 'constructor A()' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KProperty0' + RETURN type=kotlin.Nothing from='(): KProperty0' GET_FIELD 'test2: KProperty0' type=kotlin.reflect.KProperty0 origin=null PROPERTY name:test3 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.reflect.KFunction0 visibility:public @@ -53,6 +53,6 @@ FILE fqName: fileName:/boundCallableReferences.kt $receiver: CALL 'constructor A()' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test3: KFunction0' type=kotlin.reflect.KFunction0 origin=null diff --git a/compiler/testData/ir/irText/expressions/boxOk.txt b/compiler/testData/ir/irText/expressions/boxOk.txt index f027bbdf968..1ca9e4429c6 100644 --- a/compiler/testData/ir/irText/expressions/boxOk.txt +++ b/compiler/testData/ir/irText/expressions/boxOk.txt @@ -1,6 +1,6 @@ FILE fqName: fileName:/boxOk.kt FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=box(): String' + RETURN type=kotlin.Nothing from='box(): String' CONST String type=kotlin.String value=OK diff --git a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt index e86516dd9db..a3fcc2917cd 100644 --- a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt +++ b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt @@ -5,19 +5,19 @@ FILE fqName: fileName:/callWithReorderedArguments.kt BLOCK_BODY FUN name:noReorder1 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=noReorder1(): Int' + RETURN type=kotlin.Nothing from='noReorder1(): Int' CONST Int type=kotlin.Int value=1 FUN name:noReorder2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=noReorder2(): Int' + RETURN type=kotlin.Nothing from='noReorder2(): Int' CONST Int type=kotlin.Int value=2 FUN name:reordered1 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=reordered1(): Int' + RETURN type=kotlin.Nothing from='reordered1(): Int' CONST Int type=kotlin.Int value=1 FUN name:reordered2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=reordered2(): Int' + RETURN type=kotlin.Nothing from='reordered2(): Int' CONST Int type=kotlin.Int value=2 FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt b/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt index 74e24d81956..8edbac592bb 100644 --- a/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt +++ b/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/callableRefToGenericMember.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -32,7 +32,7 @@ FILE fqName: fileName:/callableRefToGenericMember.kt FUNCTION_REFERENCE 'foo(): Unit' type=kotlin.reflect.KFunction1, kotlin.Unit> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction1, Unit> flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction1, Unit>' + RETURN type=kotlin.Nothing from='(): KFunction1, Unit>' GET_FIELD 'test1: KFunction1, Unit>' type=kotlin.reflect.KFunction1, kotlin.Unit> origin=null PROPERTY name:test2 type:kotlin.reflect.KProperty1, kotlin.Int> visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KProperty1, kotlin.Int> visibility:public @@ -40,6 +40,6 @@ FILE fqName: fileName:/callableRefToGenericMember.kt PROPERTY_REFERENCE 'bar: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty1, kotlin.Int> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty1, Int> flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KProperty1, Int>' + RETURN type=kotlin.Nothing from='(): KProperty1, Int>' GET_FIELD 'test2: KProperty1, Int>' type=kotlin.reflect.KProperty1, kotlin.Int> origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt b/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt index dd6d8501d69..c44afba3e3d 100644 --- a/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt @@ -12,13 +12,13 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:test.Foo) returnType:String flags: $this: VALUE_PARAMETER name: type:test.Foo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'a: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Foo: Foo' type=test.Foo origin=null FUN name:foo visibility:public modality:FINAL <> ($this:test.Foo) returnType:String flags: $this: VALUE_PARAMETER name: type:test.Foo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): String' + RETURN type=kotlin.Nothing from='foo(): String' CONST String type=kotlin.String value= FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -34,7 +34,7 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt $this: GET_OBJECT 'Foo' type=test.Foo FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KProperty0' + RETURN type=kotlin.Nothing from='(): KProperty0' GET_FIELD 'test1: KProperty0' type=kotlin.reflect.KProperty0 origin=null PROPERTY name:test1a type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test1a type:kotlin.reflect.KProperty0 visibility:public @@ -43,7 +43,7 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt $this: GET_OBJECT 'Foo' type=test.Foo FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KProperty0' + RETURN type=kotlin.Nothing from='(): KProperty0' GET_FIELD 'test1a: KProperty0' type=kotlin.reflect.KProperty0 origin=null PROPERTY name:test2 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KFunction0 visibility:public @@ -52,7 +52,7 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt $this: GET_OBJECT 'Foo' type=test.Foo FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test2: KFunction0' type=kotlin.reflect.KFunction0 origin=null PROPERTY name:test2a type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2a type:kotlin.reflect.KFunction0 visibility:public @@ -61,6 +61,6 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt $this: GET_OBJECT 'Foo' type=test.Foo FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test2a: KFunction0' type=kotlin.reflect.KFunction0 origin=null diff --git a/compiler/testData/ir/irText/expressions/calls.txt b/compiler/testData/ir/irText/expressions/calls.txt index 034d6ce9d35..8dac391dbd6 100644 --- a/compiler/testData/ir/irText/expressions/calls.txt +++ b/compiler/testData/ir/irText/expressions/calls.txt @@ -3,19 +3,19 @@ FILE fqName: fileName:/calls.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(Int, Int): Int' + RETURN type=kotlin.Nothing from='foo(Int, Int): Int' GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null FUN name:bar visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(Int): Int' + RETURN type=kotlin.Nothing from='bar(Int): Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null y: CONST Int type=kotlin.Int value=1 FUN name:qux visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=qux(Int): Int' + RETURN type=kotlin.Nothing from='qux(Int): Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null @@ -24,13 +24,13 @@ FILE fqName: fileName:/calls.kt FUN name:ext1 visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ext1() on Int: Int' + RETURN type=kotlin.Nothing from='ext1() on Int: Int' GET_VAR 'this@ext1: Int' type=kotlin.Int origin=null FUN name:ext2 visibility:public modality:FINAL <> ($receiver:kotlin.Int, x:kotlin.Int) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ext2(Int) on Int: Int' + RETURN type=kotlin.Nothing from='ext2(Int) on Int: Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: GET_VAR 'this@ext2: Int' type=kotlin.Int origin=null y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null @@ -38,7 +38,7 @@ FILE fqName: fileName:/calls.kt $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ext3(Int) on Int: Int' + RETURN type=kotlin.Nothing from='ext3(Int) on Int: Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: CALL 'ext1() on Int: Int' type=kotlin.Int origin=null $receiver: GET_VAR 'this@ext3: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/catchParameterAccess.txt b/compiler/testData/ir/irText/expressions/catchParameterAccess.txt index 0e9fc775220..df9b790baa9 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.txt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/catchParameterAccess.kt FUN name:test visibility:public modality:FINAL <> (f:() -> kotlin.Unit) returnType:Unit flags: VALUE_PARAMETER name:f index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(() -> Unit): Unit' + RETURN type=kotlin.Nothing from='test(() -> Unit): Unit' TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null CALL 'invoke(): Unit' type=kotlin.Unit origin=INVOKE diff --git a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt index c89139fd7b8..aa6bb1a6f5b 100644 --- a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt +++ b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt @@ -8,12 +8,12 @@ FILE fqName: fileName:/chainOfSafeCalls.kt FUN name:foo visibility:public modality:FINAL <> ($this:C) returnType:C flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): C' + RETURN type=kotlin.Nothing from='foo(): C' GET_VAR 'this@C: C' type=C origin=null FUN name:bar visibility:public modality:FINAL <> ($this:C) returnType:C? flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=bar(): C?' + RETURN type=kotlin.Nothing from='bar(): C?' GET_VAR 'this@C: C' type=C origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -25,7 +25,7 @@ FILE fqName: fileName:/chainOfSafeCalls.kt FUN name:test visibility:public modality:FINAL <> (nc:C?) returnType:C? flags: VALUE_PARAMETER name:nc index:0 type:C? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(C?): C?' + RETURN type=kotlin.Nothing from='test(C?): C?' BLOCK type=C? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp3_safe_receiver type:C? flags:val BLOCK type=C? origin=SAFE_CALL diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.txt index 912204b3045..5122f78d89a 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.txt @@ -5,13 +5,13 @@ FILE fqName: fileName:/coercionToUnit.kt BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): () -> Unit' + RETURN type=kotlin.Nothing from='(): () -> Unit' GET_FIELD 'test1: () -> Unit' type=() -> kotlin.Unit origin=null FUN name:test2 visibility:public modality:FINAL <> (mc:kotlin.collections.MutableCollection) returnType:Unit flags: VALUE_PARAMETER name:mc index:0 type:kotlin.collections.MutableCollection flags: diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt index 019575b5418..b06adc96960 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1) returnType:Int flags: $this: VALUE_PARAMETER name: type:X1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@X1: X1' type=X1 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1, :kotlin.Int) returnType:Unit flags: @@ -35,7 +35,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2) returnType:Int flags: $this: VALUE_PARAMETER name: type:X1.X2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2, :kotlin.Int) returnType:Unit flags: @@ -58,7 +58,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2.X3) returnType:Int flags: $this: VALUE_PARAMETER name: type:X1.X2.X3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x3: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2.X3, :kotlin.Int) returnType:Unit flags: @@ -173,7 +173,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:B) returnType:Int flags: $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 's: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@B: B' type=B origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:B, :kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/expressions/contructorCall.txt b/compiler/testData/ir/irText/expressions/contructorCall.txt index fa7b9bcb64a..3eb160d4e9b 100644 --- a/compiler/testData/ir/irText/expressions/contructorCall.txt +++ b/compiler/testData/ir/irText/expressions/contructorCall.txt @@ -18,6 +18,6 @@ FILE fqName: fileName:/contructorCall.kt CALL 'constructor A()' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): A' + RETURN type=kotlin.Nothing from='(): A' GET_FIELD 'test: A' type=A origin=null diff --git a/compiler/testData/ir/irText/expressions/conventionComparisons.txt b/compiler/testData/ir/irText/expressions/conventionComparisons.txt index a767c8c4e96..2d1885f36c1 100644 --- a/compiler/testData/ir/irText/expressions/conventionComparisons.txt +++ b/compiler/testData/ir/irText/expressions/conventionComparisons.txt @@ -26,7 +26,7 @@ FILE fqName: fileName:/conventionComparisons.kt VALUE_PARAMETER name:a1 index:0 type:IA flags: VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from='test1(IA, IA) on IB: Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=GT $this: GET_VAR 'this@test1: IB' type=IB origin=null @@ -37,7 +37,7 @@ FILE fqName: fileName:/conventionComparisons.kt VALUE_PARAMETER name:a1 index:0 type:IA flags: VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from='test2(IA, IA) on IB: Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'this@test2: IB' type=IB origin=null @@ -48,7 +48,7 @@ FILE fqName: fileName:/conventionComparisons.kt VALUE_PARAMETER name:a1 index:0 type:IA flags: VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from='test3(IA, IA) on IB: Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=LT $this: GET_VAR 'this@test3: IB' type=IB origin=null @@ -59,7 +59,7 @@ FILE fqName: fileName:/conventionComparisons.kt VALUE_PARAMETER name:a1 index:0 type:IA flags: VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from='test4(IA, IA) on IB: Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'this@test4: IB' type=IB origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuring1.txt b/compiler/testData/ir/irText/expressions/destructuring1.txt index 1d95bea05df..ad27e43666a 100644 --- a/compiler/testData/ir/irText/expressions/destructuring1.txt +++ b/compiler/testData/ir/irText/expressions/destructuring1.txt @@ -22,13 +22,13 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER name: type:B flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1() on A: Int' + RETURN type=kotlin.Nothing from='component1() on A: Int' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:B flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2() on A: Int' + RETURN type=kotlin.Nothing from='component2() on A: Int' CONST Int type=kotlin.Int value=2 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt index 5525a447e3c..e17003c2dbd 100644 --- a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt +++ b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt @@ -22,19 +22,19 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER name: type:B flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1() on A: Int' + RETURN type=kotlin.Nothing from='component1() on A: Int' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:B flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2() on A: Int' + RETURN type=kotlin.Nothing from='component2() on A: Int' CONST Int type=kotlin.Int value=2 FUN name:component3 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:B flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component3() on A: Int' + RETURN type=kotlin.Nothing from='component3() on A: Int' CONST Int type=kotlin.Int value=3 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/dotQualified.txt b/compiler/testData/ir/irText/expressions/dotQualified.txt index 495f8673f60..8a1ce2e9c29 100644 --- a/compiler/testData/ir/irText/expressions/dotQualified.txt +++ b/compiler/testData/ir/irText/expressions/dotQualified.txt @@ -2,13 +2,13 @@ FILE fqName: fileName:/dotQualified.kt FUN name:length visibility:public modality:FINAL <> (s:kotlin.String) returnType:Int flags: VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=length(String): Int' + RETURN type=kotlin.Nothing from='length(String): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'value-parameter s: String' type=kotlin.String origin=null FUN name:lengthN visibility:public modality:FINAL <> (s:kotlin.String?) returnType:Int? flags: VALUE_PARAMETER name:s index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=lengthN(String?): Int?' + RETURN type=kotlin.Nothing from='lengthN(String?): Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter s: String?' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/expressions/elvis.txt b/compiler/testData/ir/irText/expressions/elvis.txt index a146c5baa14..4c5d7c3cd6e 100644 --- a/compiler/testData/ir/irText/expressions/elvis.txt +++ b/compiler/testData/ir/irText/expressions/elvis.txt @@ -5,17 +5,17 @@ FILE fqName: fileName:/elvis.kt CONST Null type=kotlin.Nothing? value=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Any?' + RETURN type=kotlin.Nothing from='(): Any?' GET_FIELD 'p: Any?' type=kotlin.Any? origin=null FUN name:foo visibility:public modality:FINAL <> () returnType:Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): Any?' + RETURN type=kotlin.Nothing from='foo(): Any?' CONST Null type=kotlin.Nothing? value=null FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any) returnType:Any flags: VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:b index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Any?, Any): Any' + RETURN type=kotlin.Nothing from='test1(Any?, Any): Any' BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null @@ -32,7 +32,7 @@ FILE fqName: fileName:/elvis.kt VALUE_PARAMETER name:a index:0 type:kotlin.String? flags: VALUE_PARAMETER name:b index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(String?, Any): Any' + RETURN type=kotlin.Nothing from='test2(String?, Any): Any' BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.String? flags:val GET_VAR 'value-parameter a: String?' type=kotlin.String? origin=null @@ -53,15 +53,15 @@ FILE fqName: fileName:/elvis.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=test3(Any?, Any?): String' + then: RETURN type=kotlin.Nothing from='test3(Any?, Any?): String' CONST String type=kotlin.String value= WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String? GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=test3(Any?, Any?): String' + then: RETURN type=kotlin.Nothing from='test3(Any?, Any?): String' CONST String type=kotlin.String value= - RETURN type=kotlin.Nothing from=test3(Any?, Any?): String' + RETURN type=kotlin.Nothing from='test3(Any?, Any?): String' BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null @@ -79,7 +79,7 @@ FILE fqName: fileName:/elvis.kt FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Any flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(Any): Any' + RETURN type=kotlin.Nothing from='test4(Any): Any' BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY @@ -95,7 +95,7 @@ FILE fqName: fileName:/elvis.kt FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Any flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5(Any): Any' + RETURN type=kotlin.Nothing from='test5(Any): Any' BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val CALL 'foo(): Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt index 92086e0dfac..bd928f7793a 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt @@ -21,7 +21,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X.B) returnType:String flags: $this: VALUE_PARAMETER name: type:X.B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'value2: String' type=kotlin.String origin=null receiver: GET_VAR 'this@B: B' type=X.B origin=null PROPERTY name:value type:() -> kotlin.String visibility:public modality:OPEN flags:val @@ -30,14 +30,14 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt BLOCK type=() -> kotlin.String origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_ENUM 'B' type=X.B FUNCTION_REFERENCE '(): String' type=() -> kotlin.String origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:X.B) returnType:Function0 flags: $this: VALUE_PARAMETER name: type:X.B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): () -> String' + RETURN type=kotlin.Nothing from='(): () -> String' GET_FIELD 'value: () -> String' type=() -> kotlin.String origin=null receiver: GET_VAR 'this@B: B' type=X.B origin=null FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: @@ -94,7 +94,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt SYNTHETIC_BODY kind=ENUM_VALUEOF FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=box(): String' + RETURN type=kotlin.Nothing from='box(): String' CALL 'invoke(): String' type=kotlin.String origin=INVOKE $this: CALL '(): () -> String' type=() -> kotlin.String origin=GET_PROPERTY $this: GET_ENUM 'B' type=X diff --git a/compiler/testData/ir/irText/expressions/equality.txt b/compiler/testData/ir/irText/expressions/equality.txt index 2d2a3c8e0b9..544e94915e4 100644 --- a/compiler/testData/ir/irText/expressions/equality.txt +++ b/compiler/testData/ir/irText/expressions/equality.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/equality.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='test1(Int, Int): Boolean' CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -11,7 +11,7 @@ FILE fqName: fileName:/equality.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='test2(Int, Int): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null @@ -20,7 +20,7 @@ FILE fqName: fileName:/equality.kt VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:b index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(Any?, Any?): Boolean' + RETURN type=kotlin.Nothing from='test3(Any?, Any?): Boolean' CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null arg1: GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt index cc655ca9cb8..7c6242ee3db 100644 --- a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt +++ b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/extFunInvokeAsFun.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:block index:1 type:kotlin.Any?.() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=with1(Any?, Any?.() -> Unit): Unit' + RETURN type=kotlin.Nothing from='with1(Any?, Any?.() -> Unit): Unit' CALL 'invoke(Any?): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter block: Any?.() -> Unit' type=kotlin.Any?.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'value-parameter receiver: Any?' type=kotlin.Any? origin=null @@ -11,7 +11,7 @@ FILE fqName: fileName:/extFunInvokeAsFun.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:block index:1 type:kotlin.Any?.() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=with2(Any?, Any?.() -> Unit): Unit' + RETURN type=kotlin.Nothing from='with2(Any?, Any?.() -> Unit): Unit' CALL 'invoke(Any?): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter block: Any?.() -> Unit' type=kotlin.Any?.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'value-parameter receiver: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt index 7458c6159d8..ae8271bfaf1 100644 --- a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt +++ b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/extFunSafeInvoke.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:fn index:1 type:kotlin.Any.(kotlin.Int, kotlin.String) -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(Any?, Any.(Int, String) -> Unit): Unit?' + RETURN type=kotlin.Nothing from='test(Any?, Any.(Int, String) -> Unit): Unit?' BLOCK type=kotlin.Unit? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? flags:val GET_VAR 'value-parameter receiver: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt b/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt index 494aff35837..c561b86f33c 100644 --- a/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt +++ b/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/extensionPropertyGetterCall.kt FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: String' + RETURN type=kotlin.Nothing from='() on String: String' CONST String type=kotlin.String value=OK FUN name:test5 visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5() on String: String' + RETURN type=kotlin.Nothing from='test5() on String: String' CALL '() on String: String' type=kotlin.String origin=GET_PROPERTY $receiver: GET_VAR 'this@test5: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/field.txt b/compiler/testData/ir/irText/expressions/field.txt index 7550158fb69..b3b2b0d510b 100644 --- a/compiler/testData/ir/irText/expressions/field.txt +++ b/compiler/testData/ir/irText/expressions/field.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/field.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'testSimple: Int' type=kotlin.Int origin=null FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: @@ -18,7 +18,7 @@ FILE fqName: fileName:/field.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'testAugmented: Int' type=kotlin.Int origin=null FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt index e8f9835db84..de3a968cee6 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt @@ -26,7 +26,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:IntCell) returnType:Int flags: $this: VALUE_PARAMETER name: type:IntCell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@IntCell: IntCell' type=IntCell origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:IntCell, :kotlin.Int) returnType:Unit flags: @@ -49,14 +49,14 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER name: type:IReceiver flags: $receiver: VALUE_PARAMETER name: type:FiveTimes flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=iterator() on FiveTimes: IntCell' + RETURN type=kotlin.Nothing from='iterator() on FiveTimes: IntCell' CALL 'constructor IntCell(Int)' type=IntCell origin=null value: CONST Int type=kotlin.Int value=5 FUN name:hasNext visibility:public modality:OPEN <> ($this:IReceiver, $receiver:IntCell) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:IReceiver flags: $receiver: VALUE_PARAMETER name: type:IntCell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=hasNext() on IntCell: Boolean' + RETURN type=kotlin.Nothing from='hasNext() on IntCell: Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @@ -66,7 +66,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER name: type:IReceiver flags: $receiver: VALUE_PARAMETER name: type:IntCell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=next() on IntCell: Int' + RETURN type=kotlin.Nothing from='next() on IntCell: Int' BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:IntCell flags:val GET_VAR 'this@next: IntCell' type=IntCell origin=null diff --git a/compiler/testData/ir/irText/expressions/genericPropertyCall.txt b/compiler/testData/ir/irText/expressions/genericPropertyCall.txt index 78ec7ca5da8..c1b10e33111 100644 --- a/compiler/testData/ir/irText/expressions/genericPropertyCall.txt +++ b/compiler/testData/ir/irText/expressions/genericPropertyCall.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/genericPropertyCall.kt FUN name: visibility:public modality:FINAL <> ($receiver:T) returnType:T flags: $receiver: VALUE_PARAMETER name: type:T flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on T: T' + RETURN type=kotlin.Nothing from='() on T: T' GET_VAR 'this@id: T' type=T origin=null PROPERTY name:test type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.String visibility:public @@ -12,6 +12,6 @@ FILE fqName: fileName:/genericPropertyCall.kt $receiver: CONST String type=kotlin.String value=abc FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/identity.txt b/compiler/testData/ir/irText/expressions/identity.txt index 287e8df9cf1..8cb000e2cad 100644 --- a/compiler/testData/ir/irText/expressions/identity.txt +++ b/compiler/testData/ir/irText/expressions/identity.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/identity.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='test1(Int, Int): Boolean' CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -11,7 +11,7 @@ FILE fqName: fileName:/identity.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='test2(Int, Int): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQEQ arg0: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null @@ -20,7 +20,7 @@ FILE fqName: fileName:/identity.kt VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: VALUE_PARAMETER name:b index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(Any?, Any?): Boolean' + RETURN type=kotlin.Nothing from='test3(Any?, Any?): Boolean' CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null arg1: GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/ifElseIf.txt b/compiler/testData/ir/irText/expressions/ifElseIf.txt index 6006c04a059..e260cf8ac10 100644 --- a/compiler/testData/ir/irText/expressions/ifElseIf.txt +++ b/compiler/testData/ir/irText/expressions/ifElseIf.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/ifElseIf.kt FUN name:test visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags: VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(Int): Int' + RETURN type=kotlin.Nothing from='test(Int): Int' WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT diff --git a/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt b/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt index 3f641084034..178b1bd9b47 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/implicitCastOnPlatformType.kt FUN name:test visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(): String' + RETURN type=kotlin.Nothing from='test(): String' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'getProperty(String!): String!' type=kotlin.String! origin=null key: CONST String type=kotlin.String value=test diff --git a/compiler/testData/ir/irText/expressions/in.txt b/compiler/testData/ir/irText/expressions/in.txt index 00240f682c5..d5962eaf499 100644 --- a/compiler/testData/ir/irText/expressions/in.txt +++ b/compiler/testData/ir/irText/expressions/in.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Any, Collection): Boolean' + RETURN type=kotlin.Nothing from='test1(Any, Collection): Boolean' CALL 'contains(Any): Boolean' type=kotlin.Boolean origin=IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null element: GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null @@ -11,7 +11,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Any, Collection): Boolean' + RETURN type=kotlin.Nothing from='test2(Any, Collection): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=NOT_IN arg0: CALL 'contains(Any): Boolean' type=kotlin.Boolean origin=NOT_IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null @@ -21,7 +21,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:a index:0 type:T flags: VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(T, Collection): Boolean' + RETURN type=kotlin.Nothing from='test3(T, Collection): Boolean' CALL 'contains(T): Boolean' type=kotlin.Boolean origin=IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null element: GET_VAR 'value-parameter a: T' type=T origin=null @@ -30,7 +30,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:a index:0 type:T flags: VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(T, Collection): Boolean' + RETURN type=kotlin.Nothing from='test4(T, Collection): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=NOT_IN arg0: CALL 'contains(T): Boolean' type=kotlin.Boolean origin=NOT_IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.txt b/compiler/testData/ir/irText/expressions/incrementDecrement.txt index 7d3eec058b5..8c217e86c8c 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/incrementDecrement.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'p: Int' type=kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:kotlin.Int flags: @@ -22,7 +22,7 @@ FILE fqName: fileName:/incrementDecrement.kt CONST Int type=kotlin.Int value=3 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:IntArray flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): IntArray' + RETURN type=kotlin.Nothing from='(): IntArray' GET_FIELD 'arr: IntArray' type=kotlin.IntArray origin=null FUN name:testVarPrefix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt index 9721dac3588..fb5acbd8b45 100644 --- a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt +++ b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/Derived.kt FUN name:getValue visibility:public modality:FINAL <> ($this:Derived) returnType:Int flags: $this: VALUE_PARAMETER name: type:Derived flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=getValue(): Int' + RETURN type=kotlin.Nothing from='getValue(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=GET_PROPERTY receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null FUN name:setValue visibility:public modality:FINAL <> ($this:Derived, value:kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt index 8029923df8d..46456e3bf17 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY x: CONST String type=kotlin.String value=testProp/get - RETURN type=kotlin.Nothing from=(): Any' + RETURN type=kotlin.Nothing from='(): Any' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> (value:kotlin.Any) returnType:Unit flags: VALUE_PARAMETER name:value index:0 type:kotlin.Any flags: @@ -42,7 +42,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestClass) returnType:Int flags: $this: VALUE_PARAMETER name: type:TestClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestClass: TestClass' type=TestClass origin=null ANONYMOUS_INITIALIZER TestClass diff --git a/compiler/testData/ir/irText/expressions/kt16904.txt b/compiler/testData/ir/irText/expressions/kt16904.txt index faf563b5de4..fdebc55a247 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/kt16904.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:B flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): B' + RETURN type=kotlin.Nothing from='(): B' GET_FIELD 'x: B' type=B origin=null receiver: GET_VAR 'this@A: A' type=A origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:var @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt16904.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A, :kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/expressions/kt16905.txt b/compiler/testData/ir/irText/expressions/kt16905.txt index cfdd35358b3..50ecb9e65ba 100644 --- a/compiler/testData/ir/irText/expressions/kt16905.txt +++ b/compiler/testData/ir/irText/expressions/kt16905.txt @@ -59,7 +59,7 @@ FILE fqName: fileName:/kt16905.kt TYPEALIAS typealias OI = Outer.Inner type=Outer.Inner FUN name:test visibility:public modality:FINAL <> () returnType:Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(): OI /* = Outer.Inner */' + RETURN type=kotlin.Nothing from='test(): OI /* = Outer.Inner */' CALL 'constructor Inner()' type=Outer.Inner origin=null $this: CALL 'constructor Outer()' type=Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/lambdaInCAO.txt b/compiler/testData/ir/irText/expressions/lambdaInCAO.txt index 87ea6cb8ee9..3f6fd874465 100644 --- a/compiler/testData/ir/irText/expressions/lambdaInCAO.txt +++ b/compiler/testData/ir/irText/expressions/lambdaInCAO.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/lambdaInCAO.kt $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: VALUE_PARAMETER name:index index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=get(() -> Unit) on Any: Int' + RETURN type=kotlin.Nothing from='get(() -> Unit) on Any: Int' CONST Int type=kotlin.Int value=42 FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Any, index:() -> kotlin.Unit, value:kotlin.Int) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -22,7 +22,7 @@ FILE fqName: fileName:/lambdaInCAO.kt lambda: BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:Unit flags: @@ -35,7 +35,7 @@ FILE fqName: fileName:/lambdaInCAO.kt BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA CALL 'set(() -> Unit, Int) on Any: Unit' type=kotlin.Unit origin=PLUSEQ @@ -57,7 +57,7 @@ FILE fqName: fileName:/lambdaInCAO.kt BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int flags:val diff --git a/compiler/testData/ir/irText/expressions/literals.txt b/compiler/testData/ir/irText/expressions/literals.txt index b7bb14a0f34..d955f1dcc13 100644 --- a/compiler/testData/ir/irText/expressions/literals.txt +++ b/compiler/testData/ir/irText/expressions/literals.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/literals.kt CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public @@ -13,7 +13,7 @@ FILE fqName: fileName:/literals.kt CONST Int type=kotlin.Int value=-1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null PROPERTY name:test3 type:kotlin.Boolean visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Boolean visibility:public @@ -21,7 +21,7 @@ FILE fqName: fileName:/literals.kt CONST Boolean type=kotlin.Boolean value=true FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Boolean' + RETURN type=kotlin.Nothing from='(): Boolean' GET_FIELD 'test3: Boolean' type=kotlin.Boolean origin=null PROPERTY name:test4 type:kotlin.Boolean visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Boolean visibility:public @@ -29,7 +29,7 @@ FILE fqName: fileName:/literals.kt CONST Boolean type=kotlin.Boolean value=false FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Boolean' + RETURN type=kotlin.Nothing from='(): Boolean' GET_FIELD 'test4: Boolean' type=kotlin.Boolean origin=null PROPERTY name:test5 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.String visibility:public @@ -37,7 +37,7 @@ FILE fqName: fileName:/literals.kt CONST String type=kotlin.String value=abc FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test5: String' type=kotlin.String origin=null PROPERTY name:test6 type:kotlin.Nothing? visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.Nothing? visibility:public @@ -45,7 +45,7 @@ FILE fqName: fileName:/literals.kt CONST Null type=kotlin.Nothing? value=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Nothing? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Nothing?' + RETURN type=kotlin.Nothing from='(): Nothing?' GET_FIELD 'test6: Nothing?' type=kotlin.Nothing? origin=null PROPERTY name:test7 type:kotlin.Long visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test7 type:kotlin.Long visibility:public @@ -53,7 +53,7 @@ FILE fqName: fileName:/literals.kt CONST Long type=kotlin.Long value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Long' + RETURN type=kotlin.Nothing from='(): Long' GET_FIELD 'test7: Long' type=kotlin.Long origin=null PROPERTY name:test8 type:kotlin.Long visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test8 type:kotlin.Long visibility:public @@ -61,7 +61,7 @@ FILE fqName: fileName:/literals.kt CONST Long type=kotlin.Long value=-1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Long' + RETURN type=kotlin.Nothing from='(): Long' GET_FIELD 'test8: Long' type=kotlin.Long origin=null PROPERTY name:test9 type:kotlin.Double visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test9 type:kotlin.Double visibility:public @@ -69,7 +69,7 @@ FILE fqName: fileName:/literals.kt CONST Double type=kotlin.Double value=1.0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Double' + RETURN type=kotlin.Nothing from='(): Double' GET_FIELD 'test9: Double' type=kotlin.Double origin=null PROPERTY name:test10 type:kotlin.Double visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test10 type:kotlin.Double visibility:public @@ -77,7 +77,7 @@ FILE fqName: fileName:/literals.kt CONST Double type=kotlin.Double value=-1.0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Double' + RETURN type=kotlin.Nothing from='(): Double' GET_FIELD 'test10: Double' type=kotlin.Double origin=null PROPERTY name:test11 type:kotlin.Float visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test11 type:kotlin.Float visibility:public @@ -85,7 +85,7 @@ FILE fqName: fileName:/literals.kt CONST Float type=kotlin.Float value=1.0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Float' + RETURN type=kotlin.Nothing from='(): Float' GET_FIELD 'test11: Float' type=kotlin.Float origin=null PROPERTY name:test12 type:kotlin.Float visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test12 type:kotlin.Float visibility:public @@ -93,7 +93,7 @@ FILE fqName: fileName:/literals.kt CONST Float type=kotlin.Float value=-1.0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Float' + RETURN type=kotlin.Nothing from='(): Float' GET_FIELD 'test12: Float' type=kotlin.Float origin=null PROPERTY name:test13 type:kotlin.Char visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test13 type:kotlin.Char visibility:public @@ -101,7 +101,7 @@ FILE fqName: fileName:/literals.kt CONST Char type=kotlin.Char value=a FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Char flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Char' + RETURN type=kotlin.Nothing from='(): Char' GET_FIELD 'test13: Char' type=kotlin.Char origin=null PROPERTY name:testB type:kotlin.Byte visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:testB type:kotlin.Byte visibility:public @@ -109,7 +109,7 @@ FILE fqName: fileName:/literals.kt CONST Byte type=kotlin.Byte value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Byte' + RETURN type=kotlin.Nothing from='(): Byte' GET_FIELD 'testB: Byte' type=kotlin.Byte origin=null PROPERTY name:testS type:kotlin.Short visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:testS type:kotlin.Short visibility:public @@ -117,7 +117,7 @@ FILE fqName: fileName:/literals.kt CONST Short type=kotlin.Short value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Short' + RETURN type=kotlin.Nothing from='(): Short' GET_FIELD 'testS: Short' type=kotlin.Short origin=null PROPERTY name:testI type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:testI type:kotlin.Int visibility:public @@ -125,7 +125,7 @@ FILE fqName: fileName:/literals.kt CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'testI: Int' type=kotlin.Int origin=null PROPERTY name:testL type:kotlin.Long visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:testL type:kotlin.Long visibility:public @@ -133,6 +133,6 @@ FILE fqName: fileName:/literals.kt CONST Long type=kotlin.Long value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Long' + RETURN type=kotlin.Nothing from='(): Long' GET_FIELD 'testL: Long' type=kotlin.Long origin=null diff --git a/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt b/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt index e0c77e7e74c..753c6a92d2a 100644 --- a/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt @@ -8,13 +8,13 @@ FILE fqName: fileName:/membersImportedFromObject.kt FUN name:foo visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): Int' + RETURN type=kotlin.Nothing from='foo(): Int' CONST Int type=kotlin.Int value=1 FUN name:fooExt visibility:public modality:FINAL <> ($this:A, $receiver:kotlin.Int) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=fooExt() on Int: Int' + RETURN type=kotlin.Nothing from='fooExt() on Int: Int' CONST Int type=kotlin.Int value=2 PROPERTY name:bar type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:public @@ -23,7 +23,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null PROPERTY name:barExt type:kotlin.Int visibility:public modality:FINAL flags:val @@ -31,7 +31,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt $this: VALUE_PARAMETER name: type:A flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on Int: Int' + RETURN type=kotlin.Nothing from='() on Int: Int' CONST Int type=kotlin.Int value=43 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -47,7 +47,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt $this: GET_OBJECT 'A' type=A FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public @@ -56,7 +56,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt $this: GET_OBJECT 'A' type=A FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null PROPERTY name:test3 type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Int visibility:public @@ -66,7 +66,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt $receiver: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test3: Int' type=kotlin.Int origin=null PROPERTY name:test4 type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Int visibility:public @@ -76,6 +76,6 @@ FILE fqName: fileName:/membersImportedFromObject.kt $receiver: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test4: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/multipleThisReferences.txt b/compiler/testData/ir/irText/expressions/multipleThisReferences.txt index a16a21407a2..48a921de5c8 100644 --- a/compiler/testData/ir/irText/expressions/multipleThisReferences.txt +++ b/compiler/testData/ir/irText/expressions/multipleThisReferences.txt @@ -20,7 +20,7 @@ FILE fqName: fileName:/multipleThisReferences.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -51,14 +51,14 @@ FILE fqName: fileName:/multipleThisReferences.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null FUN name:test visibility:public modality:FINAL <> ($this:Host, $receiver:Outer) returnType:Inner flags: $this: VALUE_PARAMETER name: type:Host flags: $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test() on Outer: Outer.Inner' + RETURN type=kotlin.Nothing from='test() on Outer: Outer.Inner' BLOCK type=Host.test. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host.test. flags: @@ -79,7 +79,7 @@ FILE fqName: fileName:/multipleThisReferences.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host.test.) returnType:Int flags: $this: VALUE_PARAMETER name: type:Host.test. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'xx: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@: ' type=Host.test. origin=null PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.txt b/compiler/testData/ir/irText/expressions/objectAsCallable.txt index 1cb3879ff18..e07afaa113a 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.txt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.txt @@ -52,13 +52,13 @@ FILE fqName: fileName:/objectAsCallable.kt $receiver: VALUE_PARAMETER name: type:A flags: VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=invoke(Int) on A: Int' + RETURN type=kotlin.Nothing from='invoke(Int) on A: Int' GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null FUN name:invoke visibility:public modality:FINAL <> ($receiver:En, i:kotlin.Int) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:En flags: VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=invoke(Int) on En: Int' + RETURN type=kotlin.Nothing from='invoke(Int) on En: Int' GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public @@ -68,7 +68,7 @@ FILE fqName: fileName:/objectAsCallable.kt i: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public @@ -78,6 +78,6 @@ FILE fqName: fileName:/objectAsCallable.kt i: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt index fba659e699a..a13073cd3c5 100644 --- a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt +++ b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt FUN name:inner visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Unit flags: $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=inner(): Unit' + RETURN type=kotlin.Nothing from='inner(): Unit' CALL 'outer(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/expressions/primitiveComparisons.txt b/compiler/testData/ir/irText/expressions/primitiveComparisons.txt index cfbdbdf9fdd..5225c1658a0 100644 --- a/compiler/testData/ir/irText/expressions/primitiveComparisons.txt +++ b/compiler/testData/ir/irText/expressions/primitiveComparisons.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=btest1(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from='btest1(Byte, Byte): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null @@ -12,7 +12,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=btest2(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from='btest2(Byte, Byte): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null @@ -21,7 +21,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=btest3(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from='btest3(Byte, Byte): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null @@ -30,7 +30,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=btest4(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from='btest4(Byte, Byte): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null @@ -39,7 +39,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=stest1(Short, Short): Boolean' + RETURN type=kotlin.Nothing from='stest1(Short, Short): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null @@ -48,7 +48,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=stest2(Short, Short): Boolean' + RETURN type=kotlin.Nothing from='stest2(Short, Short): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null @@ -57,7 +57,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=stest3(Short, Short): Boolean' + RETURN type=kotlin.Nothing from='stest3(Short, Short): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null @@ -66,7 +66,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=stest4(Short, Short): Boolean' + RETURN type=kotlin.Nothing from='stest4(Short, Short): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null @@ -75,7 +75,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=itest1(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='itest1(Int, Int): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null @@ -84,7 +84,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=itest2(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='itest2(Int, Int): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null @@ -93,7 +93,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=itest3(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='itest3(Int, Int): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null @@ -102,7 +102,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=itest4(Int, Int): Boolean' + RETURN type=kotlin.Nothing from='itest4(Int, Int): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null @@ -111,7 +111,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ltest1(Long, Long): Boolean' + RETURN type=kotlin.Nothing from='ltest1(Long, Long): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null @@ -120,7 +120,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ltest2(Long, Long): Boolean' + RETURN type=kotlin.Nothing from='ltest2(Long, Long): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null @@ -129,7 +129,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ltest3(Long, Long): Boolean' + RETURN type=kotlin.Nothing from='ltest3(Long, Long): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null @@ -138,7 +138,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ltest4(Long, Long): Boolean' + RETURN type=kotlin.Nothing from='ltest4(Long, Long): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null @@ -147,7 +147,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ftest1(Float, Float): Boolean' + RETURN type=kotlin.Nothing from='ftest1(Float, Float): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null @@ -156,7 +156,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ftest2(Float, Float): Boolean' + RETURN type=kotlin.Nothing from='ftest2(Float, Float): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null @@ -165,7 +165,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ftest3(Float, Float): Boolean' + RETURN type=kotlin.Nothing from='ftest3(Float, Float): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null @@ -174,7 +174,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=ftest4(Float, Float): Boolean' + RETURN type=kotlin.Nothing from='ftest4(Float, Float): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null @@ -183,7 +183,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=dtest1(Double, Double): Boolean' + RETURN type=kotlin.Nothing from='dtest1(Double, Double): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null @@ -192,7 +192,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=dtest2(Double, Double): Boolean' + RETURN type=kotlin.Nothing from='dtest2(Double, Double): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null @@ -201,7 +201,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=dtest3(Double, Double): Boolean' + RETURN type=kotlin.Nothing from='dtest3(Double, Double): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null @@ -210,7 +210,7 @@ FILE fqName: fileName:/primitiveComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=dtest4(Double, Double): Boolean' + RETURN type=kotlin.Nothing from='dtest4(Double, Double): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null diff --git a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt index 5b41f5b51f7..efe0184544d 100644 --- a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt +++ b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt CONST Long type=kotlin.Long value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Long' + RETURN type=kotlin.Nothing from='(): Long' GET_FIELD 'test1: Long' type=kotlin.Long origin=null PROPERTY name:test2 type:kotlin.Short visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Short visibility:public @@ -13,7 +13,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt CONST Short type=kotlin.Short value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Short' + RETURN type=kotlin.Nothing from='(): Short' GET_FIELD 'test2: Short' type=kotlin.Short origin=null PROPERTY name:test3 type:kotlin.Byte visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Byte visibility:public @@ -21,7 +21,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt CONST Byte type=kotlin.Byte value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Byte' + RETURN type=kotlin.Nothing from='(): Byte' GET_FIELD 'test3: Byte' type=kotlin.Byte origin=null PROPERTY name:test4 type:kotlin.Long visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Long visibility:public @@ -31,7 +31,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt $this: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Long' + RETURN type=kotlin.Nothing from='(): Long' GET_FIELD 'test4: Long' type=kotlin.Long origin=null PROPERTY name:test5 type:kotlin.Short visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.Short visibility:public @@ -41,7 +41,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt $this: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Short' + RETURN type=kotlin.Nothing from='(): Short' GET_FIELD 'test5: Short' type=kotlin.Short origin=null PROPERTY name:test6 type:kotlin.Byte visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.Byte visibility:public @@ -51,7 +51,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt $this: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Byte' + RETURN type=kotlin.Nothing from='(): Byte' GET_FIELD 'test6: Byte' type=kotlin.Byte origin=null FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY @@ -100,7 +100,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestImplicitArguments) returnType:Long flags: $this: VALUE_PARAMETER name: type:TestImplicitArguments flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Long' + RETURN type=kotlin.Nothing from='(): Long' GET_FIELD 'x: Long' type=kotlin.Long origin=null receiver: GET_VAR 'this@TestImplicitArguments: TestImplicitArguments' type=TestImplicitArguments origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/expressions/references.txt b/compiler/testData/ir/irText/expressions/references.txt index bb125239488..ade19d83414 100644 --- a/compiler/testData/ir/irText/expressions/references.txt +++ b/compiler/testData/ir/irText/expressions/references.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/references.kt CONST String type=kotlin.String value=OK FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'ok: String' type=kotlin.String origin=null PROPERTY name:ok2 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:ok2 type:kotlin.String visibility:public @@ -13,42 +13,42 @@ FILE fqName: fileName:/references.kt CALL '(): String' type=kotlin.String origin=GET_PROPERTY FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'ok2: String' type=kotlin.String origin=null PROPERTY name:ok3 type:kotlin.String visibility:public modality:FINAL flags:val FUN name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' CONST String type=kotlin.String value=OK FUN name:test1 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(): String' + RETURN type=kotlin.Nothing from='test1(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String) returnType:String flags: VALUE_PARAMETER name:x index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(String): String' + RETURN type=kotlin.Nothing from='test2(String): String' GET_VAR 'value-parameter x: String' type=kotlin.String origin=null FUN name:test3 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY VAR name:x type:kotlin.String flags:val CONST String type=kotlin.String value=OK - RETURN type=kotlin.Nothing from=test3(): String' + RETURN type=kotlin.Nothing from='test3(): String' GET_VAR 'x: String' type=kotlin.String origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(): String' + RETURN type=kotlin.Nothing from='test4(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY PROPERTY name:okext type:kotlin.String visibility:public modality:FINAL flags:val FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: String' + RETURN type=kotlin.Nothing from='() on String: String' CONST String type=kotlin.String value=OK FUN name:test5 visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5() on String: String' + RETURN type=kotlin.Nothing from='test5() on String: String' CALL '() on String: String' type=kotlin.String origin=GET_PROPERTY $receiver: GET_VAR 'this@test5: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/reflectionLiterals.txt b/compiler/testData/ir/irText/expressions/reflectionLiterals.txt index b9864f15add..b0782ec21ae 100644 --- a/compiler/testData/ir/irText/expressions/reflectionLiterals.txt +++ b/compiler/testData/ir/irText/expressions/reflectionLiterals.txt @@ -23,7 +23,7 @@ FILE fqName: fileName:/reflectionLiterals.kt CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'qux: Int' type=kotlin.Int origin=null PROPERTY name:test1 type:kotlin.reflect.KClass visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KClass visibility:public @@ -31,7 +31,7 @@ FILE fqName: fileName:/reflectionLiterals.kt CLASS_REFERENCE 'A' type=kotlin.reflect.KClass FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KClass' + RETURN type=kotlin.Nothing from='(): KClass' GET_FIELD 'test1: KClass' type=kotlin.reflect.KClass origin=null PROPERTY name:test2 type:kotlin.reflect.KClass visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KClass visibility:public @@ -40,7 +40,7 @@ FILE fqName: fileName:/reflectionLiterals.kt CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KClass' + RETURN type=kotlin.Nothing from='(): KClass' GET_FIELD 'test2: KClass' type=kotlin.reflect.KClass origin=null PROPERTY name:test3 type:kotlin.reflect.KFunction1 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.reflect.KFunction1 visibility:public @@ -48,7 +48,7 @@ FILE fqName: fileName:/reflectionLiterals.kt FUNCTION_REFERENCE 'foo(): Unit' type=kotlin.reflect.KFunction1 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction1' + RETURN type=kotlin.Nothing from='(): KFunction1' GET_FIELD 'test3: KFunction1' type=kotlin.reflect.KFunction1 origin=null PROPERTY name:test4 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.reflect.KFunction0 visibility:public @@ -56,7 +56,7 @@ FILE fqName: fileName:/reflectionLiterals.kt FUNCTION_REFERENCE 'constructor A()' type=kotlin.reflect.KFunction0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test4: KFunction0' type=kotlin.reflect.KFunction0 origin=null PROPERTY name:test5 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.reflect.KFunction0 visibility:public @@ -65,7 +65,7 @@ FILE fqName: fileName:/reflectionLiterals.kt $this: CALL 'constructor A()' type=A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test5: KFunction0' type=kotlin.reflect.KFunction0 origin=null PROPERTY name:test6 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.reflect.KFunction0 visibility:public @@ -73,7 +73,7 @@ FILE fqName: fileName:/reflectionLiterals.kt FUNCTION_REFERENCE 'bar(): Unit' type=kotlin.reflect.KFunction0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KFunction0' + RETURN type=kotlin.Nothing from='(): KFunction0' GET_FIELD 'test6: KFunction0' type=kotlin.reflect.KFunction0 origin=null PROPERTY name:test7 type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test7 type:kotlin.reflect.KProperty0 visibility:public @@ -81,6 +81,6 @@ FILE fqName: fileName:/reflectionLiterals.kt PROPERTY_REFERENCE 'qux: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): KProperty0' + RETURN type=kotlin.Nothing from='(): KProperty0' GET_FIELD 'test7: KProperty0' type=kotlin.reflect.KProperty0 origin=null diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.txt b/compiler/testData/ir/irText/expressions/safeAssignment.txt index d82a4e908e8..a8e42bd1123 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/safeAssignment.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt index fde326b3fc2..8b5fc82904b 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt @@ -16,7 +16,7 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt FUN name: visibility:public modality:FINAL <> ($receiver:test.C?) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:test.C? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on C?: Int' + RETURN type=kotlin.Nothing from='() on C?: Int' CONST Int type=kotlin.Int value=42 FUN name: visibility:public modality:FINAL <> ($receiver:test.C?, value:kotlin.Int) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:test.C? flags: @@ -25,7 +25,7 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt FUN name:inc visibility:public modality:FINAL <> ($receiver:kotlin.Int?) returnType:Int? flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=inc() on Int?: Int?' + RETURN type=kotlin.Nothing from='inc() on Int?: Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Int? flags:val GET_VAR 'this@inc: Int?' type=kotlin.Int? origin=null @@ -43,7 +43,7 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt $receiver: VALUE_PARAMETER name: type:kotlin.Int? flags: VALUE_PARAMETER name:index index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=get(Int) on Int?: Int' + RETURN type=kotlin.Nothing from='get(Int) on Int?: Int' CONST Int type=kotlin.Int value=42 FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int, value:kotlin.Int) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int? flags: diff --git a/compiler/testData/ir/irText/expressions/safeCalls.txt b/compiler/testData/ir/irText/expressions/safeCalls.txt index 48832bd8e8d..fc05dd8d3ee 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/safeCalls.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref) returnType:Int flags: $this: VALUE_PARAMETER name: type:Ref flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref, :kotlin.Int) returnType:Unit flags: @@ -36,7 +36,7 @@ FILE fqName: fileName:/safeCalls.kt $this: VALUE_PARAMETER name: type:IHost flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=extLength() on String: Int' + RETURN type=kotlin.Nothing from='extLength() on String: Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@extLength: String' type=kotlin.String origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -49,7 +49,7 @@ FILE fqName: fileName:/safeCalls.kt FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:Int? flags: VALUE_PARAMETER name:x index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(String?): Int?' + RETURN type=kotlin.Nothing from='test1(String?): Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter x: String?' type=kotlin.String? origin=null @@ -66,7 +66,7 @@ FILE fqName: fileName:/safeCalls.kt FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:Int? flags: VALUE_PARAMETER name:x index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(String?): Int?' + RETURN type=kotlin.Nothing from='test2(String?): Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter x: String?' type=kotlin.String? origin=null @@ -84,7 +84,7 @@ FILE fqName: fileName:/safeCalls.kt VALUE_PARAMETER name:x index:0 type:kotlin.String? flags: VALUE_PARAMETER name:y index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(String?, Any?): Boolean?' + RETURN type=kotlin.Nothing from='test3(String?, Any?): Boolean?' BLOCK type=kotlin.Boolean? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter x: String?' type=kotlin.String? origin=null @@ -121,7 +121,7 @@ FILE fqName: fileName:/safeCalls.kt $receiver: VALUE_PARAMETER name: type:IHost flags: VALUE_PARAMETER name:s index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5(String?) on IHost: Int?' + RETURN type=kotlin.Nothing from='test5(String?) on IHost: Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter s: String?' type=kotlin.String? origin=null @@ -139,7 +139,7 @@ FILE fqName: fileName:/safeCalls.kt FUN name:foo visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo() on Int: Int' + RETURN type=kotlin.Nothing from='foo() on Int: Int' CONST Int type=kotlin.Int value=239 FUN name:box visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/simpleOperators.txt b/compiler/testData/ir/irText/expressions/simpleOperators.txt index 9dc4f41b5e6..22f1c0938c3 100644 --- a/compiler/testData/ir/irText/expressions/simpleOperators.txt +++ b/compiler/testData/ir/irText/expressions/simpleOperators.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Int, Int): Int' + RETURN type=kotlin.Nothing from='test1(Int, Int): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -11,7 +11,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Int, Int): Int' + RETURN type=kotlin.Nothing from='test2(Int, Int): Int' CALL 'minus(Int): Int' type=kotlin.Int origin=MINUS $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -19,7 +19,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(Int, Int): Int' + RETURN type=kotlin.Nothing from='test3(Int, Int): Int' CALL 'times(Int): Int' type=kotlin.Int origin=MUL $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -27,7 +27,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(Int, Int): Int' + RETURN type=kotlin.Nothing from='test4(Int, Int): Int' CALL 'div(Int): Int' type=kotlin.Int origin=DIV $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -35,7 +35,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5(Int, Int): Int' + RETURN type=kotlin.Nothing from='test5(Int, Int): Int' CALL 'rem(Int): Int' type=kotlin.Int origin=PERC $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -43,7 +43,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test6(Int, Int): IntRange' + RETURN type=kotlin.Nothing from='test6(Int, Int): IntRange' CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -51,7 +51,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1x(Int, Int): Int' + RETURN type=kotlin.Nothing from='test1x(Int, Int): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -59,7 +59,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2x(Int, Int): Int' + RETURN type=kotlin.Nothing from='test2x(Int, Int): Int' CALL 'minus(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -67,7 +67,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3x(Int, Int): Int' + RETURN type=kotlin.Nothing from='test3x(Int, Int): Int' CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -75,7 +75,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4x(Int, Int): Int' + RETURN type=kotlin.Nothing from='test4x(Int, Int): Int' CALL 'div(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null @@ -83,7 +83,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5x(Int, Int): Int' + RETURN type=kotlin.Nothing from='test5x(Int, Int): Int' CALL 'mod(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt index 4b790985b33..819bf0b22b4 100644 --- a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt +++ b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt @@ -2,31 +2,31 @@ FILE fqName: fileName:/simpleUnaryOperators.kt FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Int): Int' + RETURN type=kotlin.Nothing from='test1(Int): Int' CALL 'unaryMinus(): Int' type=kotlin.Int origin=UMINUS $this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(): Int' + RETURN type=kotlin.Nothing from='test2(): Int' CONST Int type=kotlin.Int value=-42 FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(Int): Int' + RETURN type=kotlin.Nothing from='test3(Int): Int' CALL 'unaryPlus(): Int' type=kotlin.Int origin=UPLUS $this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(): Int' + RETURN type=kotlin.Nothing from='test4(): Int' CONST Int type=kotlin.Int value=42 FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Boolean) returnType:Boolean flags: VALUE_PARAMETER name:x index:0 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test5(Boolean): Boolean' + RETURN type=kotlin.Nothing from='test5(Boolean): Boolean' CALL 'not(): Boolean' type=kotlin.Boolean origin=EXCL $this: GET_VAR 'value-parameter x: Boolean' type=kotlin.Boolean origin=null FUN name:test6 visibility:public modality:FINAL <> () returnType:Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test6(): Boolean' + RETURN type=kotlin.Nothing from='test6(): Boolean' CONST Boolean type=kotlin.Boolean value=false diff --git a/compiler/testData/ir/irText/expressions/smartCasts.txt b/compiler/testData/ir/irText/expressions/smartCasts.txt index 9aec464723f..99c0e7d0a60 100644 --- a/compiler/testData/ir/irText/expressions/smartCasts.txt +++ b/compiler/testData/ir/irText/expressions/smartCasts.txt @@ -8,12 +8,12 @@ FILE fqName: fileName:/smartCasts.kt FUN name:overloaded visibility:public modality:FINAL <> (s:kotlin.String) returnType:String flags: VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=overloaded(String): String' + RETURN type=kotlin.Nothing from='overloaded(String): String' GET_VAR 'value-parameter s: String' type=kotlin.String origin=null FUN name:overloaded visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Any flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=overloaded(Any): Any' + RETURN type=kotlin.Nothing from='overloaded(Any): Any' GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Unit flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: @@ -22,7 +22,7 @@ FILE fqName: fileName:/smartCasts.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from=test1(Any): Unit' + then: RETURN type=kotlin.Nothing from='test1(Any): Unit' GET_OBJECT 'Unit' type=kotlin.Unit CALL 'println(Int): Unit' type=kotlin.Unit origin=null message: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @@ -46,9 +46,9 @@ FILE fqName: fileName:/smartCasts.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from=test2(Any): String' + then: RETURN type=kotlin.Nothing from='test2(Any): String' CONST String type=kotlin.String value= - RETURN type=kotlin.Nothing from=test2(Any): String' + RETURN type=kotlin.Nothing from='test2(Any): String' CALL 'overloaded(String): String' type=kotlin.String origin=null s: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null @@ -59,9 +59,9 @@ FILE fqName: fileName:/smartCasts.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from=test3(Any): String' + then: RETURN type=kotlin.Nothing from='test3(Any): String' CONST String type=kotlin.String value= - RETURN type=kotlin.Nothing from=test3(Any): String' + RETURN type=kotlin.Nothing from='test3(Any): String' TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt index 0f1cddf15bd..24ecf1e6ffa 100644 --- a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt +++ b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt @@ -20,12 +20,12 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt FUN name:component1 visibility:public modality:FINAL <> ($receiver:I1) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:I1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1() on I1: Int' + RETURN type=kotlin.Nothing from='component1() on I1: Int' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($receiver:I2) returnType:String flags: $receiver: VALUE_PARAMETER name: type:I2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2() on I2: String' + RETURN type=kotlin.Nothing from='component2() on I2: String' CONST String type=kotlin.String value= FUN name:test visibility:public modality:FINAL <> (x:I1) returnType:Unit flags: VALUE_PARAMETER name:x index:0 type:I1 flags: @@ -34,7 +34,7 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=I2 GET_VAR 'value-parameter x: I1' type=I1 origin=null - then: RETURN type=kotlin.Nothing from=test(I1): Unit' + then: RETURN type=kotlin.Nothing from='test(I1): Unit' GET_OBJECT 'Unit' type=kotlin.Unit COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:I1 flags:val diff --git a/compiler/testData/ir/irText/expressions/stringComparisons.txt b/compiler/testData/ir/irText/expressions/stringComparisons.txt index 29ffa477862..990b298c02d 100644 --- a/compiler/testData/ir/irText/expressions/stringComparisons.txt +++ b/compiler/testData/ir/irText/expressions/stringComparisons.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/stringComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(String, String): Boolean' + RETURN type=kotlin.Nothing from='test1(String, String): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null @@ -12,7 +12,7 @@ FILE fqName: fileName:/stringComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(String, String): Boolean' + RETURN type=kotlin.Nothing from='test2(String, String): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null @@ -21,7 +21,7 @@ FILE fqName: fileName:/stringComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(String, String): Boolean' + RETURN type=kotlin.Nothing from='test3(String, String): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null @@ -30,7 +30,7 @@ FILE fqName: fileName:/stringComparisons.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(String, String): Boolean' + RETURN type=kotlin.Nothing from='test4(String, String): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/stringPlus.txt b/compiler/testData/ir/irText/expressions/stringPlus.txt index 875c58ec9dd..ffc1cc0269e 100644 --- a/compiler/testData/ir/irText/expressions/stringPlus.txt +++ b/compiler/testData/ir/irText/expressions/stringPlus.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/stringPlus.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(String, Any): String' + RETURN type=kotlin.Nothing from='test1(String, Any): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null other: GET_VAR 'value-parameter b: Any' type=kotlin.Any origin=null @@ -11,7 +11,7 @@ FILE fqName: fileName:/stringPlus.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(String, Int): String' + RETURN type=kotlin.Nothing from='test2(String, Int): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null @@ -21,7 +21,7 @@ FILE fqName: fileName:/stringPlus.kt VALUE_PARAMETER name:a index:0 type:kotlin.String flags: VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(String, Int): String' + RETURN type=kotlin.Nothing from='test3(String, Int): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL 'plus(Any?): String' type=kotlin.String origin=PLUS diff --git a/compiler/testData/ir/irText/expressions/stringTemplates.txt b/compiler/testData/ir/irText/expressions/stringTemplates.txt index 95c05102caa..533068dc249 100644 --- a/compiler/testData/ir/irText/expressions/stringTemplates.txt +++ b/compiler/testData/ir/irText/expressions/stringTemplates.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/stringTemplates.kt FUN name:foo visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): String' + RETURN type=kotlin.Nothing from='foo(): String' CONST String type=kotlin.String value= PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public @@ -9,7 +9,7 @@ FILE fqName: fileName:/stringTemplates.kt CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null PROPERTY name:test1 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.String visibility:public @@ -17,7 +17,7 @@ FILE fqName: fileName:/stringTemplates.kt CONST String type=kotlin.String value= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test1: String' type=kotlin.String origin=null PROPERTY name:test2 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.String visibility:public @@ -25,7 +25,7 @@ FILE fqName: fileName:/stringTemplates.kt CONST String type=kotlin.String value=abc FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test2: String' type=kotlin.String origin=null PROPERTY name:test3 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.String visibility:public @@ -33,7 +33,7 @@ FILE fqName: fileName:/stringTemplates.kt CONST String type=kotlin.String value= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test3: String' type=kotlin.String origin=null PROPERTY name:test4 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.String visibility:public @@ -41,7 +41,7 @@ FILE fqName: fileName:/stringTemplates.kt CONST String type=kotlin.String value=abc FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test4: String' type=kotlin.String origin=null PROPERTY name:test5 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.String visibility:public @@ -54,7 +54,7 @@ FILE fqName: fileName:/stringTemplates.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test5: String' type=kotlin.String origin=null PROPERTY name:test6 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.String visibility:public @@ -65,7 +65,7 @@ FILE fqName: fileName:/stringTemplates.kt CALL 'foo(): String' type=kotlin.String origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test6: String' type=kotlin.String origin=null PROPERTY name:test7 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test7 type:kotlin.String visibility:public @@ -74,7 +74,7 @@ FILE fqName: fileName:/stringTemplates.kt CALL '(): String' type=kotlin.String origin=GET_PROPERTY FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test7: String' type=kotlin.String origin=null PROPERTY name:test8 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test8 type:kotlin.String visibility:public @@ -83,7 +83,7 @@ FILE fqName: fileName:/stringTemplates.kt CALL 'foo(): String' type=kotlin.String origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test8: String' type=kotlin.String origin=null PROPERTY name:test9 type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test9 type:kotlin.String visibility:public @@ -92,6 +92,6 @@ FILE fqName: fileName:/stringTemplates.kt CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'test9: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt index 6d44037d82a..d97289fe558 100644 --- a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt +++ b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer) returnType:T flags: $this: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): T' + RETURN type=kotlin.Nothing from='(): T' GET_FIELD 'x: T' type=T origin=null receiver: GET_VAR 'this@Outer: Outer' type=Outer origin=null CLASS CLASS name:Inner modality:OPEN visibility:public flags: @@ -32,7 +32,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -52,7 +52,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt FUN name:test visibility:public modality:FINAL <> ($receiver:Outer) returnType:Inner flags: $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test() on Outer: Outer.Inner' + RETURN type=kotlin.Nothing from='test() on Outer: Outer.Inner' BLOCK type=test. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test. flags: @@ -73,7 +73,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:test.) returnType:Int flags: $this: VALUE_PARAMETER name: type:test. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'xx: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@: ' type=test. origin=null PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val diff --git a/compiler/testData/ir/irText/expressions/tryCatch.txt b/compiler/testData/ir/irText/expressions/tryCatch.txt index 9acca857df9..16d52329c58 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.txt +++ b/compiler/testData/ir/irText/expressions/tryCatch.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/tryCatch.kt CALL 'println(): Unit' type=kotlin.Unit origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(): Int' + RETURN type=kotlin.Nothing from='test2(): Int' TRY type=kotlin.Int try: BLOCK type=kotlin.Int origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt index dddc97870b5..fc1db299a77 100644 --- a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt +++ b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/tryCatchWithImplicitCast.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from=testImplicitCast(Any): Unit' + then: RETURN type=kotlin.Nothing from='testImplicitCast(Any): Unit' GET_OBJECT 'Unit' type=kotlin.Unit VAR name:t type:kotlin.String flags:val TRY type=kotlin.String diff --git a/compiler/testData/ir/irText/expressions/typeArguments.txt b/compiler/testData/ir/irText/expressions/typeArguments.txt index c8aeb380885..edc4675666c 100644 --- a/compiler/testData/ir/irText/expressions/typeArguments.txt +++ b/compiler/testData/ir/irText/expressions/typeArguments.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/typeArguments.kt FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Boolean flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Any): Boolean' + RETURN type=kotlin.Nothing from='test1(Any): Boolean' WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Array<*> diff --git a/compiler/testData/ir/irText/expressions/typeOperators.txt b/compiler/testData/ir/irText/expressions/typeOperators.txt index e0186f2c4c0..2ed01904083 100644 --- a/compiler/testData/ir/irText/expressions/typeOperators.txt +++ b/compiler/testData/ir/irText/expressions/typeOperators.txt @@ -11,25 +11,25 @@ FILE fqName: fileName:/typeOperators.kt FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Boolean flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(Any): Boolean' + RETURN type=kotlin.Nothing from='test1(Any): Boolean' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Boolean flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(Any): Boolean' + RETURN type=kotlin.Nothing from='test2(Any): Boolean' TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:IThing flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(Any): IThing' + RETURN type=kotlin.Nothing from='test3(Any): IThing' TYPE_OP type=IThing origin=CAST typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:IThing? flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(Any): IThing?' + RETURN type=kotlin.Nothing from='test4(Any): IThing?' TYPE_OP type=IThing? origin=SAFE_CAST typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/values.txt b/compiler/testData/ir/irText/expressions/values.txt index 88a2077a202..677decbd899 100644 --- a/compiler/testData/ir/irText/expressions/values.txt +++ b/compiler/testData/ir/irText/expressions/values.txt @@ -54,7 +54,7 @@ FILE fqName: fileName:/values.kt CONST Int type=kotlin.Int value=0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'a: Int' type=kotlin.Int origin=null CLASS CLASS name:Z modality:FINAL visibility:public flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: @@ -84,18 +84,18 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type:kotlin.Any flags: FUN name:test1 visibility:public modality:FINAL <> () returnType:Enum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(): Enum' + RETURN type=kotlin.Nothing from='test1(): Enum' GET_ENUM 'A' type=Enum FUN name:test2 visibility:public modality:FINAL <> () returnType:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(): A' + RETURN type=kotlin.Nothing from='test2(): A' GET_OBJECT 'A' type=A FUN name:test3 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(): Int' + RETURN type=kotlin.Nothing from='test3(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY FUN name:test4 visibility:public modality:FINAL <> () returnType:Companion flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(): Z.Companion' + RETURN type=kotlin.Nothing from='test4(): Z.Companion' GET_OBJECT 'companion object of Z' type=Z.Companion diff --git a/compiler/testData/ir/irText/expressions/vararg.txt b/compiler/testData/ir/irText/expressions/vararg.txt index 230435592fc..1074b65c8a4 100644 --- a/compiler/testData/ir/irText/expressions/vararg.txt +++ b/compiler/testData/ir/irText/expressions/vararg.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/vararg.kt : String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Array flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Array' + RETURN type=kotlin.Nothing from='(): Array' GET_FIELD 'test1: Array' type=kotlin.Array origin=null PROPERTY name:test2 type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Array visibility:public @@ -19,7 +19,7 @@ FILE fqName: fileName:/vararg.kt CONST String type=kotlin.String value=3 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Array flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Array' + RETURN type=kotlin.Nothing from='(): Array' GET_FIELD 'test2: Array' type=kotlin.Array origin=null PROPERTY name:test3 type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Array visibility:public @@ -35,6 +35,6 @@ FILE fqName: fileName:/vararg.kt CONST String type=kotlin.String value=4 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Array flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Array' + RETURN type=kotlin.Nothing from='(): Array' GET_FIELD 'test3: Array' type=kotlin.Array origin=null diff --git a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt index 37210c45401..74e3838995f 100644 --- a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt +++ b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt @@ -6,9 +6,9 @@ FILE fqName: fileName:/varargWithImplicitCast.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Int GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from=testScalar(Any): IntArray' + then: RETURN type=kotlin.Nothing from='testScalar(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null - RETURN type=kotlin.Nothing from=testScalar(Any): IntArray' + RETURN type=kotlin.Nothing from='testScalar(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int @@ -20,9 +20,9 @@ FILE fqName: fileName:/varargWithImplicitCast.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.IntArray GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from=testSpread(Any): IntArray' + then: RETURN type=kotlin.Nothing from='testSpread(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null - RETURN type=kotlin.Nothing from=testSpread(Any): IntArray' + RETURN type=kotlin.Nothing from='testSpread(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int SPREAD_ELEMENT diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt index 701193382d4..3307ce8d0b2 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt @@ -2,36 +2,36 @@ FILE fqName: fileName:/variableAsFunctionCall.kt FUN name:k visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:Function0 flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=k() on String: () -> String' + RETURN type=kotlin.Nothing from='k() on String: () -> String' BLOCK type=() -> kotlin.String origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): String' + RETURN type=kotlin.Nothing from='(): String' GET_VAR 'this@k: String' type=kotlin.String origin=null FUNCTION_REFERENCE '(): String' type=() -> kotlin.String origin=LAMBDA FUN name:test1 visibility:public modality:FINAL <> (f:() -> kotlin.Unit) returnType:Unit flags: VALUE_PARAMETER name:f index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(() -> Unit): Unit' + RETURN type=kotlin.Nothing from='test1(() -> Unit): Unit' CALL 'invoke(): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter f: () -> Unit' type=() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION FUN name:test2 visibility:public modality:FINAL <> (f:kotlin.String.() -> kotlin.Unit) returnType:Unit flags: VALUE_PARAMETER name:f index:0 type:kotlin.String.() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test2(String.() -> Unit): Unit' + RETURN type=kotlin.Nothing from='test2(String.() -> Unit): Unit' CALL 'invoke(String): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter f: String.() -> Unit' type=kotlin.String.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value=hello FUN name:test3 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test3(): String' + RETURN type=kotlin.Nothing from='test3(): String' CALL 'invoke(): String' type=kotlin.String origin=null $this: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null $receiver: CONST String type=kotlin.String value=hello FUN name:test4 visibility:public modality:FINAL <> (ns:kotlin.String?) returnType:String? flags: VALUE_PARAMETER name:ns index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test4(String?): String?' + RETURN type=kotlin.Nothing from='test4(String?): String?' BLOCK type=kotlin.String? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:(() -> kotlin.String)? flags:val BLOCK type=(() -> kotlin.String)? origin=SAFE_CALL diff --git a/compiler/testData/ir/irText/expressions/when.txt b/compiler/testData/ir/irText/expressions/when.txt index b899df3ea04..cae896e6a35 100644 --- a/compiler/testData/ir/irText/expressions/when.txt +++ b/compiler/testData/ir/irText/expressions/when.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/when.kt FUN name:testWithSubject visibility:public modality:FINAL <> (x:kotlin.Any?) returnType:String flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=testWithSubject(Any?): String' + RETURN type=kotlin.Nothing from='testWithSubject(Any?): String' BLOCK type=kotlin.String origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any? flags:val GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=null @@ -47,7 +47,7 @@ FILE fqName: fileName:/when.kt FUN name:test visibility:public modality:FINAL <> (x:kotlin.Any?) returnType:String flags: VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(Any?): String' + RETURN type=kotlin.Nothing from='test(Any?): String' WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ @@ -76,7 +76,7 @@ FILE fqName: fileName:/when.kt FUN name:testComma visibility:public modality:FINAL <> (x:kotlin.Int) returnType:String flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=testComma(Int): String' + RETURN type=kotlin.Nothing from='testComma(Int): String' BLOCK type=kotlin.String origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int flags:val GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/whenElse.txt b/compiler/testData/ir/irText/expressions/whenElse.txt index 7c78ef2bec5..57220c00feb 100644 --- a/compiler/testData/ir/irText/expressions/whenElse.txt +++ b/compiler/testData/ir/irText/expressions/whenElse.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/whenElse.kt FUN name:test visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(): Int' + RETURN type=kotlin.Nothing from='test(): Int' WHEN type=kotlin.Int origin=WHEN BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/expressions/whenReturn.txt b/compiler/testData/ir/irText/expressions/whenReturn.txt index b560f07f1e0..3767df71618 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.txt @@ -10,30 +10,30 @@ FILE fqName: fileName:/whenReturn.kt if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value=A - then: RETURN type=kotlin.Nothing from=toString(String): String' + then: RETURN type=kotlin.Nothing from='toString(String): String' CONST String type=kotlin.String value=Excellent BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value=B - then: RETURN type=kotlin.Nothing from=toString(String): String' + then: RETURN type=kotlin.Nothing from='toString(String): String' CONST String type=kotlin.String value=Good BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value=C - then: RETURN type=kotlin.Nothing from=toString(String): String' + then: RETURN type=kotlin.Nothing from='toString(String): String' CONST String type=kotlin.String value=Mediocre BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value=D - then: RETURN type=kotlin.Nothing from=toString(String): String' + then: RETURN type=kotlin.Nothing from='toString(String): String' CONST String type=kotlin.String value=Fair BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: RETURN type=kotlin.Nothing from=toString(String): String' + then: RETURN type=kotlin.Nothing from='toString(String): String' CONST String type=kotlin.String value=Failure - RETURN type=kotlin.Nothing from=toString(String): String' + RETURN type=kotlin.Nothing from='toString(String): String' CONST String type=kotlin.String value=??? diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.txt b/compiler/testData/ir/irText/lambdas/anonymousFunction.txt index ffa098bdcdf..71d6ccfbacf 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.txt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.txt @@ -9,6 +9,6 @@ FILE fqName: fileName:/anonymousFunction.kt FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=ANONYMOUS_FUNCTION FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): () -> Unit' + RETURN type=kotlin.Nothing from='(): () -> Unit' GET_FIELD 'anonymous: () -> Unit' type=() -> kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt index d58c9e52d04..faed5d1d2e9 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/destructuringInLambda.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val @@ -24,19 +24,19 @@ FILE fqName: fileName:/destructuringInLambda.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component1(): Int' + RETURN type=kotlin.Nothing from='component1(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:A) returnType:Int flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=component2(): Int' + RETURN type=kotlin.Nothing from='component2(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:A, x:kotlin.Int, y:kotlin.Int) returnType:A flags: @@ -50,14 +50,14 @@ FILE fqName: fileName:/destructuringInLambda.kt CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from=copy(Int = ..., Int = ...): A' + RETURN type=kotlin.Nothing from='copy(Int = ..., Int = ...): A' CALL 'constructor A(Int, Int)' type=A origin=null x: GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=null y: GET_VAR 'value-parameter y: Int = ...' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:A) returnType:String flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=toString(): String' + RETURN type=kotlin.Nothing from='toString(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=A( CONST String type=kotlin.String value=x= @@ -85,7 +85,7 @@ FILE fqName: fileName:/destructuringInLambda.kt other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - RETURN type=kotlin.Nothing from=hashCode(): Int' + RETURN type=kotlin.Nothing from='hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:A, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:A flags: @@ -96,13 +96,13 @@ FILE fqName: fileName:/destructuringInLambda.kt if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@A: A' type=A origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=A GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:A flags:val TYPE_OP type=A origin=CAST typeOperand=A @@ -115,7 +115,7 @@ FILE fqName: fileName:/destructuringInLambda.kt $this: GET_VAR 'this@A: A' type=A origin=null arg1: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: A' type=A origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH @@ -125,9 +125,9 @@ FILE fqName: fileName:/destructuringInLambda.kt $this: GET_VAR 'this@A: A' type=A origin=null arg1: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: A' type=A origin=null - then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + RETURN type=kotlin.Nothing from='equals(Any?): Boolean' CONST Boolean type=kotlin.Boolean value=true PROPERTY name:fn type:(A) -> kotlin.Int visibility:public modality:FINAL flags:var FIELD PROPERTY_BACKING_FIELD name:fn type:(A) -> kotlin.Int visibility:public @@ -139,14 +139,14 @@ FILE fqName: fileName:/destructuringInLambda.kt VAR name:y type:kotlin.Int flags:val CALL 'component2(): Int' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR 'value-parameter : A' type=A origin=DESTRUCTURING_DECLARATION - RETURN type=kotlin.Nothing from=(A): Int' + RETURN type=kotlin.Nothing from='(A): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CONST Int type=kotlin.Int value=42 other: GET_VAR 'y: Int' type=kotlin.Int origin=null FUNCTION_REFERENCE '(A): Int' type=(A) -> kotlin.Int origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): (A) -> Int' + RETURN type=kotlin.Nothing from='(): (A) -> Int' GET_FIELD 'fn: (A) -> Int' type=(A) -> kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:(A) -> kotlin.Int) returnType:Unit flags: VALUE_PARAMETER name: index:0 type:(A) -> kotlin.Int flags: diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.txt b/compiler/testData/ir/irText/lambdas/extensionLambda.txt index dc83fbb16d4..2bddbd30391 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.txt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/extensionLambda.kt FUN name:test1 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test1(): Int' + RETURN type=kotlin.Nothing from='test1(): Int' CALL 'run(String.() -> Int) on String: Int' type=kotlin.Int origin=null : String : Int @@ -10,7 +10,7 @@ FILE fqName: fileName:/extensionLambda.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.String) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on String: Int' + RETURN type=kotlin.Nothing from='() on String: Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@: String' type=kotlin.String origin=null FUNCTION_REFERENCE '() on String: Int' type=kotlin.String.() -> kotlin.Int origin=LAMBDA diff --git a/compiler/testData/ir/irText/lambdas/justLambda.txt b/compiler/testData/ir/irText/lambdas/justLambda.txt index 6876cc49952..0b5ffbaa58f 100644 --- a/compiler/testData/ir/irText/lambdas/justLambda.txt +++ b/compiler/testData/ir/irText/lambdas/justLambda.txt @@ -5,12 +5,12 @@ FILE fqName: fileName:/justLambda.kt BLOCK type=() -> kotlin.Int origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): () -> Int' + RETURN type=kotlin.Nothing from='(): () -> Int' GET_FIELD 'test1: () -> Int' type=() -> kotlin.Int origin=null PROPERTY name:test2 type:() -> kotlin.Unit visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:test2 type:() -> kotlin.Unit visibility:public @@ -18,11 +18,11 @@ FILE fqName: fileName:/justLambda.kt BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): () -> Unit' + RETURN type=kotlin.Nothing from='(): () -> Unit' GET_FIELD 'test2: () -> Unit' type=() -> kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt index 121621fc916..0e26cafcafe 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt @@ -32,7 +32,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER name: type:IFoo flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on A: B' + RETURN type=kotlin.Nothing from='() on A: B' GET_OBJECT 'B' type=B FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -47,7 +47,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER name: type:IInvoke flags: $receiver: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=invoke() on B: Int' + RETURN type=kotlin.Nothing from='invoke() on B: Int' CONST Int type=kotlin.Int value=42 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: @@ -69,7 +69,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:A) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on A: Int' + RETURN type=kotlin.Nothing from='() on A: Int' CALL 'with(IFoo, IFoo.() -> Int): Int' type=kotlin.Int origin=null : IFoo : Int @@ -78,7 +78,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:IFoo) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:IFoo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on IFoo: Int' + RETURN type=kotlin.Nothing from='() on IFoo: Int' CALL 'with(IInvoke, IInvoke.() -> Int): Int' type=kotlin.Int origin=null : IInvoke : Int @@ -87,7 +87,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:IInvoke) returnType:Int flags: $receiver: VALUE_PARAMETER name: type:IInvoke flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on IInvoke: Int' + RETURN type=kotlin.Nothing from='() on IInvoke: Int' CALL 'invoke() on B: Int' type=kotlin.Int origin=INVOKE $this: GET_VAR 'this@: IInvoke' type=IInvoke origin=null $receiver: CALL '() on A: B' type=B origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt b/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt index fdb63105055..db71bc8d99f 100644 --- a/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt +++ b/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/nonLocalReturn.kt block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Nothing flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test0(): Unit' + RETURN type=kotlin.Nothing from='test0(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: @@ -16,7 +16,7 @@ FILE fqName: fileName:/nonLocalReturn.kt block: BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: @@ -26,7 +26,7 @@ FILE fqName: fileName:/nonLocalReturn.kt block: BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: @@ -36,13 +36,13 @@ FILE fqName: fileName:/nonLocalReturn.kt block: BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' CALL 'run(() -> Nothing): Nothing' type=kotlin.Nothing origin=null : Nothing block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Nothing flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA @@ -61,9 +61,9 @@ FILE fqName: fileName:/nonLocalReturn.kt if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 - then: RETURN type=kotlin.Nothing from=(Int): Unit' + then: RETURN type=kotlin.Nothing from='(Int): Unit' GET_OBJECT 'Unit' type=kotlin.Unit - RETURN type=kotlin.Nothing from=(Int): Unit' + RETURN type=kotlin.Nothing from='(Int): Unit' CALL 'print(Int): Unit' type=kotlin.Unit origin=null message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null FUNCTION_REFERENCE '(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA @@ -82,9 +82,9 @@ FILE fqName: fileName:/nonLocalReturn.kt if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 - then: RETURN type=kotlin.Nothing from=(Int): Unit' + then: RETURN type=kotlin.Nothing from='(Int): Unit' GET_OBJECT 'Unit' type=kotlin.Unit - RETURN type=kotlin.Nothing from=(Int): Unit' + RETURN type=kotlin.Nothing from='(Int): Unit' CALL 'print(Int): Unit' type=kotlin.Unit origin=null message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null FUNCTION_REFERENCE '(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA diff --git a/compiler/testData/ir/irText/lambdas/samAdapter.txt b/compiler/testData/ir/irText/lambdas/samAdapter.txt index be010646208..a3457f818de 100644 --- a/compiler/testData/ir/irText/lambdas/samAdapter.txt +++ b/compiler/testData/ir/irText/lambdas/samAdapter.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/samAdapter.kt function: BLOCK type=() -> kotlin.Unit origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Unit' + RETURN type=kotlin.Nothing from='(): Unit' CALL 'println(Any?): Unit' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value=Hello, world! FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.txt index 3c61a4542cd..9a67999e556 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/coercionInLoop.kt index: GET_VAR 'i: Int' type=kotlin.Int origin=null arg1: CALL 'next(): Double' type=kotlin.Double origin=null $this: GET_VAR 'x: DoubleIterator' type=kotlin.collections.DoubleIterator origin=null - then: RETURN type=kotlin.Nothing from=box(): String' + then: RETURN type=kotlin.Nothing from='box(): String' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value=Fail GET_VAR 'i: Int' type=kotlin.Int origin=null @@ -34,6 +34,6 @@ FILE fqName: fileName:/coercionInLoop.kt CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null GET_VAR 'tmp0: Int' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from=box(): String' + RETURN type=kotlin.Nothing from='box(): String' CONST String type=kotlin.String value=OK diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.txt index 571f154f8dd..4ffe1cdab99 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/integerCoercionToT.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[CPointed] $receiver: VALUE_PARAMETER name: type:CPointed flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=reinterpret() on CPointed: T' + RETURN type=kotlin.Nothing from='reinterpret() on CPointed: T' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null CLASS CLASS name:CInt32VarX modality:FINAL visibility:public flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:CInt32VarX flags: @@ -33,7 +33,7 @@ FILE fqName: fileName:/integerCoercionToT.kt FUN name: visibility:public modality:FINAL <> ($receiver:CInt32VarX) returnType:T_INT flags: $receiver: VALUE_PARAMETER name: type:CInt32VarX flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on CInt32VarX: T_INT' + RETURN type=kotlin.Nothing from='() on CInt32VarX: T_INT' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null FUN name: visibility:public modality:FINAL <> ($receiver:CInt32VarX, value:T_INT) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:CInt32VarX flags: @@ -53,7 +53,7 @@ FILE fqName: fileName:/integerCoercionToT.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:IdType) returnType:Int flags: $this: VALUE_PARAMETER name: type:IdType flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@IdType: IdType' type=IdType origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt b/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt index b879d4af9dc..937a4dfba46 100644 --- a/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt +++ b/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/fixationOrder1.kt TYPE_PARAMETER name:X index:0 variance: upperBounds:[kotlin.Any?] TYPE_PARAMETER name:Y index:1 variance: upperBounds:[kotlin.Any?] BLOCK_BODY - RETURN type=kotlin.Nothing from=foo(): (X) -> Y' + RETURN type=kotlin.Nothing from='foo(): (X) -> Y' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null CLASS INTERFACE name:Inv2 modality:ABSTRACT visibility:public flags: $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Inv2 flags: @@ -23,11 +23,11 @@ FILE fqName: fileName:/fixationOrder1.kt VALUE_PARAMETER name:y index:1 type:R flags: VALUE_PARAMETER name:f index:2 type:(T) -> R flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=check(T, R, (T) -> R): Inv2' + RETURN type=kotlin.Nothing from='check(T, R, (T) -> R): Inv2' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null FUN name:test visibility:public modality:FINAL <> () returnType:Inv2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(): Inv2' + RETURN type=kotlin.Nothing from='test(): Inv2' CALL 'check(String, Int, (String) -> Int): Inv2' type=Inv2 origin=null : String : Int @@ -40,6 +40,6 @@ FILE fqName: fileName:/fixationOrder1.kt BLOCK_BODY VAR name:x type:Inv2 flags:val CALL 'test(): Inv2' type=Inv2 origin=null - RETURN type=kotlin.Nothing from=box(): String' + RETURN type=kotlin.Nothing from='box(): String' CONST String type=kotlin.String value=OK diff --git a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt index 202a81d914b..691a3af8143 100644 --- a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt +++ b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Q flags: $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Q' + RETURN type=kotlin.Nothing from='(): Q' GET_FIELD 'q: Q' type=Q origin=null receiver: GET_VAR 'this@A: A' type=A origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/stubs/builtinMap.txt b/compiler/testData/ir/irText/stubs/builtinMap.txt index cbcf056e005..0cb9cdc29f9 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/builtinMap.kt $receiver: VALUE_PARAMETER name: type:kotlin.collections.Map flags: VALUE_PARAMETER name:pair index:0 type:kotlin.Pair flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=plus(Pair) on Map: Map' + RETURN type=kotlin.Nothing from='plus(Pair) on Map: Map' WHEN type=kotlin.collections.Map origin=null BRANCH if: CALL 'isEmpty(): Boolean' type=kotlin.Boolean origin=null @@ -26,7 +26,7 @@ FILE fqName: fileName:/builtinMap.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */) returnType:Unit flags: $receiver: VALUE_PARAMETER name: type:kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */ flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=() on LinkedHashMap /* = LinkedHashMap */: Unit' + RETURN type=kotlin.Nothing from='() on LinkedHashMap /* = LinkedHashMap */: Unit' TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'put(K!, V!): V?' type=V? origin=null $this: GET_VAR 'this@: LinkedHashMap<(K..K?), (V..V?)>' type=kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */ origin=null diff --git a/compiler/testData/ir/irText/stubs/javaEnum.txt b/compiler/testData/ir/irText/stubs/javaEnum.txt index 043b2f791df..1387119cef5 100644 --- a/compiler/testData/ir/irText/stubs/javaEnum.txt +++ b/compiler/testData/ir/irText/stubs/javaEnum.txt @@ -5,6 +5,6 @@ FILE fqName: fileName:/javaEnum.kt GET_ENUM 'ONE' type=JEnum FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:JEnum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): JEnum' + RETURN type=kotlin.Nothing from='(): JEnum' GET_FIELD 'test: JEnum' type=JEnum origin=null diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass.txt b/compiler/testData/ir/irText/stubs/javaInnerClass.txt index fcec9c55de9..27296484857 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/javaInnerClass.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:JInner flags: $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): J.JInner' + RETURN type=kotlin.Nothing from='(): J.JInner' GET_FIELD 'test: J.JInner' type=J.JInner origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:var diff --git a/compiler/testData/ir/irText/stubs/javaNestedClass.txt b/compiler/testData/ir/irText/stubs/javaNestedClass.txt index ffec7ea5ca4..b797645aedb 100644 --- a/compiler/testData/ir/irText/stubs/javaNestedClass.txt +++ b/compiler/testData/ir/irText/stubs/javaNestedClass.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/javaNestedClass.kt FUN name:test visibility:public modality:FINAL <> (jj:J.JJ) returnType:Unit flags: VALUE_PARAMETER name:jj index:0 type:J.JJ flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(J.JJ): Unit' + RETURN type=kotlin.Nothing from='test(J.JJ): Unit' CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter jj: J.JJ' type=J.JJ origin=null diff --git a/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt b/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt index ff66c00edca..4b1d64587d7 100644 --- a/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt +++ b/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/kotlinInnerClass.kt FUN name:test visibility:public modality:FINAL <> (inner:Outer.Inner) returnType:Unit flags: VALUE_PARAMETER name:inner index:0 type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=test(Outer.Inner): Unit' + RETURN type=kotlin.Nothing from='test(Outer.Inner): Unit' CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter inner: Outer.Inner' type=Outer.Inner origin=null diff --git a/compiler/testData/ir/irText/stubs/simple.txt b/compiler/testData/ir/irText/stubs/simple.txt index c28ffb42bd3..f0c40b6db76 100644 --- a/compiler/testData/ir/irText/stubs/simple.txt +++ b/compiler/testData/ir/irText/stubs/simple.txt @@ -7,6 +7,6 @@ FILE fqName: fileName:/simple.kt other: CONST Int type=kotlin.Int value=2 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from=(): Int' + RETURN type=kotlin.Nothing from='(): Int' GET_FIELD 'test: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt b/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt index 00e039974d5..e5ab1b25090 100644 --- a/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt +++ b/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt @@ -24,7 +24,7 @@ @2:0..8:1 VALUE_PARAMETER name: type:kotlin.Any flags: @10:0..18 FUN name:foo visibility:public modality:FINAL <> () returnType:Host flags: @10:12..18 BLOCK_BODY - @10:12..18 RETURN type=kotlin.Nothing from=foo(): Host' + @10:12..18 RETURN type=kotlin.Nothing from='foo(): Host' @10:12..18 CALL 'constructor Host()' type=test.Host origin=null @12:0..14:1 FUN name:test2 visibility:public modality:FINAL <> ($receiver:test.Host) returnType:Unit flags: @12:4..8 VALUE_PARAMETER name: type:test.Host flags: diff --git a/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt b/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt index f9fb8af9bea..307cb1cff70 100644 --- a/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt +++ b/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt @@ -15,7 +15,7 @@ @1:8..18 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @1:8..18 BLOCK_BODY - @1:8..18 RETURN type=kotlin.Nothing from=(): Int' + @1:8..18 RETURN type=kotlin.Nothing from='(): Int' @1:8..18 GET_FIELD 'x: Int' type=kotlin.Int origin=null @1:8..18 GET_VAR 'this@C: C' type=C origin=null @2:8..21 PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val @@ -25,7 +25,7 @@ @2:8..21 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:String flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @2:8..21 BLOCK_BODY - @2:8..21 RETURN type=kotlin.Nothing from=(): String' + @2:8..21 RETURN type=kotlin.Nothing from='(): String' @2:8..21 GET_FIELD 'y: String' type=kotlin.String origin=null @2:8..21 GET_VAR 'this@C: C' type=C origin=null @3:8..18 PROPERTY name:z type:kotlin.Any visibility:public modality:FINAL flags:val @@ -35,25 +35,25 @@ @3:8..18 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Any flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @3:8..18 BLOCK_BODY - @3:8..18 RETURN type=kotlin.Nothing from=(): Any' + @3:8..18 RETURN type=kotlin.Nothing from='(): Any' @3:8..18 GET_FIELD 'z: Any' type=kotlin.Any origin=null @3:8..18 GET_VAR 'this@C: C' type=C origin=null @1:8..18 FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:C) returnType:Int flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @1:8..18 BLOCK_BODY - @1:8..18 RETURN type=kotlin.Nothing from=component1(): Int' + @1:8..18 RETURN type=kotlin.Nothing from='component1(): Int' @1:8..18 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @1:8..18 GET_VAR 'this@C: C' type=C origin=null @2:8..21 FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:C) returnType:String flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @2:8..21 BLOCK_BODY - @2:8..21 RETURN type=kotlin.Nothing from=component2(): String' + @2:8..21 RETURN type=kotlin.Nothing from='component2(): String' @2:8..21 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @2:8..21 GET_VAR 'this@C: C' type=C origin=null @3:8..18 FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:C) returnType:Any flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @3:8..18 BLOCK_BODY - @3:8..18 RETURN type=kotlin.Nothing from=component3(): Any' + @3:8..18 RETURN type=kotlin.Nothing from='component3(): Any' @3:8..18 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @3:8..18 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:C, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:C flags: @@ -71,7 +71,7 @@ @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 BLOCK_BODY - @0:0..4:1 RETURN type=kotlin.Nothing from=copy(Int = ..., String = ..., Any = ...): C' + @0:0..4:1 RETURN type=kotlin.Nothing from='copy(Int = ..., String = ..., Any = ...): C' @0:0..4:1 CALL 'constructor C(Int, String, Any)' type=C origin=null @0:0..4:1 GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=null @0:0..4:1 GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=null @@ -79,7 +79,7 @@ @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:C) returnType:String flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @0:0..4:1 BLOCK_BODY - @0:0..4:1 RETURN type=kotlin.Nothing from=toString(): String' + @0:0..4:1 RETURN type=kotlin.Nothing from='toString(): String' @0:0..4:1 STRING_CONCATENATION type=kotlin.String @0:0..4:1 CONST String type=kotlin.String value=C( @0:0..4:1 CONST String type=kotlin.String value=x= @@ -119,7 +119,7 @@ @0:0..4:1 CALL 'hashCode(): Int' type=kotlin.Int origin=null @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from=hashCode(): Int' + @0:0..4:1 RETURN type=kotlin.Nothing from='hashCode(): Int' @0:0..4:1 GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:C, other:kotlin.Any?) returnType:Boolean flags: @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @@ -130,13 +130,13 @@ @0:0..4:1 CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' @0:0..4:1 CONST Boolean type=kotlin.Boolean value=true @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @0:0..4:1 TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=C @0:0..4:1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false @0:0..4:1 VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:C flags:val @0:0..4:1 TYPE_OP type=C origin=CAST typeOperand=C @@ -149,7 +149,7 @@ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @0:0..4:1 GET_VAR 'tmp0_other_with_cast: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @@ -159,7 +159,7 @@ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @0:0..4:1 GET_VAR 'tmp0_other_with_cast: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @@ -169,7 +169,7 @@ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'tmp0_other_with_cast: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false - @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' @0:0..4:1 CONST Boolean type=kotlin.Boolean value=true