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 555b956ef1f..493154a15e3 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 @@ -578,7 +578,7 @@ private inline fun StringBuilder.appendDeclarationNameToFqName( options: DumpIrTreeOptions, fallback: () -> Unit ) { - if (declaration.origin != IrDeclarationOrigin.FILE_CLASS || options.printFacadeClassInFqNames) { + if (!declaration.isFileClass || options.printFacadeClassInFqNames) { append('.') if (declaration is IrDeclarationWithName) { append(declaration.name) diff --git a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt index 89cf0e99724..e2e58d0aec3 100644 --- a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt +++ b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt @@ -49,16 +49,16 @@ FILE fqName: fileName:/test.kt VAR name:clazz type:kotlin.reflect.KClass<.Foo> [val] CLASS_REFERENCE 'CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<.Foo> VAR name:parameterAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null @@ -83,9 +83,9 @@ FILE fqName: fileName:/test.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array @@ -121,7 +121,7 @@ FILE fqName: fileName:/test.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="NoTarget" @@ -136,7 +136,7 @@ FILE fqName: fileName:/test.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (element: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' diff --git a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt index 76f058217c1..84086e36d60 100644 --- a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt +++ b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt @@ -49,16 +49,16 @@ FILE fqName: fileName:/test.kt VAR name:clazz type:kotlin.reflect.KClass<.Foo> [val] CLASS_REFERENCE 'CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<.Foo> VAR name:parameterAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null @@ -83,9 +83,9 @@ FILE fqName: fileName:/test.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array @@ -121,7 +121,7 @@ FILE fqName: fileName:/test.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="NoTarget" @@ -136,7 +136,7 @@ FILE fqName: fileName:/test.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (element: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' diff --git a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt index 227a3c337ef..8eee5eb2490 100644 --- a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt +++ b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt @@ -176,16 +176,16 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt VAR name:clazz type:kotlin.reflect.KClass<.Foo> [val] CLASS_REFERENCE 'CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<.Foo> VAR name:parameterAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null @@ -210,13 +210,13 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:propertyAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KProperty1' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KProperty1<.Foo, *> origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KProperty1<.Foo, *> origin=null : kotlin.reflect.KProperty1<.Foo, *> $receiver: CALL 'public final fun (): kotlin.collections.Collection, *>> declared in kotlin.reflect.full' type=kotlin.collections.Collection.Foo, *>> origin=GET_PROPERTY : .Foo @@ -242,9 +242,9 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array @@ -280,7 +280,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="NoTarget" @@ -289,7 +289,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Parameters:" - other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null + other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections' type=kotlin.String origin=null : kotlin.String $receiver: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF @@ -297,7 +297,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="PropertyOnly" @@ -305,7 +305,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Property:" - other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null + other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections' type=kotlin.String origin=null : kotlin.String $receiver: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF @@ -313,13 +313,13 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (element: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Field:" - other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null + other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections' type=kotlin.String origin=null : kotlin.String $receiver: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' diff --git a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt index 35262ce1997..a3dca4dd8a5 100644 --- a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt +++ b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt @@ -176,16 +176,16 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt VAR name:clazz type:kotlin.reflect.KClass<.Foo> [val] CLASS_REFERENCE 'CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<.Foo> VAR name:parameterAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null @@ -210,13 +210,13 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:propertyAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KProperty1' type=kotlin.collections.List origin=GET_PROPERTY - $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KProperty1<.Foo, *> origin=null + $this: CALL 'public final fun single (): T of kotlin.collections.single declared in kotlin.collections' type=kotlin.reflect.KProperty1<.Foo, *> origin=null : kotlin.reflect.KProperty1<.Foo, *> $receiver: CALL 'public final fun (): kotlin.collections.Collection, *>> declared in kotlin.reflect.full' type=kotlin.collections.Collection.Foo, *>> origin=GET_PROPERTY : .Foo @@ -242,9 +242,9 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] - CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null + CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array @@ -280,7 +280,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="NoTarget" @@ -289,7 +289,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Parameters:" - other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null + other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections' type=kotlin.String origin=null : kotlin.String $receiver: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF @@ -297,7 +297,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="PropertyOnly" @@ -305,7 +305,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Property:" - other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null + other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections' type=kotlin.String origin=null : kotlin.String $receiver: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF @@ -313,13 +313,13 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null - arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + arg1: CALL 'public final fun setOf (element: T of kotlin.collections.setOf): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Field:" - other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null + other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections' type=kotlin.String origin=null : kotlin.String $receiver: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' diff --git a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt index be2edbd72f6..a14b80e9885 100644 --- a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt +++ b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt @@ -17,9 +17,9 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt FUN name:takeString visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.String - $receiver: CALL 'public final fun split (vararg delimiters: kotlin.String, ignoreCase: kotlin.Boolean, limit: kotlin.Int): kotlin.collections.List declared in kotlin.text.StringsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun split (vararg delimiters: kotlin.String, ignoreCase: kotlin.Boolean, limit: kotlin.Int): kotlin.collections.List declared in kotlin.text' type=kotlin.collections.List origin=null $receiver: GET_VAR 's: kotlin.String declared in .takeString' type=kotlin.String origin=null delimiters: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="\n" @@ -32,7 +32,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: BLOCK type=kotlin.Int origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] - CALL 'public final fun toIntOrNull (): kotlin.Int? declared in kotlin.text.StringsKt' type=kotlin.Int? origin=null + CALL 'public final fun toIntOrNull (): kotlin.Int? declared in kotlin.text' type=kotlin.Int? origin=null $receiver: GET_VAR 'it: kotlin.String declared in .takeString.' type=kotlin.String origin=null WHEN type=kotlin.Int origin=ELVIS BRANCH @@ -66,7 +66,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null VAR name:s type:kotlin.String [val] - CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null + CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String declared in kotlin.text' type=kotlin.String origin=null builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:java.lang.StringBuilder) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$buildString type:java.lang.StringBuilder @@ -84,7 +84,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt VAR FOR_LOOP_VARIABLE name:j type:kotlin.Int [val] CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null - CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder declared in kotlin.text.StringsKt' type=java.lang.StringBuilder origin=null + CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder declared in kotlin.text' type=java.lang.StringBuilder origin=null $receiver: GET_VAR '$this$buildString: java.lang.StringBuilder declared in .test.localFunc.' type=java.lang.StringBuilder origin=null value: STRING_CONCATENATION type=kotlin.String CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL diff --git a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt index 8b83b7b3ed7..0d5f21caff1 100644 --- a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt +++ b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt @@ -17,9 +17,9 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt FUN name:takeString visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.String - $receiver: CALL 'public final fun split (vararg delimiters: kotlin.String, ignoreCase: kotlin.Boolean, limit: kotlin.Int): kotlin.collections.List declared in kotlin.text.StringsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun split (vararg delimiters: kotlin.String, ignoreCase: kotlin.Boolean, limit: kotlin.Int): kotlin.collections.List declared in kotlin.text' type=kotlin.collections.List origin=null $receiver: GET_VAR 's: kotlin.String declared in .takeString' type=kotlin.String origin=null delimiters: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="\n" @@ -33,7 +33,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: BLOCK type=kotlin.Int origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] - CALL 'public final fun toIntOrNull (): kotlin.Int? declared in kotlin.text.StringsKt' type=kotlin.Int? origin=null + CALL 'public final fun toIntOrNull (): kotlin.Int? declared in kotlin.text' type=kotlin.Int? origin=null $receiver: GET_VAR 'it: kotlin.String declared in .takeString.' type=kotlin.String origin=null WHEN type=kotlin.Int origin=null BRANCH @@ -67,7 +67,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null VAR name:s type:kotlin.String [val] - CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null + CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String declared in kotlin.text' type=kotlin.String origin=null builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:java.lang.StringBuilder{ kotlin.text.StringBuilder }) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$buildString type:java.lang.StringBuilder{ kotlin.text.StringBuilder } @@ -87,7 +87,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder{ kotlin.text.StringBuilder } declared in kotlin.text.StringsKt' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null + CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder{ kotlin.text.StringBuilder } declared in kotlin.text' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null $receiver: GET_VAR '$this$buildString: java.lang.StringBuilder{ kotlin.text.StringBuilder } declared in .test.localFunc.' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null value: STRING_CONCATENATION type=kotlin.String CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL diff --git a/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt b/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt index 7e23c3c3adf..db886570d72 100644 --- a/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt +++ b/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt @@ -205,7 +205,7 @@ FILE fqName: fileName:/kt44814.kt CONSTRUCTOR visibility:public <> (_children:kotlin.collections.List<.LighterASTNode?>) returnType:.LighterASTNode [primary] VALUE_PARAMETER name:_children index:0 type:kotlin.collections.List<.LighterASTNode?> EXPRESSION_BODY - CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode?> origin=null + CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.LighterASTNode?> origin=null : .LighterASTNode? BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' @@ -521,7 +521,7 @@ FILE fqName: fileName:/kt44814.kt PROPERTY name:modifiers visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifiers type:kotlin.collections.List<.FirModifier<*>> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.FirModifier<*>> origin=null + CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.FirModifier<*>> origin=null : .FirModifier<*> FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.FirModifierList) returnType:kotlin.collections.List<.FirModifier<*>> correspondingProperty: PROPERTY name:modifiers visibility:public modality:FINAL [val] @@ -669,7 +669,7 @@ FILE fqName: fileName:/kt44814.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.FirModifierList.FirPsiModifierList origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=.FirModifierList.FirPsiModifierList origin=null : .KtModifierList : .FirModifierList.FirPsiModifierList $receiver: GET_VAR 'val tmp_1: .KtModifierList? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null @@ -687,7 +687,7 @@ FILE fqName: fileName:/kt44814.kt VAR name:modifierListNode type:.LighterASTNode [val] BLOCK type=.LighterASTNode origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.LighterASTNode? [val] - CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.find? declared in kotlin.collections.CollectionsKt' type=.LighterASTNode? origin=null + CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.find? declared in kotlin.collections' type=.LighterASTNode? origin=null : .LighterASTNode? $receiver: CALL 'public final fun getChildren (treeStructure: .FlyweightCapableTreeStructure): kotlin.collections.List<.LighterASTNode?> declared in .LighterASTNode' type=kotlin.collections.List<.LighterASTNode?> origin=null $this: CALL 'public open fun (): .LighterASTNode declared in .FirLightSourceElement' type=.LighterASTNode origin=GET_PROPERTY @@ -741,7 +741,7 @@ FILE fqName: fileName:/kt44814.kt VAR name:sourceElement type:.FirSourceElement? [val] CONSTRUCTOR_CALL 'public constructor (lighterASTNode: .LighterASTNode, treeStructure: .FlyweightCapableTreeStructure) declared in .FirLightSourceElement' type=.FirLightSourceElement origin=null lighterASTNode: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null - _children: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode> origin=null + _children: CALL 'public final fun listOf (element: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.LighterASTNode> origin=null : .LighterASTNode element: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null treeStructure: CONSTRUCTOR_CALL 'public constructor () declared in .FlyweightCapableTreeStructure' type=.FlyweightCapableTreeStructure origin=null diff --git a/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt b/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt index 79862759d91..6ea3006a790 100644 --- a/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt +++ b/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt @@ -205,7 +205,7 @@ FILE fqName: fileName:/kt44814.kt CONSTRUCTOR visibility:public <> (_children:kotlin.collections.List<.LighterASTNode?>) returnType:.LighterASTNode [primary] VALUE_PARAMETER name:_children index:0 type:kotlin.collections.List<.LighterASTNode?> EXPRESSION_BODY - CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode?> origin=null + CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.LighterASTNode?> origin=null : .LighterASTNode? BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' @@ -521,7 +521,7 @@ FILE fqName: fileName:/kt44814.kt PROPERTY name:modifiers visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifiers type:kotlin.collections.List<.FirModifier<*>> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.FirModifier<*>> origin=null + CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.FirModifier<*>> origin=null : .FirModifier<*> FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.FirModifierList) returnType:kotlin.collections.List<.FirModifier<*>> correspondingProperty: PROPERTY name:modifiers visibility:public modality:FINAL [val] @@ -669,7 +669,7 @@ FILE fqName: fileName:/kt44814.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.FirModifierList.FirPsiModifierList origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=.FirModifierList.FirPsiModifierList origin=null : .KtModifierList : .FirModifierList.FirPsiModifierList $receiver: GET_VAR 'val tmp_1: .KtModifierList? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null @@ -687,7 +687,7 @@ FILE fqName: fileName:/kt44814.kt VAR name:modifierListNode type:.LighterASTNode [val] BLOCK type=.LighterASTNode origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.LighterASTNode? [val] - CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.find? declared in kotlin.collections.CollectionsKt' type=.LighterASTNode? origin=null + CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.find? declared in kotlin.collections' type=.LighterASTNode? origin=null : .LighterASTNode? $receiver: CALL 'public final fun getChildren (treeStructure: .FlyweightCapableTreeStructure): kotlin.collections.List<.LighterASTNode?> declared in .LighterASTNode' type=kotlin.collections.List<.LighterASTNode?> origin=null $this: CALL 'public abstract fun (): .LighterASTNode declared in .FirSourceElement' type=.LighterASTNode origin=GET_PROPERTY @@ -738,7 +738,7 @@ FILE fqName: fileName:/kt44814.kt VAR name:sourceElement type:.FirSourceElement? [val] CONSTRUCTOR_CALL 'public constructor (lighterASTNode: .LighterASTNode, treeStructure: .FlyweightCapableTreeStructure) declared in .FirLightSourceElement' type=.FirLightSourceElement origin=null lighterASTNode: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null - _children: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode> origin=null + _children: CALL 'public final fun listOf (element: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.LighterASTNode> origin=null : .LighterASTNode element: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null treeStructure: CONSTRUCTOR_CALL 'public constructor () declared in .FlyweightCapableTreeStructure' type=.FlyweightCapableTreeStructure origin=null diff --git a/compiler/testData/ir/irText/classes/initValInLambda.ir.txt b/compiler/testData/ir/irText/classes/initValInLambda.ir.txt index be46daccfbe..a4ee1691bdc 100644 --- a/compiler/testData/ir/irText/classes/initValInLambda.ir.txt +++ b/compiler/testData/ir/irText/classes/initValInLambda.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/initValInLambda.kt receiver: GET_VAR ': .TestInitValInLambdaCalledOnce declared in .TestInitValInLambdaCalledOnce.' type=.TestInitValInLambdaCalledOnce origin=null ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.run declared in kotlin' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit $receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/classes/initValInLambda.kt b/compiler/testData/ir/irText/classes/initValInLambda.kt index 5350f8e8b88..3aab35c3c90 100644 --- a/compiler/testData/ir/irText/classes/initValInLambda.kt +++ b/compiler/testData/ir/irText/classes/initValInLambda.kt @@ -1,6 +1,4 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 class TestInitValInLambdaCalledOnce { val x: Int diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt index 7743a4a4335..117ed70cd55 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt @@ -23,7 +23,7 @@ FILE fqName: fileName:/delegateFieldWithAnnotations.kt annotations: Ann EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -34,7 +34,7 @@ FILE fqName: fileName:/delegateFieldWithAnnotations.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt index 28fae1b0895..948345ab9ae 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // WITH_STDLIB // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.sig.kt.txt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.sig.kt.txt index ee8f8eec022..542ce2bbd42 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.sig.kt.txt @@ -7,16 +7,16 @@ val test1: Int /* by */ // Mangled name (compatible mode: false): {}test1##static(){}kotlin.Int // Mangled name (compatible mode: true): test1$delegate##static(){}kotlin.Int // CHECK JS_IR NATIVE: - // Mangled name: #(){} - // Public signature: /test1.|-5735092642142423279[0] + // Mangled name (compatible mode: false): {}test1##static(){} + // Mangled name (compatible mode: true): test1$delegate##static(){} local fun (): Int // CHECK JVM_IR: // Mangled name: #(){}kotlin.Int // Public signature: /test1.|3978508226793108919[0] // CHECK JS_IR NATIVE: - // Mangled name (compatible mode: false): {}test1##static(){} - // Mangled name (compatible mode: true): test1$delegate##static(){} + // Mangled name: #(){} + // Public signature: /test1.|-5735092642142423279[0] get(): Int // CHECK: diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt index 18cb491a168..5872285262c 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt @@ -35,7 +35,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:test type:kotlin.Int flags:val VAR PROPERTY_DELEGATE name:test$delegate type:kotlin.Lazy [val] - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -45,7 +45,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .foo' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_VAR 'val test$delegate: kotlin.Lazy declared in .foo' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt index 1654bed5305..154fe8cd132 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt @@ -37,7 +37,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt annotations: A(x = 'foo/test') VAR PROPERTY_DELEGATE name:test$delegate type:kotlin.Lazy [val] - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -47,7 +47,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .foo' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_VAR 'val test$delegate: kotlin.Lazy declared in .foo' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt index d33132a30c4..4c9d388e654 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt @@ -1,6 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 annotation class A(val x: String) diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt index aae57a133ed..10535245071 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt @@ -94,7 +94,7 @@ FILE fqName: fileName:/classLevelProperties.kt PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -106,7 +106,7 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null @@ -115,7 +115,7 @@ FILE fqName: fileName:/classLevelProperties.kt PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections' type=java.util.HashMap origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt index 0be98fb6147..6fcbce7ab05 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt @@ -94,7 +94,7 @@ FILE fqName: fileName:/classLevelProperties.kt PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -106,7 +106,7 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null @@ -115,7 +115,7 @@ FILE fqName: fileName:/classLevelProperties.kt PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt index 4559f460c3f..3b43341faeb 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt @@ -168,7 +168,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt VAR name:myContainer type:.MyContainer [var] CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt index 2c424dff7eb..81ef6f3ffc0 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt @@ -175,7 +175,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt VAR name:myContainer type:.MyContainer [var] CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt index 3a08a0fd29c..871fa0aa30f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR data class MyContainer(var i: Int) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.sig.kt.txt index dd176789f9d..f225dfd9cc9 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.sig.kt.txt @@ -5,6 +5,9 @@ var operationScore: Int // CHECK JVM_IR: // Mangled name: #(){}kotlin.Int // Public signature: /operationScore.|7107010356269447258[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /operationScore.|6765204501149451629[0] get // CHECK: // Mangled name: #(kotlin.Int){} @@ -22,6 +25,9 @@ data class MyContainer { // CHECK JVM_IR: // Mangled name: MyContainer#(){}kotlin.Int // Public signature: /MyContainer.i.|-8784396159001927527[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#(){} + // Public signature: /MyContainer.i.|6945482638966853621[0] get // CHECK: // Mangled name: MyContainer#(kotlin.Int){} @@ -35,26 +41,41 @@ data class MyContainer { // CHECK JVM_IR: // Mangled name: MyContainer#component1(){}kotlin.Int // Public signature: /MyContainer.component1|-8217597213800111288[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#component1(){} + // Public signature: /MyContainer.component1|162597135895221648[0] operator fun component1(): Int // CHECK JVM_IR: // Mangled name: MyContainer#copy(kotlin.Int){}MyContainer // Public signature: /MyContainer.copy|-2712595066263545556[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#copy(kotlin.Int){} + // Public signature: /MyContainer.copy|-6971662324481626298[0] fun copy(i: Int): MyContainer // CHECK JVM_IR: // Mangled name: MyContainer#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /MyContainer.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#equals(kotlin.Any?){} + // Public signature: /MyContainer.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: MyContainer#hashCode(){}kotlin.Int // Public signature: /MyContainer.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#hashCode(){} + // Public signature: /MyContainer.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: MyContainer#toString(){}kotlin.String // Public signature: /MyContainer.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#toString(){} + // Public signature: /MyContainer.toString|-1522858123163872138[0] override fun toString(): String } @@ -62,16 +83,25 @@ data class MyContainer { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #get!kotlin.Int@MyContainer(kotlin.Int){}kotlin.Int // Public signature: /get|-3979760669169671321[0] +// CHECK JS_IR NATIVE: +// Mangled name: #get!kotlin.Int@MyContainer(kotlin.Int){} +// Public signature: /get|1971890742879799630[0] operator fun MyContainer.get($context_receiver_0: Int, index: Int): Int // CHECK JVM_IR: // Mangled name: #inc!kotlin.Int@MyContainer(){}MyContainer // Public signature: /inc|-8228731243470619532[0] +// CHECK JS_IR NATIVE: +// Mangled name: #inc!kotlin.Int@MyContainer(){} +// Public signature: /inc|-5486555486431504906[0] operator fun MyContainer.inc($context_receiver_0: Int): MyContainer // CHECK: diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt index acde81a3623..01d3c5ef1b4 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt @@ -150,7 +150,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : kotlin.Int : kotlin.String receiver: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt index a9f8d1d14cf..3ab318a5454 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt @@ -151,7 +151,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : kotlin.Int : kotlin.String receiver: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt index 8cb4bcc6d70..a294191aa54 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR data class MyContainer(var s: String) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.sig.kt.txt index d97cf467d5e..bfb246e9374 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.sig.kt.txt @@ -9,6 +9,9 @@ data class MyContainer { // CHECK JVM_IR: // Mangled name: MyContainer#(){}kotlin.String // Public signature: /MyContainer.s.|4142379646177092803[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#(){} + // Public signature: /MyContainer.s.|-1662172381559511151[0] get // CHECK: // Mangled name: MyContainer#(kotlin.String){} @@ -22,26 +25,41 @@ data class MyContainer { // CHECK JVM_IR: // Mangled name: MyContainer#component1(){}kotlin.String // Public signature: /MyContainer.component1|-7481405593404337796[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#component1(){} + // Public signature: /MyContainer.component1|162597135895221648[0] operator fun component1(): String // CHECK JVM_IR: // Mangled name: MyContainer#copy(kotlin.String){}MyContainer // Public signature: /MyContainer.copy|-9194766205182052641[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#copy(kotlin.String){} + // Public signature: /MyContainer.copy|-8298725480798151031[0] fun copy(s: String): MyContainer // CHECK JVM_IR: // Mangled name: MyContainer#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /MyContainer.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#equals(kotlin.Any?){} + // Public signature: /MyContainer.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: MyContainer#hashCode(){}kotlin.Int // Public signature: /MyContainer.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#hashCode(){} + // Public signature: /MyContainer.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: MyContainer#toString(){}kotlin.String // Public signature: /MyContainer.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyContainer#toString(){} + // Public signature: /MyContainer.toString|-1522858123163872138[0] override fun toString(): String } @@ -49,11 +67,17 @@ data class MyContainer { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #get!kotlin.Int@MyContainer(kotlin.Int){}kotlin.String? // Public signature: /get|-262764729710480185[0] +// CHECK JS_IR NATIVE: +// Mangled name: #get!kotlin.Int@MyContainer(kotlin.Int){} +// Public signature: /get|1971890742879799630[0] operator fun MyContainer.get($context_receiver_0: Int, index: Int): String? // CHECK: diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt index 6edcfc3cee5..5fce9958982 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt @@ -65,7 +65,7 @@ FILE fqName: fileName:/class.kt VALUE_PARAMETER name:outer index:0 type:.Outer BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Inner origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.Inner origin=null : .Outer : .Inner receiver: GET_VAR 'outer: .Outer declared in .f' type=.Outer origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/class.kt b/compiler/testData/ir/irText/declarations/contextReceivers/class.kt index 6dd2aeb6bda..e2b35d5935e 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/class.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/class.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/class.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/class.sig.kt.txt index 9724154d081..1acfb0b4c38 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/class.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/class.sig.kt.txt @@ -6,14 +6,20 @@ class Inner { // Mangled name: Inner#!Outer(kotlin.Any){} // Public signature: /Inner.|7428094623108856579[0] constructor($context_receiver_0: Outer, arg: Any) /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name computed from Ir: Inner.contextReceiverField0 // Mangled name computed from Descriptor: Inner{}contextReceiverField0#jf + // CHECK JS_IR NATIVE: + // Mangled name computed from Ir: Inner.contextReceiverField0 + // Mangled name computed from Descriptor: Inner{}contextReceiverField0 private /* final field */ val contextReceiverField0: Outer // CHECK JVM_IR: // Mangled name: Inner#bar(){}kotlin.Int // Public signature: /Inner.bar|-6436649210114349217[0] + // CHECK JS_IR NATIVE: + // Mangled name: Inner#bar(){} + // Public signature: /Inner.bar|496682602797471549[0] fun bar(): Int } @@ -30,6 +36,9 @@ class Outer { // CHECK JVM_IR: // Mangled name: Outer#(){}kotlin.Int // Public signature: /Outer.x.|4966956098150895696[0] + // CHECK JS_IR NATIVE: + // Mangled name: Outer#(){} + // Public signature: /Outer.x.|1482705010654679335[0] get // CHECK: @@ -45,5 +54,7 @@ class Outer { fun f(outer: Outer): Unit // CHECK JVM_IR: // Mangled name: #f(Outer){}##static@Outer(){}Inner + // CHECK JS_IR NATIVE: + // Mangled name: #f(Outer){}##static@Outer(){} local fun Outer.(): Inner diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt index 113ee557aa1..10d5231faad 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt @@ -251,7 +251,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VAR name:result type:.Result [val] CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt index 60c3be69b4c..4bd754562fb 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt @@ -272,7 +272,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VAR name:result type:.Result [val] CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt index 69bc7f5ea16..d285b463545 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR data class Result(var i: Int) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.sig.kt.txt index 80e896365f6..c50ae3ef41b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.sig.kt.txt @@ -5,6 +5,9 @@ var operationScore: Int // CHECK JVM_IR: // Mangled name: #(){}kotlin.Int // Public signature: /operationScore.|7107010356269447258[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /operationScore.|6765204501149451629[0] get // CHECK: // Mangled name: #(kotlin.Int){} @@ -22,6 +25,9 @@ data class Result { // CHECK JVM_IR: // Mangled name: Result#(){}kotlin.Int // Public signature: /Result.i.|-8784396159001927527[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#(){} + // Public signature: /Result.i.|6945482638966853621[0] get // CHECK: // Mangled name: Result#(kotlin.Int){} @@ -35,26 +41,41 @@ data class Result { // CHECK JVM_IR: // Mangled name: Result#component1(){}kotlin.Int // Public signature: /Result.component1|-8217597213800111288[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#component1(){} + // Public signature: /Result.component1|162597135895221648[0] operator fun component1(): Int // CHECK JVM_IR: // Mangled name: Result#copy(kotlin.Int){}Result // Public signature: /Result.copy|5439238034196076859[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#copy(kotlin.Int){} + // Public signature: /Result.copy|-6971662324481626298[0] fun copy(i: Int): Result // CHECK JVM_IR: // Mangled name: Result#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /Result.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#equals(kotlin.Any?){} + // Public signature: /Result.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: Result#hashCode(){}kotlin.Int // Public signature: /Result.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#hashCode(){} + // Public signature: /Result.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: Result#toString(){}kotlin.String // Public signature: /Result.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#toString(){} + // Public signature: /Result.toString|-1522858123163872138[0] override fun toString(): String } @@ -62,11 +83,17 @@ data class Result { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #div!kotlin.Int@Result(Result){}Result // Public signature: /div|4720798164978030724[0] +// CHECK JS_IR NATIVE: +// Mangled name: #div!kotlin.Int@Result(Result){} +// Public signature: /div|-6612286148996821840[0] operator fun Result.div($context_receiver_0: Int, other: Result): Result // CHECK: @@ -77,6 +104,9 @@ operator fun Result.divAssign($context_receiver_0: Int, other: Result): Unit // CHECK JVM_IR: // Mangled name: #minus!kotlin.Int@Result(Result){}Result // Public signature: /minus|3968749932240310139[0] +// CHECK JS_IR NATIVE: +// Mangled name: #minus!kotlin.Int@Result(Result){} +// Public signature: /minus|7405496643337842736[0] operator fun Result.minus($context_receiver_0: Int, other: Result): Result // CHECK: @@ -87,6 +117,9 @@ operator fun Result.minusAssign($context_receiver_0: Int, other: Result): Unit // CHECK JVM_IR: // Mangled name: #plus!kotlin.Int@Result(Result){}Result // Public signature: /plus|4903222358721452198[0] +// CHECK JS_IR NATIVE: +// Mangled name: #plus!kotlin.Int@Result(Result){} +// Public signature: /plus|-114755674860389360[0] operator fun Result.plus($context_receiver_0: Int, other: Result): Result // CHECK: @@ -97,6 +130,9 @@ operator fun Result.plusAssign($context_receiver_0: Int, other: Result): Unit // CHECK JVM_IR: // Mangled name: #times!kotlin.Int@Result(Result){}Result // Public signature: /times|3621876074874527655[0] +// CHECK JS_IR NATIVE: +// Mangled name: #times!kotlin.Int@Result(Result){} +// Public signature: /times|690380606170453948[0] operator fun Result.times($context_receiver_0: Int, other: Result): Result // CHECK: diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt index 8335eaa0bbb..2c09041341e 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt @@ -135,7 +135,7 @@ FILE fqName: fileName:/contextualInlineCall.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Nothing origin=null : .Context : kotlin.Nothing receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null @@ -171,7 +171,7 @@ FILE fqName: fileName:/contextualInlineCall.kt $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .A : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) declared in .A' type=.A origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt index cbb38fd00c2..d2293f924c6 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt @@ -135,7 +135,7 @@ FILE fqName: fileName:/contextualInlineCall.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Nothing origin=null : .Context : kotlin.Nothing receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null @@ -171,7 +171,7 @@ FILE fqName: fileName:/contextualInlineCall.kt $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .A : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) declared in .A' type=.A origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt index cb182d7dae6..d6cb032ba65 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR class Context { fun c() = 1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.sig.kt.txt index e06d6e159a5..b33c5c50a70 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.sig.kt.txt @@ -9,6 +9,9 @@ class A { // CHECK JVM_IR: // Mangled name: A#(){}kotlin.Any? // Public signature: /A.a.|-5253003527138676623[0] + // CHECK JS_IR NATIVE: + // Mangled name: A#(){} + // Public signature: /A.a.|6785176174175479410[0] get // CHECK: @@ -30,6 +33,9 @@ class Context { // CHECK JVM_IR: // Mangled name: Context#c(){}kotlin.Int // Public signature: /Context.c|-7090409735962961857[0] + // CHECK JS_IR NATIVE: + // Mangled name: Context#c(){} + // Public signature: /Context.c|-2724918380551733646[0] fun c(): Int } @@ -37,30 +43,48 @@ class Context { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #testInline!Context(){}kotlin.Int // Public signature: /testInline|2700554304824268037[0] +// CHECK JS_IR NATIVE: +// Mangled name: #testInline!Context(){} +// Public signature: /testInline|-4531301230787846989[0] inline fun testInline($context_receiver_0: Context): Int // CHECK JVM_IR: // Mangled name: #testInlineWithArg!Context(kotlin.Int){}kotlin.Int // Public signature: /testInlineWithArg|9204994988875814257[0] +// CHECK JS_IR NATIVE: +// Mangled name: #testInlineWithArg!Context(kotlin.Int){} +// Public signature: /testInlineWithArg|-6441098303310197415[0] inline fun testInlineWithArg($context_receiver_0: Context, i: Int): Int // CHECK JVM_IR: // Mangled name: #testInlineWithExtensionAndArg!Context@kotlin.Int(kotlin.Int){}kotlin.Int // Public signature: /testInlineWithExtensionAndArg|-7753885706218316674[0] +// CHECK JS_IR NATIVE: +// Mangled name: #testInlineWithExtensionAndArg!Context@kotlin.Int(kotlin.Int){} +// Public signature: /testInlineWithExtensionAndArg|642168423595809182[0] inline fun Int.testInlineWithExtensionAndArg($context_receiver_0: Context, i: Int): Int // CHECK JVM_IR: // Mangled name: #testInlineWithExtensionAndMultipleArgs!Context@kotlin.Int(kotlin.Int;kotlin.Int){}kotlin.Int // Public signature: /testInlineWithExtensionAndMultipleArgs|6839067967550411636[0] +// CHECK JS_IR NATIVE: +// Mangled name: #testInlineWithExtensionAndMultipleArgs!Context@kotlin.Int(kotlin.Int;kotlin.Int){} +// Public signature: /testInlineWithExtensionAndMultipleArgs|2396628518140949199[0] inline fun Int.testInlineWithExtensionAndMultipleArgs($context_receiver_0: Context, i1: Int, i2: Int): Int // CHECK JVM_IR: // Mangled name: #testInlineWithExtensionAndMultipleContextsAndArgs!Context!A@kotlin.Int(kotlin.Int;kotlin.Int){}kotlin.Int // Public signature: /testInlineWithExtensionAndMultipleContextsAndArgs|4315160499148454711[0] +// CHECK JS_IR NATIVE: +// Mangled name: #testInlineWithExtensionAndMultipleContextsAndArgs!Context!A@kotlin.Int(kotlin.Int;kotlin.Int){} +// Public signature: /testInlineWithExtensionAndMultipleContextsAndArgs|-8262798201429708713[0] inline fun Int.testInlineWithExtensionAndMultipleContextsAndArgs($context_receiver_0: Context, $context_receiver_1: A, i1: Int, i2: Int): Int diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt index 22a63940743..c6f3d2d2d36 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt @@ -85,7 +85,7 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : .O : kotlin.String receiver: CONSTRUCTOR_CALL 'public constructor (o: kotlin.String) declared in .O' type=.O origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt index 41e9eae596b..57bdc924e49 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.sig.kt.txt index 06cc84256d2..88453e83cc7 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.sig.kt.txt @@ -10,6 +10,9 @@ class O { // CHECK JVM_IR: // Mangled name: O#(){}kotlin.String // Public signature: /O.o.|2606027183154875572[0] + // CHECK JS_IR NATIVE: + // Mangled name: O#(){} + // Public signature: /O.o.|-5005637647237604760[0] get // CHECK: @@ -31,6 +34,9 @@ class OK { // CHECK JVM_IR: // Mangled name: OK#(){}kotlin.String // Public signature: /OK.k.|-8248201737917988340[0] + // CHECK JS_IR NATIVE: + // Mangled name: OK#(){} + // Public signature: /OK.k.|2619553883593572199[0] get // CHECK: @@ -41,15 +47,21 @@ class OK { // CHECK JVM_IR: // Mangled name: OK#(){}kotlin.String // Public signature: /OK.result.|8441547134620975366[0] + // CHECK JS_IR NATIVE: + // Mangled name: OK#(){} + // Public signature: /OK.result.|7945192536455394063[0] get // CHECK: // Mangled name: OK#!O(kotlin.String){} // Public signature: /OK.|-804847331171011326[0] constructor($context_receiver_0: O, k: String) /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name computed from Ir: OK.contextReceiverField0 // Mangled name computed from Descriptor: OK{}contextReceiverField0#jf + // CHECK JS_IR NATIVE: + // Mangled name computed from Ir: OK.contextReceiverField0 + // Mangled name computed from Descriptor: OK{}contextReceiverField0 private /* final field */ val contextReceiverField0: O } @@ -57,8 +69,13 @@ class OK { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String##static@O(){}kotlin.String + // CHECK JS_IR NATIVE: + // Mangled name: #box(){}##static@O(){} local fun O.(): String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt index dd70e5d78c1..d68f162cb8f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt @@ -137,7 +137,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [val] - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt index ddecfd5e05b..eb69f8f5736 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt @@ -140,7 +140,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [val] - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt index 969048933a5..d37c596d120 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR // WITH_STDLIB import kotlin.reflect.KProperty diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.sig.kt.txt index c24f86d4603..ed651335718 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.sig.kt.txt @@ -5,6 +5,9 @@ var operationScore: Int // CHECK JVM_IR: // Mangled name: #(){}kotlin.Int // Public signature: /operationScore.|7107010356269447258[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /operationScore.|6765204501149451629[0] get // CHECK: // Mangled name: #(kotlin.Int){} @@ -22,6 +25,9 @@ class Delegate { // CHECK JVM_IR: // Mangled name: Delegate#(){}kotlin.String // Public signature: /Delegate.delegateValue.|-8802990183041924458[0] + // CHECK JS_IR NATIVE: + // Mangled name: Delegate#(){} + // Public signature: /Delegate.delegateValue.|442512873020605275[0] get // CHECK: // Mangled name: Delegate#(kotlin.String){} @@ -36,6 +42,9 @@ class Delegate { // CHECK JVM_IR: // Mangled name: Delegate#getValue!kotlin.Int(kotlin.Any?;kotlin.reflect.KProperty<*>){}kotlin.String // Public signature: /Delegate.getValue|-7764345795816801347[0] + // CHECK JS_IR NATIVE: + // Mangled name: Delegate#getValue!kotlin.Int(kotlin.Any?;kotlin.reflect.KProperty<*>){} + // Public signature: /Delegate.getValue|-415138418502969483[0] operator fun getValue($context_receiver_0: Int, thisRef: Any?, property: KProperty<*>): String // CHECK: @@ -56,6 +65,9 @@ class Result { // CHECK JVM_IR: // Mangled name: Result#(){}kotlin.String // Public signature: /Result.s.|4142379646177092803[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#(){} + // Public signature: /Result.s.|-1662172381559511151[0] get(): String // CHECK: // Mangled name: Result#(kotlin.String){} @@ -66,9 +78,12 @@ class Result { // Mangled name: Result#!kotlin.Int(){} // Public signature: /Result.|-1392650824251324893[0] constructor($context_receiver_0: Int) /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name computed from Ir: Result.contextReceiverField0 // Mangled name computed from Descriptor: Result{}contextReceiverField0#jf + // CHECK JS_IR NATIVE: + // Mangled name computed from Ir: Result.contextReceiverField0 + // Mangled name computed from Descriptor: Result{}contextReceiverField0 private /* final field */ val contextReceiverField0: Int } @@ -76,5 +91,8 @@ class Result { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt index 2bb6e3dbb48..6c3a66d2182 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt @@ -105,7 +105,7 @@ FILE fqName: fileName:/canvas.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : .MyCanvas : kotlin.String receiver: GET_OBJECT 'CLASS OBJECT name:MyCanvas modality:FINAL visibility:public superTypes:[.Canvas]' type=.MyCanvas diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt index c0e6f437b58..3852b5079f7 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR interface Canvas { val suffix: String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.sig.kt.txt index 00959b72de4..45f65cebd5c 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.sig.kt.txt @@ -10,6 +10,9 @@ class Circle : Shape { // CHECK JVM_IR: // Mangled name: Circle#draw!Canvas(){}kotlin.String // Public signature: /Circle.draw|-6733499063990640842[0] + // CHECK JS_IR NATIVE: + // Mangled name: Circle#draw!Canvas(){} + // Public signature: /Circle.draw|4876755509620013985[0] override fun draw($context_receiver_0: Canvas): String } @@ -26,6 +29,9 @@ interface Canvas { // CHECK JVM_IR: // Mangled name: Canvas#(){}kotlin.String // Public signature: /Canvas.suffix.|8958072538558116778[0] + // CHECK JS_IR NATIVE: + // Mangled name: Canvas#(){} + // Public signature: /Canvas.suffix.|-7634976832113083262[0] abstract get } @@ -38,6 +44,9 @@ interface Shape { // CHECK JVM_IR: // Mangled name: Shape#draw!Canvas(){}kotlin.String // Public signature: /Shape.draw|-6733499063990640842[0] + // CHECK JS_IR NATIVE: + // Mangled name: Shape#draw!Canvas(){} + // Public signature: /Shape.draw|4876755509620013985[0] abstract fun draw($context_receiver_0: Canvas): String } @@ -53,6 +62,9 @@ object MyCanvas : Canvas { // CHECK JVM_IR: // Mangled name: MyCanvas#(){}kotlin.String // Public signature: /MyCanvas.suffix.|8958072538558116778[0] + // CHECK JS_IR NATIVE: + // Mangled name: MyCanvas#(){} + // Public signature: /MyCanvas.suffix.|-7634976832113083262[0] override get // CHECK: @@ -65,5 +77,8 @@ object MyCanvas : Canvas { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt index 411813b343b..aebf0b9ff06 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt @@ -225,7 +225,7 @@ FILE fqName: fileName:/compareTo.kt other: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'b: @[FlexibleNullability] kotlin.String? declared in .box.' type=@[FlexibleNullability] kotlin.String? origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : java.util.Comparator : kotlin.String receiver: GET_VAR 'val comparator: java.util.Comparator declared in .box' type=java.util.Comparator origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt index af70450f181..acbefb97a0b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt @@ -229,7 +229,7 @@ FILE fqName: fileName:/compareTo.kt $this: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_VAR 'b: @[FlexibleNullability] kotlin.String? declared in .box.' type=@[FlexibleNullability] kotlin.String? origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : java.util.Comparator : kotlin.String receiver: GET_VAR 'val comparator: java.util.Comparator declared in .box' type=java.util.Comparator origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt index 158357aa10d..31bafd35324 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt @@ -43,7 +43,7 @@ FILE fqName: fileName:/dp.kt other: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Nothing origin=null : .View : kotlin.Nothing receiver: CONSTRUCTOR_CALL 'public constructor () declared in .View' type=.View origin=null @@ -54,10 +54,10 @@ FILE fqName: fileName:/dp.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -71,7 +71,7 @@ FILE fqName: fileName:/dp.kt CALL 'public final fun ($context_receiver_0: .View): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY $receiver: GET_VAR 'it: kotlin.Int declared in .box..' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .View declared in .box.' type=.View origin=null - arg1: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + arg1: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt index b147b1b53ea..9cc49f5812c 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt @@ -43,7 +43,7 @@ FILE fqName: fileName:/dp.kt other: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Nothing origin=null : .View : kotlin.Nothing receiver: CONSTRUCTOR_CALL 'public constructor () declared in .View' type=.View origin=null @@ -54,10 +54,10 @@ FILE fqName: fileName:/dp.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -71,7 +71,7 @@ FILE fqName: fileName:/dp.kt CALL 'public final fun ($context_receiver_0: .View): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY $receiver: GET_VAR 'it: kotlin.Int declared in .box..' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .View declared in .box.' type=.View origin=null - arg1: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + arg1: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt index f0bf951d389..1ee4a789db3 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR // WITH_STDLIB class View { val coefficient = 42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.sig.kt.txt index 4c1a67858d8..c9441b45cea 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.sig.kt.txt @@ -9,6 +9,9 @@ class View { // CHECK JVM_IR: // Mangled name: View#(){}kotlin.Int // Public signature: /View.coefficient.|2286291581442465794[0] + // CHECK JS_IR NATIVE: + // Mangled name: View#(){} + // Public signature: /View.coefficient.|5285326162631504309[0] get // CHECK: @@ -21,6 +24,9 @@ class View { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK: @@ -30,5 +36,8 @@ val Int.dp: Int // CHECK JVM_IR: // Mangled name: #!View@kotlin.Int(){}kotlin.Int // Public signature: /dp.|933397372434095199[0] + // CHECK JS_IR NATIVE: + // Mangled name: #!View@kotlin.Int(){} + // Public signature: /dp.|-92585254995500394[0] get($context_receiver_0: View): Int diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt index 2ad42b35c8f..a78a20c4d49 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt @@ -94,7 +94,7 @@ FILE fqName: fileName:/functionalType.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : .O : kotlin.String receiver: CONSTRUCTOR_CALL 'public constructor () declared in .O' type=.O origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt index 46fe349ee89..8decfe4ca5c 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt @@ -94,7 +94,7 @@ FILE fqName: fileName:/functionalType.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : .O : kotlin.String receiver: CONSTRUCTOR_CALL 'public constructor () declared in .O' type=.O origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt index da2d4d44472..956deecdfd3 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR class Param class O { diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.sig.kt.txt index f43d1fbde2e..2c0cb0cbef6 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.sig.kt.txt @@ -9,6 +9,9 @@ class K { // CHECK JVM_IR: // Mangled name: K#(){}kotlin.String // Public signature: /K.k.|-8248201737917988340[0] + // CHECK JS_IR NATIVE: + // Mangled name: K#(){} + // Public signature: /K.k.|2619553883593572199[0] get // CHECK: @@ -29,6 +32,9 @@ class O { // CHECK JVM_IR: // Mangled name: O#(){}kotlin.String // Public signature: /O.o.|2606027183154875572[0] + // CHECK JS_IR NATIVE: + // Mangled name: O#(){} + // Public signature: /O.o.|-5005637647237604760[0] get // CHECK: @@ -52,10 +58,16 @@ class Param { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #f!O@K(kotlin.Function3){0§}0:0 // Public signature: /f|-7653040485655702379[0] +// CHECK JS_IR NATIVE: +// Mangled name: #f!O@K(kotlin.Function3){0§} +// Public signature: /f|6244942347355309773[0] fun K.f($context_receiver_0: O, g: @ExtensionFunctionType Function3): T diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt index 808eb001a05..4f2c5620086 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt @@ -142,7 +142,7 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Monoid.sum> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' - CALL 'public final fun fold (initial: R of kotlin.collections.CollectionsKt.fold, operation: kotlin.Function2): R of kotlin.collections.CollectionsKt.fold declared in kotlin.collections.CollectionsKt' type=T of .sum origin=null + CALL 'public final fun fold (initial: R of kotlin.collections.fold, operation: kotlin.Function2): R of kotlin.collections.fold declared in kotlin.collections' type=T of .sum origin=null : T of .sum : T of .sum $receiver: GET_VAR ': kotlin.collections.List.sum> declared in .sum' type=kotlin.collections.List.sum> origin=null @@ -161,7 +161,7 @@ FILE fqName: fileName:/monoidSum.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .IntMonoid : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.IntMonoid @@ -172,7 +172,7 @@ FILE fqName: fileName:/monoidSum.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .box' CALL 'public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' type=kotlin.Int origin=null : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -180,7 +180,7 @@ FILE fqName: fileName:/monoidSum.kt CONST Int type=kotlin.Int value=3 $context_receiver_0: GET_VAR '$this$with: .IntMonoid declared in .box.' type=.IntMonoid origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : .StringMonoid : kotlin.String receiver: GET_OBJECT 'CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.StringMonoid @@ -191,7 +191,7 @@ FILE fqName: fileName:/monoidSum.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' type=kotlin.String origin=null : kotlin.String - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="O" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt index 659380c3706..260b82e57fc 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt @@ -142,7 +142,7 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Monoid.sum> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' - CALL 'public final fun fold (initial: R of kotlin.collections.CollectionsKt.fold, operation: kotlin.Function2<@[ParameterName(name = 'acc')] R of kotlin.collections.CollectionsKt.fold, T of kotlin.collections.CollectionsKt.fold, R of kotlin.collections.CollectionsKt.fold>): R of kotlin.collections.CollectionsKt.fold declared in kotlin.collections.CollectionsKt' type=T of .sum origin=null + CALL 'public final fun fold (initial: R of kotlin.collections.fold, operation: kotlin.Function2<@[ParameterName(name = 'acc')] R of kotlin.collections.fold, T of kotlin.collections.fold, R of kotlin.collections.fold>): R of kotlin.collections.fold declared in kotlin.collections' type=T of .sum origin=null : T of .sum : T of .sum $receiver: GET_VAR ': kotlin.collections.List.sum> declared in .sum' type=kotlin.collections.List.sum> origin=null @@ -161,7 +161,7 @@ FILE fqName: fileName:/monoidSum.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .IntMonoid : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.IntMonoid @@ -172,7 +172,7 @@ FILE fqName: fileName:/monoidSum.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .box' CALL 'public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' type=kotlin.Int origin=null : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -180,7 +180,7 @@ FILE fqName: fileName:/monoidSum.kt CONST Int type=kotlin.Int value=3 $context_receiver_0: GET_VAR '$this$with: .IntMonoid declared in .box.' type=.IntMonoid origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.String origin=null : .StringMonoid : kotlin.String receiver: GET_OBJECT 'CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.StringMonoid @@ -191,7 +191,7 @@ FILE fqName: fileName:/monoidSum.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' type=kotlin.String origin=null : kotlin.String - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="O" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt index e0b5a889179..8509191dfa8 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR // WITH_STDLIB interface Semigroup { infix fun T.combine(other: T): T diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.sig.kt.txt index 4d47a1b8f9e..e0fc471ab41 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.sig.kt.txt @@ -5,6 +5,9 @@ interface Monoid : Semigroup { // CHECK JVM_IR: // Mangled name: Monoid#combine@1:0(1:0){}1:0 // Public signature: /Monoid.combine|-3517256775590682507[0] + // CHECK JS_IR NATIVE: + // Mangled name: Monoid#combine@1:0(1:0){} + // Public signature: /Monoid.combine|8412967464389689937[0] abstract /* fake */ override infix fun T.combine(other: T): T // CHECK: @@ -14,6 +17,9 @@ interface Monoid : Semigroup { // CHECK JVM_IR: // Mangled name: Monoid#(){}1:0 // Public signature: /Monoid.unit.|-2842189358620964971[0] + // CHECK JS_IR NATIVE: + // Mangled name: Monoid#(){} + // Public signature: /Monoid.unit.|1530864625432111105[0] abstract get } @@ -26,6 +32,9 @@ interface Semigroup { // CHECK JVM_IR: // Mangled name: Semigroup#combine@1:0(1:0){}1:0 // Public signature: /Semigroup.combine|-3517256775590682507[0] + // CHECK JS_IR NATIVE: + // Mangled name: Semigroup#combine@1:0(1:0){} + // Public signature: /Semigroup.combine|8412967464389689937[0] abstract infix fun T.combine(other: T): T } @@ -41,6 +50,9 @@ object IntMonoid : Monoid { // CHECK JVM_IR: // Mangled name: IntMonoid#(){}kotlin.Int // Public signature: /IntMonoid.unit.|3772729924213749256[0] + // CHECK JS_IR NATIVE: + // Mangled name: IntMonoid#(){} + // Public signature: /IntMonoid.unit.|1530864625432111105[0] override get // CHECK: @@ -51,6 +63,9 @@ object IntMonoid : Monoid { // CHECK JVM_IR: // Mangled name: IntMonoid#combine@kotlin.Int(kotlin.Int){}kotlin.Int // Public signature: /IntMonoid.combine|4765448259581317405[0] + // CHECK JS_IR NATIVE: + // Mangled name: IntMonoid#combine@kotlin.Int(kotlin.Int){} + // Public signature: /IntMonoid.combine|4429091503069708823[0] override infix fun Int.combine(other: Int): Int } @@ -66,6 +81,9 @@ object StringMonoid : Monoid { // CHECK JVM_IR: // Mangled name: StringMonoid#(){}kotlin.String // Public signature: /StringMonoid.unit.|4504480110251605077[0] + // CHECK JS_IR NATIVE: + // Mangled name: StringMonoid#(){} + // Public signature: /StringMonoid.unit.|1530864625432111105[0] override get // CHECK: @@ -76,6 +94,9 @@ object StringMonoid : Monoid { // CHECK JVM_IR: // Mangled name: StringMonoid#combine@kotlin.String(kotlin.String){}kotlin.String // Public signature: /StringMonoid.combine|-5815259829474546918[0] + // CHECK JS_IR NATIVE: + // Mangled name: StringMonoid#combine@kotlin.String(kotlin.String){} + // Public signature: /StringMonoid.combine|-2748332935123183663[0] override infix fun String.combine(other: String): String } @@ -83,10 +104,16 @@ object StringMonoid : Monoid { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #sum!Monoid<0:0>@kotlin.collections.List<0:0>(){0§}0:0 // Public signature: /sum|7635142307973834922[0] +// CHECK JS_IR NATIVE: +// Mangled name: #sum!Monoid<0:0>@kotlin.collections.List<0:0>(){0§} +// Public signature: /sum|6490726678726957775[0] fun List.sum($context_receiver_0: Monoid): T diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt index 0c9785cda34..e9bd075837f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt @@ -39,7 +39,7 @@ FILE fqName: fileName:/function.kt FUN name:bar visibility:public modality:FINAL <> (c:.C) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:.C BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .C : kotlin.Unit receiver: GET_VAR 'c: .C declared in .bar' type=.C origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/function.kt b/compiler/testData/ir/irText/declarations/contextReceivers/function.kt index 67585c87b4b..15d003a54f6 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/function.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/function.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/function.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/function.sig.kt.txt index 0589b79aeaf..794a1907582 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/function.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/function.sig.kt.txt @@ -10,6 +10,9 @@ class C { // CHECK JVM_IR: // Mangled name: C#(){}kotlin.Int // Public signature: /C.c.|-2440337234483931882[0] + // CHECK JS_IR NATIVE: + // Mangled name: C#(){} + // Public signature: /C.c.|2368736057102379596[0] get // CHECK: diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt index 926a43103a5..dfa456dddf8 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt @@ -164,7 +164,7 @@ FILE fqName: fileName:/functionalType.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .C declared in .test.' type=.C origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .C : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null @@ -172,7 +172,7 @@ FILE fqName: fileName:/functionalType.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.C) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.C BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .R : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor () declared in .R' type=.R origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt index 03781a32a18..dd5443d4524 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt @@ -164,7 +164,7 @@ FILE fqName: fileName:/functionalType.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .C declared in .test.' type=.C origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .C : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null @@ -172,7 +172,7 @@ FILE fqName: fileName:/functionalType.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.C) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.C BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .R : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor () declared in .R' type=.R origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt index b27c2d2818b..06ffff7c30c 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 + class Param class C { val c = 42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.sig.kt.txt index 2df3d27c44a..406886080a3 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.sig.kt.txt @@ -9,6 +9,9 @@ class C { // CHECK JVM_IR: // Mangled name: C#(){}kotlin.Int // Public signature: /C.c.|-2440337234483931882[0] + // CHECK JS_IR NATIVE: + // Mangled name: C#(){} + // Public signature: /C.c.|2368736057102379596[0] get // CHECK: @@ -40,6 +43,9 @@ class R { // CHECK JVM_IR: // Mangled name: R#(){}kotlin.Int // Public signature: /R.r.|4210912234201800356[0] + // CHECK JS_IR NATIVE: + // Mangled name: R#(){} + // Public signature: /R.r.|-7424184448774736572[0] get // CHECK: diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt index 86c976f0538..13d545303fb 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt @@ -1,13 +1,9 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K1: JS_IR -// IGNORE_BACKEND_K1: JS_IR_ES6 - -// MUTE_SIGNATURE_COMPARISON_K2: ANY +// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57429 - context(T) class A context(Collection

) class B

diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.sig.kt.txt index 38461a3a27e..5ebcf8a2c43 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.sig.kt.txt @@ -6,9 +6,12 @@ class A { // Mangled name: A#!1:0(){} // Public signature: /A.|5547349096232763669[0] constructor($context_receiver_0: T) /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name computed from Ir: A.contextReceiverField0 // Mangled name computed from Descriptor: A{}contextReceiverField0#jf + // CHECK JS_IR NATIVE: + // Mangled name computed from Ir: A.contextReceiverField0 + // Mangled name computed from Descriptor: A{}contextReceiverField0 private /* final field */ val contextReceiverField0: T } @@ -21,9 +24,12 @@ class B

{ // Mangled name: B#!kotlin.collections.Collection<1:0>(){} // Public signature: /B.|-5453957848603821578[0] constructor($context_receiver_0: Collection

) /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name computed from Ir: B.contextReceiverField0 // Mangled name computed from Descriptor: B{}contextReceiverField0#jf + // CHECK JS_IR NATIVE: + // Mangled name computed from Ir: B.contextReceiverField0 + // Mangled name computed from Descriptor: B{}contextReceiverField0 private /* final field */ val contextReceiverField0: Collection

} diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt index 2a766cced7b..b617edff9ef 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt @@ -260,7 +260,7 @@ FILE fqName: fileName:/iteratorOperator.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.CounterConfig BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.CounterIterator origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.CounterIterator origin=null : .CounterConfig : .CounterIterator receiver: GET_VAR '$context_receiver_0: .CounterConfig declared in .iterator' type=.CounterConfig origin=null @@ -276,7 +276,7 @@ FILE fqName: fileName:/iteratorOperator.kt BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .CounterConfig : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) declared in .CounterConfig' type=.CounterConfig origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt index eb57ee126b8..8c50d52c391 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt @@ -263,7 +263,7 @@ FILE fqName: fileName:/iteratorOperator.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.CounterConfig BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.CounterIterator origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.CounterIterator origin=null : .CounterConfig : .CounterIterator receiver: GET_VAR '$context_receiver_0: .CounterConfig declared in .iterator' type=.CounterConfig origin=null @@ -279,7 +279,7 @@ FILE fqName: fileName:/iteratorOperator.kt BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .CounterConfig : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) declared in .CounterConfig' type=.CounterConfig origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt index 2fdbc167cf6..00a4d393499 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR // WITH_STDLIB data class Counter(var i: Int = 0) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.sig.kt.txt index 9c14df83a8c..df7ad924993 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.sig.kt.txt @@ -9,6 +9,9 @@ data class Counter { // CHECK JVM_IR: // Mangled name: Counter#(){}kotlin.Int // Public signature: /Counter.i.|-8784396159001927527[0] + // CHECK JS_IR NATIVE: + // Mangled name: Counter#(){} + // Public signature: /Counter.i.|6945482638966853621[0] get // CHECK: // Mangled name: Counter#(kotlin.Int){} @@ -22,26 +25,41 @@ data class Counter { // CHECK JVM_IR: // Mangled name: Counter#component1(){}kotlin.Int // Public signature: /Counter.component1|-8217597213800111288[0] + // CHECK JS_IR NATIVE: + // Mangled name: Counter#component1(){} + // Public signature: /Counter.component1|162597135895221648[0] operator fun component1(): Int // CHECK JVM_IR: // Mangled name: Counter#copy(kotlin.Int){}Counter // Public signature: /Counter.copy|2961790952651150110[0] + // CHECK JS_IR NATIVE: + // Mangled name: Counter#copy(kotlin.Int){} + // Public signature: /Counter.copy|-6971662324481626298[0] fun copy(i: Int): Counter // CHECK JVM_IR: // Mangled name: Counter#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /Counter.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: Counter#equals(kotlin.Any?){} + // Public signature: /Counter.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: Counter#hashCode(){}kotlin.Int // Public signature: /Counter.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: Counter#hashCode(){} + // Public signature: /Counter.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: Counter#toString(){}kotlin.String // Public signature: /Counter.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: Counter#toString(){} + // Public signature: /Counter.toString|-1522858123163872138[0] override fun toString(): String } @@ -57,6 +75,9 @@ data class CounterConfig { // CHECK JVM_IR: // Mangled name: CounterConfig#(){}kotlin.Int // Public signature: /CounterConfig.max.|3083068406880796820[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterConfig#(){} + // Public signature: /CounterConfig.max.|-2092975001266666827[0] get // CHECK: @@ -66,26 +87,41 @@ data class CounterConfig { // CHECK JVM_IR: // Mangled name: CounterConfig#component1(){}kotlin.Int // Public signature: /CounterConfig.component1|-8217597213800111288[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterConfig#component1(){} + // Public signature: /CounterConfig.component1|162597135895221648[0] operator fun component1(): Int // CHECK JVM_IR: // Mangled name: CounterConfig#copy(kotlin.Int){}CounterConfig // Public signature: /CounterConfig.copy|-6936688204078599579[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterConfig#copy(kotlin.Int){} + // Public signature: /CounterConfig.copy|-6971662324481626298[0] fun copy(max: Int): CounterConfig // CHECK JVM_IR: // Mangled name: CounterConfig#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /CounterConfig.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterConfig#equals(kotlin.Any?){} + // Public signature: /CounterConfig.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: CounterConfig#hashCode(){}kotlin.Int // Public signature: /CounterConfig.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterConfig#hashCode(){} + // Public signature: /CounterConfig.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: CounterConfig#toString(){}kotlin.String // Public signature: /CounterConfig.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterConfig#toString(){} + // Public signature: /CounterConfig.toString|-1522858123163872138[0] override fun toString(): String } @@ -101,25 +137,37 @@ class CounterIterator : Iterator { // CHECK JVM_IR: // Mangled name: CounterIterator#(){}Counter // Public signature: /CounterIterator.counter.|-1972897806384113317[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterIterator#(){} + // Public signature: /CounterIterator.counter.|6903507550118978958[0] private get // CHECK: // Mangled name: CounterIterator#!CounterConfig(Counter){} // Public signature: /CounterIterator.|4731448293962665986[0] constructor($context_receiver_0: CounterConfig, counter: Counter) /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name computed from Ir: CounterIterator.contextReceiverField0 // Mangled name computed from Descriptor: CounterIterator{}contextReceiverField0#jf + // CHECK JS_IR NATIVE: + // Mangled name computed from Ir: CounterIterator.contextReceiverField0 + // Mangled name computed from Descriptor: CounterIterator{}contextReceiverField0 private /* final field */ val contextReceiverField0: CounterConfig // CHECK JVM_IR: // Mangled name: CounterIterator#hasNext(){}kotlin.Boolean // Public signature: /CounterIterator.hasNext|-8822308834813776763[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterIterator#hasNext(){} + // Public signature: /CounterIterator.hasNext|-3649021657867765832[0] override operator fun hasNext(): Boolean // CHECK JVM_IR: // Mangled name: CounterIterator#next(){}kotlin.Int // Public signature: /CounterIterator.next|-2200495694769701977[0] + // CHECK JS_IR NATIVE: + // Mangled name: CounterIterator#next(){} + // Public signature: /CounterIterator.next|4628025478201224268[0] override operator fun next(): Int } @@ -127,10 +175,16 @@ class CounterIterator : Iterator { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #iterator!CounterConfig@Counter(){}CounterIterator // Public signature: /iterator|3723033021471264185[0] +// CHECK JS_IR NATIVE: +// Mangled name: #iterator!CounterConfig@Counter(){} +// Public signature: /iterator|-4428923153638402647[0] operator fun Counter.iterator($context_receiver_0: CounterConfig): CounterIterator diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt index 508d2466547..ec81619d320 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt @@ -39,7 +39,7 @@ FILE fqName: fileName:/lazy.kt VALUE_PARAMETER name:lazyT index:2 type:.Lazy.f> VALUE_PARAMETER name:lazyLazyT index:3 type:.Lazy<.Lazy.f>> BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -47,7 +47,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy2: .Lazy declared in .f' type=.Lazy origin=null @@ -62,7 +62,7 @@ FILE fqName: fileName:/lazy.kt : kotlin.CharSequence $receiver: GET_VAR '$this$with: .Lazy declared in .f.' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy2: .Lazy declared in .f' type=.Lazy origin=null @@ -70,7 +70,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -85,7 +85,7 @@ FILE fqName: fileName:/lazy.kt : kotlin.Int $receiver: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy.f> : kotlin.Unit receiver: GET_VAR 'lazyT: .Lazy.f> declared in .f' type=.Lazy.f> origin=null @@ -93,7 +93,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy.f>) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy.f> BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -105,7 +105,7 @@ FILE fqName: fileName:/lazy.kt : kotlin.Int $receiver: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy<.Lazy.f>> : kotlin.Unit receiver: GET_VAR 'lazyLazyT: .Lazy<.Lazy.f>> declared in .f' type=.Lazy<.Lazy.f>> origin=null @@ -113,7 +113,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy<.Lazy.f>>) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy<.Lazy.f>> BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -129,7 +129,7 @@ FILE fqName: fileName:/lazy.kt : T of .f $receiver: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy<.Lazy.f>> declared in .f.' type=.Lazy<.Lazy.f>> origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -137,7 +137,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .Lazy<.Lazy.f>> : kotlin.Unit receiver: GET_VAR 'lazyLazyT: .Lazy<.Lazy.f>> declared in .f' type=.Lazy<.Lazy.f>> origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt index 2ee7531c3a0..e54329abcc8 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt index 1c7d34c7ccc..96c1b35f272 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt @@ -23,15 +23,15 @@ FILE fqName: fileName:/overloadPriority.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f ($context_receiver_0: .Context): kotlin.String declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:f visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (): kotlin.Any declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .Context : kotlin.Int receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt index 4e2211ddaec..d87a03e929e 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.sig.kt.txt index f725d50fe14..2de3420c066 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.sig.kt.txt @@ -12,11 +12,17 @@ class Context { // CHECK JVM_IR: // Mangled name: #f!Context(){}kotlin.String // Public signature: /f|-5175802051654911360[0] +// CHECK JS_IR NATIVE: +// Mangled name: #f!Context(){} +// Public signature: /f|-1050574650869165395[0] fun f($context_receiver_0: Context): String // CHECK JVM_IR: // Mangled name: #f(){}kotlin.Any // Public signature: /f|-2324325393552926316[0] +// CHECK JS_IR NATIVE: +// Mangled name: #f(){} +// Public signature: /f|5316533450599009716[0] fun f(): Any // CHECK: @@ -25,5 +31,7 @@ fun f(): Any fun test(): Unit // CHECK JVM_IR: // Mangled name: #test(){}##static@Context(){}kotlin.Int + // CHECK JS_IR NATIVE: + // Mangled name: #test(){}##static@Context(){} local fun Context.(): Int diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt index 7b1e5e2eec6..c7828878889 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt @@ -19,7 +19,7 @@ FILE fqName: fileName:/overloading.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int receiver: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt index 54a4c02d50d..757fea1e990 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.sig.kt.txt index 2d6988b3b66..a7bb7efd64b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.sig.kt.txt @@ -1,11 +1,17 @@ // CHECK JVM_IR: // Mangled name: #foo!kotlin.Int(){}kotlin.Int // Public signature: /foo|-298514072419997277[0] +// CHECK JS_IR NATIVE: +// Mangled name: #foo!kotlin.Int(){} +// Public signature: /foo|-2047845050892281405[0] fun foo($context_receiver_0: Int): Int // CHECK JVM_IR: // Mangled name: #foo!kotlin.Int!kotlin.String(){}kotlin.Int // Public signature: /foo|7076979931255393427[0] +// CHECK JS_IR NATIVE: +// Mangled name: #foo!kotlin.Int!kotlin.String(){} +// Public signature: /foo|-6855876411691473491[0] fun foo($context_receiver_0: Int, $context_receiver_1: String): Int // CHECK: @@ -14,5 +20,7 @@ fun foo($context_receiver_0: Int, $context_receiver_1: String): Int fun test(): Unit // CHECK JVM_IR: // Mangled name: #test(){}##static@kotlin.Int(){}kotlin.Int + // CHECK JS_IR NATIVE: + // Mangled name: #test(){}##static@kotlin.Int(){} local fun Int.(): Int diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt index 1a065bca107..78b2f265ccd 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt @@ -44,7 +44,7 @@ FILE fqName: fileName:/plusMatrix.kt VALUE_PARAMETER name:other index:1 type:.Matrix BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun plus ($context_receiver_0: .NumberOperations, other: .Matrix): .Matrix declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:plusMatrix visibility:public modality:FINAL <> ($receiver:.NumberOperations, m1:.Matrix, m2:.Matrix) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.NumberOperations VALUE_PARAMETER name:m1 index:0 type:.Matrix diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt index 1cefbb8b0c4..6c4708cb1db 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt @@ -1,8 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // !DIAGNOSTICS: -UNUSED_PARAMETER -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 + interface NumberOperations { fun Number.plus(other: Number): Number } diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.sig.kt.txt index d898e0973dd..04aeeef260d 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.sig.kt.txt @@ -17,6 +17,9 @@ interface NumberOperations { // CHECK JVM_IR: // Mangled name: NumberOperations#plus@kotlin.Number(kotlin.Number){}kotlin.Number // Public signature: /NumberOperations.plus|-6518987633126930952[0] + // CHECK JS_IR NATIVE: + // Mangled name: NumberOperations#plus@kotlin.Number(kotlin.Number){} + // Public signature: /NumberOperations.plus|-1680445349837757562[0] abstract fun Number.plus(other: Number): Number } @@ -24,6 +27,9 @@ interface NumberOperations { // CHECK JVM_IR: // Mangled name: #plus!NumberOperations@Matrix(Matrix){}Matrix // Public signature: /plus|1303343764214809933[0] +// CHECK JS_IR NATIVE: +// Mangled name: #plus!NumberOperations@Matrix(Matrix){} +// Public signature: /plus|-2670469522083122958[0] fun Matrix.plus($context_receiver_0: NumberOperations, other: Matrix): Matrix // CHECK: diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt index f99d215016d..2ffb81f60a2 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt @@ -1,9 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K1: JS_IR -// IGNORE_BACKEND_K1: JS_IR_ES6 -// MUTE_SIGNATURE_COMPARISON_K2: ANY +// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57429 class A(val a: T) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.sig.kt.txt index 4792aab4c0d..a758037a002 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.sig.kt.txt @@ -9,6 +9,9 @@ class A { // CHECK JVM_IR: // Mangled name: A#(){}1:0 // Public signature: /A.a.|5765441560292063424[0] + // CHECK JS_IR NATIVE: + // Mangled name: A#(){} + // Public signature: /A.a.|6785176174175479410[0] get // CHECK: @@ -29,6 +32,9 @@ class B { // CHECK JVM_IR: // Mangled name: B#(){}kotlin.Any // Public signature: /B.b.|4768115582956424363[0] + // CHECK JS_IR NATIVE: + // Mangled name: B#(){} + // Public signature: /B.b.|812004636995167743[0] get // CHECK: @@ -49,6 +55,9 @@ class C { // CHECK JVM_IR: // Mangled name: C#(){}kotlin.Any // Public signature: /C.c.|-7073232512849879703[0] + // CHECK JS_IR NATIVE: + // Mangled name: C#(){} + // Public signature: /C.c.|2368736057102379596[0] get // CHECK: @@ -70,5 +79,8 @@ val C.p: Int // CHECK JVM_IR: // Mangled name: #!A!A!B@C(){}kotlin.Int // Public signature: /p.|-7725362510645392909[0] + // CHECK JS_IR NATIVE: + // Mangled name: #!A!A!B@C(){} + // Public signature: /p.|-2698360468898936971[0] get($context_receiver_0: A, $context_receiver_1: A, $context_receiver_2: B): Int diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt index 189e64269c7..2ad1c7fad2e 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/typeParameterAsContextReceiver.kt BLOCK_BODY FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt index 676a6e3db20..6ccc55bbcb7 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt index 9880df328c9..b3a21f34985 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt @@ -176,7 +176,7 @@ FILE fqName: fileName:/unaryOperators.kt CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt index 50cd214c6ce..fdbd6635e42 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt @@ -181,7 +181,7 @@ FILE fqName: fileName:/unaryOperators.kt CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt index b065aabe11e..3a84a325e08 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND: JS_IR data class Result(val i: Int) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.sig.kt.txt index bbde809924d..5c0aa186297 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.sig.kt.txt @@ -5,6 +5,9 @@ var operationScore: Int // CHECK JVM_IR: // Mangled name: #(){}kotlin.Int // Public signature: /operationScore.|7107010356269447258[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /operationScore.|6765204501149451629[0] get // CHECK: // Mangled name: #(kotlin.Int){} @@ -22,6 +25,9 @@ data class Result { // CHECK JVM_IR: // Mangled name: Result#(){}kotlin.Int // Public signature: /Result.i.|-8784396159001927527[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#(){} + // Public signature: /Result.i.|6945482638966853621[0] get // CHECK: @@ -31,26 +37,41 @@ data class Result { // CHECK JVM_IR: // Mangled name: Result#component1(){}kotlin.Int // Public signature: /Result.component1|-8217597213800111288[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#component1(){} + // Public signature: /Result.component1|162597135895221648[0] operator fun component1(): Int // CHECK JVM_IR: // Mangled name: Result#copy(kotlin.Int){}Result // Public signature: /Result.copy|5439238034196076859[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#copy(kotlin.Int){} + // Public signature: /Result.copy|-6971662324481626298[0] fun copy(i: Int): Result // CHECK JVM_IR: // Mangled name: Result#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /Result.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#equals(kotlin.Any?){} + // Public signature: /Result.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: Result#hashCode(){}kotlin.Int // Public signature: /Result.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#hashCode(){} + // Public signature: /Result.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: Result#toString(){}kotlin.String // Public signature: /Result.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: Result#toString(){} + // Public signature: /Result.toString|-1522858123163872138[0] override fun toString(): String } @@ -58,25 +79,40 @@ data class Result { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #dec!kotlin.Int@Result(){}Result // Public signature: /dec|6054584114651390969[0] +// CHECK JS_IR NATIVE: +// Mangled name: #dec!kotlin.Int@Result(){} +// Public signature: /dec|-7224087074051473472[0] operator fun Result.dec($context_receiver_0: Int): Result // CHECK JVM_IR: // Mangled name: #inc!kotlin.Int@Result(){}Result // Public signature: /inc|-6349683016158919485[0] +// CHECK JS_IR NATIVE: +// Mangled name: #inc!kotlin.Int@Result(){} +// Public signature: /inc|6156460640001049173[0] operator fun Result.inc($context_receiver_0: Int): Result // CHECK JVM_IR: // Mangled name: #unaryMinus!kotlin.Int@Result(){}Result // Public signature: /unaryMinus|-8891797954767898088[0] +// CHECK JS_IR NATIVE: +// Mangled name: #unaryMinus!kotlin.Int@Result(){} +// Public signature: /unaryMinus|-1245437128467335194[0] operator fun Result.unaryMinus($context_receiver_0: Int): Result // CHECK JVM_IR: // Mangled name: #unaryPlus!kotlin.Int@Result(){}Result // Public signature: /unaryPlus|6329022242309077522[0] +// CHECK JS_IR NATIVE: +// Mangled name: #unaryPlus!kotlin.Int@Result(){} +// Public signature: /unaryPlus|-4073638544609631[0] operator fun Result.unaryPlus($context_receiver_0: Int): Result diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt index 48a98c19b82..2a659014245 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -13,7 +13,7 @@ FILE fqName: fileName:/delegatedProperties.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -39,7 +39,7 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test2 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private [final] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -51,7 +51,7 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null @@ -102,7 +102,7 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections' type=java.util.HashMap origin=null : kotlin.String : kotlin.Any FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt index 75c6677bb8c..23bdebd5fc6 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -13,7 +13,7 @@ FILE fqName: fileName:/delegatedProperties.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -39,7 +39,7 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test2 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private [final] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -51,7 +51,7 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null @@ -103,7 +103,7 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Any FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/kt27005.ir.txt b/compiler/testData/ir/irText/declarations/kt27005.ir.txt index 9f66763ff05..185d86e988f 100644 --- a/compiler/testData/ir/irText/declarations/kt27005.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt27005.ir.txt @@ -12,4 +12,4 @@ FILE fqName: fileName:/kt27005.kt FUN name:baz visibility:public modality:FINAL () returnType:T of .baz [suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false BLOCK_BODY - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null diff --git a/compiler/testData/ir/irText/declarations/kt27005.kt b/compiler/testData/ir/irText/declarations/kt27005.kt index 607ca03aba2..d24ad7f7458 100644 --- a/compiler/testData/ir/irText/declarations/kt27005.kt +++ b/compiler/testData/ir/irText/declarations/kt27005.kt @@ -1,6 +1,4 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 suspend fun foo() = baz() suspend fun bar() = baz() diff --git a/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt b/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt index ca77f63870d..a697b93a11c 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/kt47527.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing $receiver: GET_VAR 'val tmp_0: kotlin.Any? declared in .test_1' type=kotlin.Any? origin=null @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt47527.kt VALUE_PARAMETER name:value index:0 type:kotlin.Any? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test_2 (value: kotlin.Any?): kotlin.String? declared in ' - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.String? origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.String? origin=null : kotlin.String? block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String? @@ -45,7 +45,7 @@ FILE fqName: fileName:/kt47527.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing $receiver: GET_VAR 'val tmp_1: kotlin.Any? declared in .test_2.' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/declarations/kt47527.ir.txt b/compiler/testData/ir/irText/declarations/kt47527.ir.txt index 7d9834da62a..fdea4228c02 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt47527.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/kt47527.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing $receiver: GET_VAR 'val tmp_0: kotlin.Any? declared in .test_1' type=kotlin.Any? origin=null @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt47527.kt VALUE_PARAMETER name:value index:0 type:kotlin.Any? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test_2 (value: kotlin.Any?): kotlin.String? declared in ' - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.Nothing? origin=null : kotlin.Nothing? block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing? @@ -45,7 +45,7 @@ FILE fqName: fileName:/kt47527.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing $receiver: GET_VAR 'val tmp_1: kotlin.Any? declared in .test_2.' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/declarations/kt47527.kt b/compiler/testData/ir/irText/declarations/kt47527.kt index febc770d387..24f129ddec9 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.kt +++ b/compiler/testData/ir/irText/declarations/kt47527.kt @@ -1,7 +1,5 @@ // ISSUE: KT-47527 // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun test_1(value: Any?): String? = value?.let { return "O" } fun test_2(value: Any?): String? = run { diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt index b8da4ecd892..23e030b3804 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:val VAR PROPERTY_DELEGATE name:x$delegate type:kotlin.Lazy [val] - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -13,7 +13,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test1' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_VAR 'val x$delegate: kotlin.Lazy declared in .test1' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -24,7 +24,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:var VAR PROPERTY_DELEGATE name:x$delegate type:java.util.HashMap [val] - CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections' type=java.util.HashMap origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt index 2d35b97b267..e2ae705a8ce 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:val VAR PROPERTY_DELEGATE name:x$delegate type:kotlin.Lazy [val] - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -13,7 +13,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test1' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_VAR 'val x$delegate: kotlin.Lazy declared in .test1' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -24,7 +24,7 @@ FILE fqName: fileName:/localDelegatedProperties.kt BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:var VAR PROPERTY_DELEGATE name:x$delegate type:java.util.HashMap{ kotlin.collections.HashMap } [val] - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt index 8b50f4d8538..dec8c6e8554 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt @@ -71,7 +71,7 @@ FILE fqName: fileName:/packageLevelProperties.kt PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -82,7 +82,7 @@ FILE fqName: fileName:/packageLevelProperties.kt correspondingProperty: PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -90,7 +90,7 @@ FILE fqName: fileName:/packageLevelProperties.kt PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections' type=java.util.HashMap origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt b/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt index 7cff377d64f..1dcfcfb558a 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt @@ -71,7 +71,7 @@ FILE fqName: fileName:/packageLevelProperties.kt PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin.LazyKt' type=kotlin.Lazy origin=null + CALL 'public final fun lazy (initializer: kotlin.Function0): kotlin.Lazy declared in kotlin' type=kotlin.Lazy origin=null : kotlin.Int initializer: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int @@ -82,7 +82,7 @@ FILE fqName: fileName:/packageLevelProperties.kt correspondingProperty: PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null @@ -90,7 +90,7 @@ FILE fqName: fileName:/packageLevelProperties.kt PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt index e29ecc14621..01b069d485c 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/argumentMappedWithError.kt $receiver: VALUE_PARAMETER name: type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun convert (): R of .convert declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Number) returnType:kotlin.Unit VALUE_PARAMETER name:arg index:0 type:kotlin.Number BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt index 9ff8b3a5143..15306a5d73e 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// MUTE_SIGNATURE_COMPARISON_K2: ANY +// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57755 fun Number.convert(): R = TODO() diff --git a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt index 26128f6cdbb..adfb049a51e 100644 --- a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt +++ b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt @@ -216,9 +216,9 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null FUN name:test5 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -234,9 +234,9 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt arg0: GET_VAR 'i: kotlin.Int declared in .test5.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -252,9 +252,9 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt arg0: GET_VAR 'i: kotlin.Int declared in .test5.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 @@ -270,9 +270,9 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt arg0: GET_VAR 'i: kotlin.Int declared in .test5.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int - $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Int elements: VARARG type=kotlin.Array varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt index d6b7be5ecc5..1b0d0872c85 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt @@ -77,7 +77,7 @@ FILE fqName: fileName:/kt46069.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.ObjectAssert.assertNotNull?>? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=.ObjectAssert.assertNotNull?>? origin=null : kotlin.String : .ObjectAssert.assertNotNull?>? $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .assertNotNull' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt index 44451a18563..7f795b6c589 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt @@ -77,7 +77,7 @@ FILE fqName: fileName:/kt46069.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.ObjectAssert.assertNotNull?>? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=.ObjectAssert.assertNotNull?>? origin=null : kotlin.String : .ObjectAssert.assertNotNull?>? $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .assertNotNull' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt index 587e7330e3b..8b92b56eb8e 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt @@ -1,7 +1,4 @@ // SKIP_KT_DUMP -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - class ObjectAssert { fun describedAs(description: String?, vararg args: Any?): ObjectAssert? = null } diff --git a/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt index 37320a32890..72d196e27ee 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt @@ -24,29 +24,29 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:x index:0 type:.X VALUE_PARAMETER name:nx index:1 type:.X? BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=1 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=2 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=3 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=4 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -64,7 +64,7 @@ FILE fqName: fileName:/kt30020.kt then: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'val tmp_0: .X? declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=5 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -85,7 +85,7 @@ FILE fqName: fileName:/kt30020.kt FUN name:testExtensionReceiver visibility:public modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:kotlin.collections.MutableList BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR ': kotlin.collections.MutableList declared in .testExtensionReceiver' type=kotlin.collections.MutableList origin=null element: CONST Int type=kotlin.Int value=100 @@ -98,7 +98,7 @@ FILE fqName: fileName:/kt30020.kt FUN name:testExplicitThis visibility:public modality:FINAL <> ($this:.AML) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML.testExplicitThis' type=.AML origin=null element: CONST Int type=kotlin.Int value=200 @@ -112,7 +112,7 @@ FILE fqName: fileName:/kt30020.kt FUN name:testOuterThis visibility:public modality:FINAL <> ($this:.AML.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML.Inner BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML' type=.AML origin=null element: CONST Int type=kotlin.Int value=300 diff --git a/compiler/testData/ir/irText/expressions/kt30020.ir.txt b/compiler/testData/ir/irText/expressions/kt30020.ir.txt index 421a9122455..77f3435cf42 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt30020.ir.txt @@ -27,29 +27,29 @@ FILE fqName: fileName:/kt30020.kt BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.X [val] GET_VAR 'x: .X declared in .test' type=.X origin=null - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=PLUSEQ $this: GET_VAR 'val tmp_0: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=1 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=2 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=3 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=4 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -67,7 +67,7 @@ FILE fqName: fileName:/kt30020.kt then: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'val tmp_1: .X? declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=5 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -88,7 +88,7 @@ FILE fqName: fileName:/kt30020.kt FUN name:testExtensionReceiver visibility:public modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:kotlin.collections.MutableList BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: GET_VAR ': kotlin.collections.MutableList declared in .testExtensionReceiver' type=kotlin.collections.MutableList origin=PLUSEQ element: CONST Int type=kotlin.Int value=100 @@ -101,7 +101,7 @@ FILE fqName: fileName:/kt30020.kt FUN name:testExplicitThis visibility:public modality:FINAL <> ($this:.AML) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML.testExplicitThis' type=.AML origin=PLUSEQ element: CONST Int type=kotlin.Int value=200 @@ -115,7 +115,7 @@ FILE fqName: fileName:/kt30020.kt FUN name:testOuterThis visibility:public modality:FINAL <> ($this:.AML.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML.Inner BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.plusAssign): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML' type=.AML origin=PLUSEQ element: CONST Int type=kotlin.Int value=300 diff --git a/compiler/testData/ir/irText/expressions/kt30020.kt b/compiler/testData/ir/irText/expressions/kt30020.kt index 568eaad0b65..938927c0b61 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.kt +++ b/compiler/testData/ir/irText/expressions/kt30020.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 +// IGNORE_BACKEND_K2: JS_IR +// ^ the order of fake overrides is different on K2 interface X { val xs: MutableList diff --git a/compiler/testData/ir/irText/expressions/kt37570.ir.txt b/compiler/testData/ir/irText/expressions/kt37570.ir.txt index 1337d44cf5d..cd391984a0b 100644 --- a/compiler/testData/ir/irText/expressions/kt37570.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt37570.ir.txt @@ -21,7 +21,7 @@ FILE fqName: fileName:/kt37570.kt ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.apply declared in kotlin' type=kotlin.String origin=null : kotlin.String $receiver: CALL 'public final fun a (): kotlin.String declared in ' type=kotlin.String origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA diff --git a/compiler/testData/ir/irText/expressions/kt37570.kt b/compiler/testData/ir/irText/expressions/kt37570.kt index 1ce6666adc7..800ea4a9731 100644 --- a/compiler/testData/ir/irText/expressions/kt37570.kt +++ b/compiler/testData/ir/irText/expressions/kt37570.kt @@ -1,6 +1,4 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun a() = "string" diff --git a/compiler/testData/ir/irText/expressions/kt51036.ir.txt b/compiler/testData/ir/irText/expressions/kt51036.ir.txt index 23a43cd9888..25559de4210 100644 --- a/compiler/testData/ir/irText/expressions/kt51036.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt51036.ir.txt @@ -36,7 +36,7 @@ FILE fqName: fileName:/kt51036.kt RETURN type=kotlin.Nothing from='public final fun close (): kotlin.Unit declared in .A' CALL 'public final fun invoke (): kotlin.Unit declared in .A' type=kotlin.Unit origin=null $this: GET_VAR ': .A declared in .A.close' type=.A origin=null - $receiver: CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.String origin=null + $receiver: CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.String origin=null : kotlin.String block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String diff --git a/compiler/testData/ir/irText/expressions/kt51036.kt b/compiler/testData/ir/irText/expressions/kt51036.kt index 04f96bfa1ca..795e32a5149 100644 --- a/compiler/testData/ir/irText/expressions/kt51036.kt +++ b/compiler/testData/ir/irText/expressions/kt51036.kt @@ -1,7 +1,5 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // SKIP_KT_DUMP class A { diff --git a/compiler/testData/ir/irText/expressions/when.fir.ir.txt b/compiler/testData/ir/irText/expressions/when.fir.ir.txt index a39650930d0..62ffaff8164 100644 --- a/compiler/testData/ir/irText/expressions/when.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/when.fir.ir.txt @@ -45,9 +45,9 @@ FILE fqName: fileName:/when.kt GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.contains): kotlin.Boolean declared in kotlin.collections' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null @@ -79,9 +79,9 @@ FILE fqName: fileName:/when.kt GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.contains): kotlin.Boolean declared in kotlin.collections' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/when.ir.txt b/compiler/testData/ir/irText/expressions/when.ir.txt index 44002bdbfd5..f495f97fb3e 100644 --- a/compiler/testData/ir/irText/expressions/when.ir.txt +++ b/compiler/testData/ir/irText/expressions/when.ir.txt @@ -46,9 +46,9 @@ FILE fqName: fileName:/when.kt GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.contains): kotlin.Boolean declared in kotlin.collections' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null @@ -80,9 +80,9 @@ FILE fqName: fileName:/when.kt GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.contains): kotlin.Boolean declared in kotlin.collections' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/when.kt b/compiler/testData/ir/irText/expressions/when.kt index 0e65bb376f6..51e7fb95df3 100644 --- a/compiler/testData/ir/irText/expressions/when.kt +++ b/compiler/testData/ir/irText/expressions/when.kt @@ -1,7 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - object A fun testWithSubject(x: Any?) = diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt b/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt index 23301972dfe..9fe6d9699b9 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt @@ -18,11 +18,11 @@ FILE fqName: fileName:/whenReturnUnit.kt if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .branch.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 - then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null reason: CONST String type=kotlin.String value="1" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .branch.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 - then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null reason: CONST String type=kotlin.String value="2" diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt index f2066b60025..2e29a3849fe 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt @@ -1,6 +1,4 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun run(block: () -> Unit) {} diff --git a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt index 387c9a4cfe2..ab29ce5dd58 100644 --- a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt @@ -28,7 +28,7 @@ FILE fqName: fileName:/AbstractMutableMap.kt $this: VALUE_PARAMETER name: type:.MyMap.MyMap, V of .MyMap> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.collections.MutableSet.MyMap, V of .MyMap>> declared in .MyMap' - CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet declared in kotlin.collections.SetsKt' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null + CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet declared in kotlin.collections' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null : kotlin.collections.MutableMap.MutableEntry.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:clear visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:kotlin.Unit [fake_override] overridden: diff --git a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt index 69f0f0442e8..dd62d94ab83 100644 --- a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt @@ -28,7 +28,7 @@ FILE fqName: fileName:/AbstractMutableMap.kt $this: VALUE_PARAMETER name: type:.MyMap.MyMap, V of .MyMap> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.collections.MutableSet.MyMap, V of .MyMap>> declared in .MyMap' - CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet declared in kotlin.collections.SetsKt' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null + CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet declared in kotlin.collections' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null : kotlin.collections.MutableMap.MutableEntry.MyMap, V of .MyMap> PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt b/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt index 0e3c06ba2e7..ef42fecb8b4 100644 --- a/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt @@ -55,7 +55,7 @@ FILE fqName: fileName:/AllCandidates.kt VALUE_PARAMETER name:allCandidates index:0 type:kotlin.collections.Collection<.MyCandidate> BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun allCandidatesResult (allCandidates: kotlin.collections.Collection<.MyCandidate>): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in ' - CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null + CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.apply declared in kotlin' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? $receiver: CALL 'public open fun nameNotFound (): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] R of .OverloadResolutionResultsImpl.nameNotFound?>? declared in .OverloadResolutionResultsImpl' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : A of .allCandidatesResult @@ -65,7 +65,7 @@ FILE fqName: fileName:/AllCandidates.kt BLOCK_BODY CALL 'public open fun setAllCandidates (allCandidates: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] .ResolvedCall<@[FlexibleNullability] D of .OverloadResolutionResultsImpl?>?>?): kotlin.Unit declared in .OverloadResolutionResultsImpl' type=kotlin.Unit origin=EQ $this: GET_VAR '$this$apply: @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in .allCandidatesResult.' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null - allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null + allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null : .MyCandidate : .ResolvedCall.allCandidatesResult> $receiver: GET_VAR 'allCandidates: kotlin.collections.Collection<.MyCandidate> declared in .allCandidatesResult' type=kotlin.collections.Collection<.MyCandidate> origin=null diff --git a/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt b/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt index 0dc80afce70..39a228c824f 100644 --- a/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt @@ -55,7 +55,7 @@ FILE fqName: fileName:/AllCandidates.kt VALUE_PARAMETER name:allCandidates index:0 type:kotlin.collections.Collection<.MyCandidate> BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun allCandidatesResult (allCandidates: kotlin.collections.Collection<.MyCandidate>): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in ' - CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null + CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.apply declared in kotlin' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? $receiver: CALL 'public open fun nameNotFound (): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] R of .OverloadResolutionResultsImpl.nameNotFound?>? declared in .OverloadResolutionResultsImpl' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : @[FlexibleNullability] A of .allCandidatesResult? @@ -67,7 +67,7 @@ FILE fqName: fileName:/AllCandidates.kt <1>: @[FlexibleNullability] A of .allCandidatesResult? $this: TYPE_OP type=.OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?> origin=IMPLICIT_NOTNULL typeOperand=.OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?> GET_VAR '$this$apply: @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in .allCandidatesResult.' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null - allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null + allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null : .MyCandidate : .ResolvedCall.allCandidatesResult> $receiver: GET_VAR 'allCandidates: kotlin.collections.Collection<.MyCandidate> declared in .allCandidatesResult' type=kotlin.collections.Collection<.MyCandidate> origin=null diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt index 37a06671b64..bcae848025a 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt @@ -436,7 +436,7 @@ FILE fqName: fileName:/ArrayMap.kt then: BLOCK type=kotlin.Unit origin=null CALL 'private final fun (: kotlin.Array): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=EQ $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array declared in kotlin.collections' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -486,7 +486,7 @@ FILE fqName: fileName:/ArrayMap.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .ArrayMapImpl? declared in .ArrayMapImpl' TYPE_OP type=T of .ArrayMapImpl? origin=CAST typeOperand=T of .ArrayMapImpl? - CALL 'public final fun getOrNull (index: kotlin.Int): T of kotlin.collections.ArraysKt.getOrNull? declared in kotlin.collections.ArraysKt' type=kotlin.Any? origin=null + CALL 'public final fun getOrNull (index: kotlin.Int): T of kotlin.collections.getOrNull? declared in kotlin.collections' type=kotlin.Any? origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.get' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -499,7 +499,7 @@ FILE fqName: fileName:/ArrayMap.kt RETURN type=kotlin.Nothing from='public open fun copy (): .ArrayMap.ArrayMapImpl> declared in .ArrayMapImpl' CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) declared in .ArrayMapImpl' type=.ArrayMapImpl.ArrayMapImpl> origin=null : T of .ArrayMapImpl - data: CALL 'public final fun copyOf (): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + data: CALL 'public final fun copyOf (): kotlin.Array declared in kotlin.collections' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.copy' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -653,7 +653,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun entries (): kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> declared in .ArrayMapImpl' - CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.ArraysKt.mapIndexedNotNull, R of kotlin.collections.ArraysKt.mapIndexedNotNull?>): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null + CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.mapIndexedNotNull, R of kotlin.collections.mapIndexedNotNull?>): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null : kotlin.Any? : .ArrayMapImpl.Entry.ArrayMapImpl> $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt index ef900df7e02..963c13650bb 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt @@ -437,7 +437,7 @@ FILE fqName: fileName:/ArrayMap.kt then: BLOCK type=kotlin.Unit origin=null CALL 'private final fun (: kotlin.Array): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=EQ $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array declared in kotlin.collections' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -492,7 +492,7 @@ FILE fqName: fileName:/ArrayMap.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .ArrayMapImpl? declared in .ArrayMapImpl' TYPE_OP type=T of .ArrayMapImpl? origin=CAST typeOperand=T of .ArrayMapImpl? - CALL 'public final fun getOrNull (index: kotlin.Int): T of kotlin.collections.ArraysKt.getOrNull? declared in kotlin.collections.ArraysKt' type=kotlin.Any? origin=null + CALL 'public final fun getOrNull (index: kotlin.Int): T of kotlin.collections.getOrNull? declared in kotlin.collections' type=kotlin.Any? origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.get' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -505,7 +505,7 @@ FILE fqName: fileName:/ArrayMap.kt RETURN type=kotlin.Nothing from='public open fun copy (): .ArrayMap.ArrayMapImpl> declared in .ArrayMapImpl' CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) declared in .ArrayMapImpl' type=.ArrayMapImpl.ArrayMapImpl> origin=null : T of .ArrayMapImpl - data: CALL 'public final fun copyOf (): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + data: CALL 'public final fun copyOf (): kotlin.Array declared in kotlin.collections' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.copy' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -670,7 +670,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun entries (): kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> declared in .ArrayMapImpl' - CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.ArraysKt.mapIndexedNotNull, R of kotlin.collections.ArraysKt.mapIndexedNotNull?>): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null + CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.mapIndexedNotNull, R of kotlin.collections.mapIndexedNotNull?>): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null : kotlin.Any? : .ArrayMapImpl.Entry.ArrayMapImpl> $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt index b77c38a5e89..04546ac910a 100644 --- a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt @@ -125,7 +125,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt PROPERTY name:registrationMap visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:registrationMap type:java.util.HashMap visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections' type=java.util.HashMap origin=null : java.lang.reflect.Type : kotlin.Any FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> () returnType:java.util.HashMap @@ -171,6 +171,6 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt : .PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>> container: GET_VAR 'container: .ComponentContainer declared in .resolveClashesIfAny' type=.ComponentContainer origin=null resolver: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null - clashedComponents: CALL 'public final fun toList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ComponentDescriptor> origin=null + clashedComponents: CALL 'public final fun toList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ComponentDescriptor> origin=null : .ComponentDescriptor $receiver: GET_VAR 'val clashedComponents: kotlin.collections.Collection<.ComponentDescriptor> declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor> origin=null diff --git a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt index 98a23f32fe8..4f153287182 100644 --- a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt @@ -125,7 +125,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt PROPERTY name:registrationMap visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:registrationMap type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : java.lang.reflect.Type : kotlin.Any FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> () returnType:java.util.HashMap{ kotlin.collections.HashMap } @@ -171,6 +171,6 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt : .PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>> container: GET_VAR 'container: .ComponentContainer declared in .resolveClashesIfAny' type=.ComponentContainer origin=null resolver: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null - clashedComponents: CALL 'public final fun toList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ComponentDescriptor> origin=null + clashedComponents: CALL 'public final fun toList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ComponentDescriptor> origin=null : .ComponentDescriptor $receiver: GET_VAR 'val clashedComponents: kotlin.collections.Collection<.ComponentDescriptor> declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor> origin=null diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt index 0c6b0d5ab25..0c284318a73 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt @@ -143,7 +143,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK_BODY CALL 'public abstract fun (: kotlin.collections.List<.IrTypeParameter>): kotlin.Unit declared in .IrTypeParametersContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .IrTypeParametersContainer declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.IrTypeParametersContainer origin=null - : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.IrTypeParameter> origin=null + : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.IrTypeParameter> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -167,7 +167,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null + $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> declared in kotlin.collections' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -187,7 +187,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt VAR name:otherTypeParameter type:.IrTypeParameter [val] CALL 'public final fun component2 (): B of kotlin.Pair declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=2) $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null - CALL 'public final fun mapTo (destination: C of kotlin.collections.CollectionsKt.mapTo, transform: kotlin.Function1): C of kotlin.collections.CollectionsKt.mapTo declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.IrType> origin=null + CALL 'public final fun mapTo (destination: C of kotlin.collections.mapTo, transform: kotlin.Function1): C of kotlin.collections.mapTo declared in kotlin.collections' type=kotlin.collections.MutableList<.IrType> origin=null : .IrType : .IrType : kotlin.collections.MutableList<.IrType> diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt index f58fd8754b1..641e7b29950 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt @@ -143,7 +143,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK_BODY CALL 'public abstract fun (: kotlin.collections.List<.IrTypeParameter>): kotlin.Unit declared in .IrTypeParametersContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .IrTypeParametersContainer declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.IrTypeParametersContainer origin=null - : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.IrTypeParameter> origin=null + : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.IrTypeParameter> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -167,7 +167,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null + $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> declared in kotlin.collections' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -189,7 +189,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun mapTo (destination: C of kotlin.collections.CollectionsKt.mapTo, transform: kotlin.Function1): C of kotlin.collections.CollectionsKt.mapTo declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.IrType> origin=null + CALL 'public final fun mapTo (destination: C of kotlin.collections.mapTo, transform: kotlin.Function1): C of kotlin.collections.mapTo declared in kotlin.collections' type=kotlin.collections.MutableList<.IrType> origin=null : .IrType : .IrType : kotlin.collections.MutableList<.IrType> diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt index 8d3eb59d6ff..91079a9fe48 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt @@ -1,7 +1,5 @@ // WITH_STDLIB // FULL_JDK -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 interface IrType diff --git a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt index 326e8afff80..1eaa0fbd842 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt @@ -168,7 +168,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt VALUE_PARAMETER name:name index:0 type:kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' - CALL 'public final fun lastOrNull (): T of kotlin.collections.CollectionsKt.lastOrNull? declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*>? origin=null + CALL 'public final fun lastOrNull (): T of kotlin.collections.lastOrNull? declared in kotlin.collections' type=.ImplicitReceiverValue<*>? origin=null : .ImplicitReceiverValue<*> $receiver: CALL 'private final fun (): kotlin.collections.List<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' type=kotlin.collections.List<.ImplicitReceiverValue<*>> origin=GET_PROPERTY $this: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.get' type=.PersistentImplicitReceiverStack origin=null @@ -203,7 +203,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt FUN name:foo visibility:public modality:FINAL <> (stack:.PersistentImplicitReceiverStack) returnType:kotlin.Unit VALUE_PARAMETER name:stack index:0 type:.PersistentImplicitReceiverStack BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : .ImplicitReceiverValue<*> $receiver: GET_VAR 'stack: .PersistentImplicitReceiverStack declared in .foo' type=.PersistentImplicitReceiverStack origin=null action: FUN_EXPR type=kotlin.Function1<.ImplicitReceiverValue<*>, kotlin.Unit> origin=LAMBDA @@ -220,7 +220,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt BLOCK_BODY VAR name:stack type:.PersistentImplicitReceiverStack [val] CONSTRUCTOR_CALL 'public constructor (stack: kotlin.collections.List<.ImplicitReceiverValue<*>>) declared in .PersistentImplicitReceiverStack' type=.PersistentImplicitReceiverStack origin=null - stack: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ImplicitReceiverValue> origin=null + stack: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ImplicitReceiverValue> origin=null : .ImplicitReceiverValue elements: VARARG type=kotlin.Array.ImplicitReceiverValue> varargElementType=.ImplicitReceiverValue CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null @@ -236,7 +236,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun (): kotlin.String declared in .ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY - $this: CALL 'public final fun first (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*> origin=null + $this: CALL 'public final fun first (): T of kotlin.collections.first declared in kotlin.collections' type=.ImplicitReceiverValue<*> origin=null : .ImplicitReceiverValue<*> $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null other: BLOCK type=kotlin.String? origin=SAFE_CALL diff --git a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt index 7a96c2f1b86..c4cda1d19e5 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt @@ -168,7 +168,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt VALUE_PARAMETER name:name index:0 type:kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' - CALL 'public final fun lastOrNull (): T of kotlin.collections.CollectionsKt.lastOrNull? declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*>? origin=null + CALL 'public final fun lastOrNull (): T of kotlin.collections.lastOrNull? declared in kotlin.collections' type=.ImplicitReceiverValue<*>? origin=null : .ImplicitReceiverValue<*> $receiver: CALL 'private final fun (): kotlin.collections.List<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' type=kotlin.collections.List<.ImplicitReceiverValue<*>> origin=GET_PROPERTY $this: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.get' type=.PersistentImplicitReceiverStack origin=null @@ -205,7 +205,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt FUN name:foo visibility:public modality:FINAL <> (stack:.PersistentImplicitReceiverStack) returnType:kotlin.Unit VALUE_PARAMETER name:stack index:0 type:.PersistentImplicitReceiverStack BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : .ImplicitReceiverValue<*> $receiver: GET_VAR 'stack: .PersistentImplicitReceiverStack declared in .foo' type=.PersistentImplicitReceiverStack origin=null action: FUN_EXPR type=kotlin.Function1<.ImplicitReceiverValue<*>, kotlin.Unit> origin=LAMBDA @@ -222,7 +222,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt BLOCK_BODY VAR name:stack type:.PersistentImplicitReceiverStack [val] CONSTRUCTOR_CALL 'public constructor (stack: kotlin.collections.List<.ImplicitReceiverValue<*>>) declared in .PersistentImplicitReceiverStack' type=.PersistentImplicitReceiverStack origin=null - stack: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ImplicitReceiverValue> origin=null + stack: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.ImplicitReceiverValue> origin=null : .ImplicitReceiverValue elements: VARARG type=kotlin.Array.ImplicitReceiverValue> varargElementType=.ImplicitReceiverValue CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null @@ -238,7 +238,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun (): kotlin.String declared in .ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY - $this: CALL 'public final fun first (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*> origin=null + $this: CALL 'public final fun first (): T of kotlin.collections.first declared in kotlin.collections' type=.ImplicitReceiverValue<*> origin=null : .ImplicitReceiverValue<*> $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null other: BLOCK type=kotlin.String? origin=SAFE_CALL diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt index a7714ce1655..72a295c0b61 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .foo' type=kotlin.String? origin=null @@ -42,7 +42,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing? origin=null : kotlin.String : kotlin.Nothing? $receiver: GET_VAR 'val tmp_1: kotlin.String? declared in .bar' type=kotlin.String? origin=null @@ -62,7 +62,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing $receiver: GET_VAR 'val tmp_2: kotlin.String? declared in .bar.' type=kotlin.String? origin=null @@ -91,7 +91,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing $receiver: GET_VAR 'val tmp_3: kotlin.String? declared in .' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt index a7714ce1655..72a295c0b61 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .foo' type=kotlin.String? origin=null @@ -42,7 +42,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing? origin=null : kotlin.String : kotlin.Nothing? $receiver: GET_VAR 'val tmp_1: kotlin.String? declared in .bar' type=kotlin.String? origin=null @@ -62,7 +62,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing $receiver: GET_VAR 'val tmp_2: kotlin.String? declared in .bar.' type=kotlin.String? origin=null @@ -91,7 +91,7 @@ FILE fqName: fileName:/SafeLetWithReturn.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing $receiver: GET_VAR 'val tmp_3: kotlin.String? declared in .' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt index 3b9727b2488..1bf57eb6a51 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt @@ -1,6 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun foo(s: String?): String { s?.let { it -> diff --git a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt index 412b336174d..c788000f9fa 100644 --- a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt @@ -44,7 +44,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt $this: VALUE_PARAMETER name: type:.User $receiver: VALUE_PARAMETER name: type:.SimpleTypeMarker BLOCK_BODY - CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit declared in kotlin.PreconditionsKt' type=kotlin.Unit origin=null + CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null value: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.SimpleType GET_VAR ': .SimpleTypeMarker declared in .User.bar' type=.SimpleTypeMarker origin=null RETURN type=kotlin.Nothing from='public open fun bar (): kotlin.String declared in .User' @@ -74,7 +74,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt $this: VALUE_PARAMETER name: type:.UserImpl $receiver: VALUE_PARAMETER name: type:.SimpleTypeMarker BLOCK_BODY - CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit declared in kotlin.PreconditionsKt' type=kotlin.Unit origin=null + CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null value: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.SimpleType GET_VAR ': .SimpleTypeMarker declared in .UserImpl.bar' type=.SimpleTypeMarker origin=null RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.String declared in .UserImpl' diff --git a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt index 35549f1dea1..7eceda2ad85 100644 --- a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt +++ b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt @@ -1,7 +1,5 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 interface SimpleTypeMarker diff --git a/compiler/testData/ir/irText/firProblems/SyntheticSetterType.ir.txt b/compiler/testData/ir/irText/firProblems/SyntheticSetterType.ir.txt index 01455b58d49..e03dfe0e3c7 100644 --- a/compiler/testData/ir/irText/firProblems/SyntheticSetterType.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SyntheticSetterType.ir.txt @@ -4,5 +4,5 @@ FILE fqName: fileName:/SyntheticSetterType.kt BLOCK_BODY CALL 'public open fun setOverriddenDescriptors (overriddenDescriptors: @[EnhancedNullability] @[FlexibleMutability] kotlin.collections.MutableCollection.CallableMemberDescriptor?>): kotlin.Unit declared in .PropertyDescriptorImpl' type=kotlin.Unit origin=EQ $this: GET_VAR 'descriptor: .PropertyDescriptorImpl declared in .foo' type=.PropertyDescriptorImpl origin=null - overriddenDescriptors: CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] .PropertyDescriptor?> origin=null + overriddenDescriptors: CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<@[FlexibleNullability] .PropertyDescriptor?> origin=null : @[FlexibleNullability] .PropertyDescriptor? diff --git a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt index d4c5ac1e225..3ba76730c07 100644 --- a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt RETURN type=kotlin.Nothing from='private final fun nextChar (): kotlin.Char? declared in ' BLOCK type=kotlin.Char? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] - CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.StandardKt.takeUnless? declared in kotlin.StandardKt' type=kotlin.Int? origin=null + CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.takeUnless? declared in kotlin' type=kotlin.Int? origin=null : kotlin.Int $receiver: CALL 'public open fun read (): kotlin.Int declared in java.io.Reader' type=kotlin.Int origin=null $this: GET_VAR ': java.io.Reader declared in .nextChar' type=java.io.Reader origin=null @@ -77,7 +77,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null : kotlin.Char : @[FlexibleNullability] java.lang.StringBuilder? $receiver: GET_VAR 'val tmp_1: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null diff --git a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt index 51fe957b26a..6c082b3b0c5 100644 --- a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt +++ b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt RETURN type=kotlin.Nothing from='private final fun nextChar (): kotlin.Char? declared in ' BLOCK type=kotlin.Char? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] - CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.StandardKt.takeUnless? declared in kotlin.StandardKt' type=kotlin.Int? origin=null + CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.takeUnless? declared in kotlin' type=kotlin.Int? origin=null : kotlin.Int $receiver: CALL 'public open fun read (): kotlin.Int declared in java.io.Reader' type=kotlin.Int origin=null $this: GET_VAR ': java.io.Reader declared in .nextChar' type=java.io.Reader origin=null @@ -77,7 +77,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.let declared in kotlin' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null : kotlin.Char : @[FlexibleNullability] java.lang.StringBuilder? $receiver: GET_VAR 'val tmp_1: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt index 5ac2b7f7c49..76871444f01 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt @@ -20,7 +20,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt PROPERTY name:INSTANCES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:INSTANCES type:kotlin.collections.MutableMap.Flaf> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Flaf> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections' type=kotlin.collections.MutableMap.Flaf> origin=null : kotlin.String : .Flaf FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Flaf) returnType:kotlin.collections.MutableMap.Flaf> @@ -61,7 +61,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ CONSTRUCTOR_CALL 'public constructor (javaName: kotlin.String) declared in .Flaf' type=.Flaf origin=null javaName: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null - CALL 'public final fun set (key: K of kotlin.collections.MapsKt.set, value: V of kotlin.collections.MapsKt.set): kotlin.Unit declared in kotlin.collections.MapsKt' type=kotlin.Unit origin=null + CALL 'public final fun set (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.String : .Flaf $receiver: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt index 74d3244859a..76c97809453 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt @@ -20,7 +20,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt PROPERTY name:INSTANCES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:INSTANCES type:kotlin.collections.MutableMap.Flaf> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Flaf> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections' type=kotlin.collections.MutableMap.Flaf> origin=null : kotlin.String : .Flaf FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Flaf) returnType:kotlin.collections.MutableMap.Flaf> @@ -61,7 +61,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ CONSTRUCTOR_CALL 'public constructor (javaName: kotlin.String) declared in .Flaf' type=.Flaf origin=null javaName: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null - CALL 'public final fun set (key: K of kotlin.collections.MapsKt.set, value: V of kotlin.collections.MapsKt.set): kotlin.Unit declared in kotlin.collections.MapsKt' type=kotlin.Unit origin=EQ + CALL 'public final fun set (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=EQ : kotlin.String : .Flaf $receiver: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt index 71df8666fa3..04369e7cf0d 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt @@ -1,7 +1,5 @@ // WITH_STDLIB // FULL_JDK -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 class Flaf(val javaName: String) { diff --git a/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt b/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt index b21e2c678a2..d97d4293c12 100644 --- a/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/test.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap<.Fun, kotlin.String> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null : .Fun : kotlin.String VAR name:fn type:.Fun [val] @@ -11,7 +11,7 @@ FILE fqName: fileName:/test.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:@[FlexibleNullability] kotlin.String? VALUE_PARAMETER name:it index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.MutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.MutableMap declared in kotlin.collections.MutableMap' type=@[EnhancedNullability] kotlin.String origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt19251.ir.txt b/compiler/testData/ir/irText/firProblems/kt19251.ir.txt index a08e4a00f5e..a806d2e391d 100644 --- a/compiler/testData/ir/irText/firProblems/kt19251.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt19251.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/test.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap<.Fun, kotlin.String> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null : .Fun : kotlin.String VAR name:fn type:.Fun [val] @@ -12,7 +12,7 @@ FILE fqName: fileName:/test.kt VALUE_PARAMETER name:it index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] kotlin.String? declared in .box' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.MutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.MutableMap declared in kotlin.collections.MutableMap' type=@[EnhancedNullability] kotlin.String origin=null diff --git a/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt b/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt index ec4087936de..125bec6f4fe 100644 --- a/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/putIfAbsent.kt VALUE_PARAMETER name:y index:1 type:T of .Owner.foo BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null : T of .Owner.foo : T of .Owner.foo TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit diff --git a/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt b/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt index 74bf0651784..84021f5786c 100644 --- a/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt +++ b/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/putIfAbsent.kt VALUE_PARAMETER name:y index:1 type:T of .Owner.foo BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null : T of .Owner.foo : T of .Owner.foo TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt index 63f55bd99f3..94bb06c7178 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt @@ -46,10 +46,10 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt VALUE_PARAMETER name:list index:0 type:kotlin.collections.List BLOCK_BODY VAR name:result type:kotlin.collections.List<.AbstractSymbol<*>> [val] - CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.AbstractSymbol<*>> origin=null + CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.AbstractSymbol<*>> origin=null : .Recursive<*> : .AbstractSymbol<*> - $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.Recursive<*>> origin=null + $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.Recursive<*>> origin=null : .Recursive<*> $receiver: GET_VAR 'list: kotlin.collections.List declared in .AbstractSymbol.foo' type=kotlin.collections.List origin=null transform: PROPERTY_REFERENCE 'public abstract symbol: .AbstractSymbol.Recursive>' field=null getter='public abstract fun (): .AbstractSymbol.Recursive> declared in .Recursive' setter=null type=kotlin.reflect.KProperty1<.Recursive<*>, .AbstractSymbol> origin=null diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt index d8f8cf85b0a..d892da23a9f 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt @@ -46,10 +46,10 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt VALUE_PARAMETER name:list index:0 type:kotlin.collections.List BLOCK_BODY VAR name:result type:kotlin.collections.List<.AbstractSymbol.Recursive<*>>> [val] - CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.AbstractSymbol.Recursive<*>>> origin=null + CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<.AbstractSymbol.Recursive<*>>> origin=null : .Recursive<*> : .AbstractSymbol.Recursive<*>> - $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List<@[NoInfer] R of kotlin.collections.CollectionsKt.filterIsInstance> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[NoInfer] .Recursive<*>> origin=null + $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List<@[NoInfer] R of kotlin.collections.filterIsInstance> declared in kotlin.collections' type=kotlin.collections.List<@[NoInfer] .Recursive<*>> origin=null : .Recursive<*> $receiver: GET_VAR 'list: kotlin.collections.List declared in .AbstractSymbol.foo' type=kotlin.collections.List origin=null transform: PROPERTY_REFERENCE 'public abstract symbol: .AbstractSymbol.Recursive>' field=null getter='public abstract fun (): .AbstractSymbol.Recursive> declared in .Recursive' setter=null type=kotlin.reflect.KProperty1<.Recursive<*>, .AbstractSymbol.Recursive<*>>> origin=null diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt index 726d34637d0..27fc49de69c 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt @@ -1,7 +1,5 @@ // WITH_STDLIB // FULL_JDK -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 interface Something diff --git a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt index 6cd9fcc598e..8bd002dddda 100644 --- a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/thisInEnumConstructor.kt CONSTRUCTOR visibility:private <> (myName:kotlin.String) returnType:.EE [primary] VALUE_PARAMETER name:myName index:0 type:kotlin.String EXPRESSION_BODY - CALL 'public final fun lowercase (): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null + CALL 'public final fun lowercase (): kotlin.String declared in kotlin.text' type=kotlin.String origin=null $receiver: CALL 'public open fun toString (): kotlin.String declared in kotlin.Enum.Companion' type=kotlin.String origin=null $this: GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=kotlin.Enum.Companion BLOCK_BODY diff --git a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt index e21e5fea4cb..777e4bd052a 100644 --- a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt +++ b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/thisInEnumConstructor.kt CONSTRUCTOR visibility:private <> (myName:kotlin.String) returnType:.EE [primary] VALUE_PARAMETER name:myName index:0 type:kotlin.String EXPRESSION_BODY - CALL 'public final fun lowercase (): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null + CALL 'public final fun lowercase (): kotlin.String declared in kotlin.text' type=kotlin.String origin=null $receiver: CALL 'public open fun toString (): kotlin.String declared in kotlin.Enum.Companion' type=kotlin.String origin=null $this: GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=kotlin.Enum.Companion BLOCK_BODY diff --git a/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt b/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt index c0f01e92728..03a38d7d682 100644 --- a/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt @@ -112,7 +112,7 @@ FILE fqName: fileName:/timesInBuilder.kt PROPERTY name:arguments visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:arguments type:kotlin.collections.MutableList<.Expression> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableListOf (): kotlin.collections.MutableList declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.Expression> origin=null + CALL 'public final fun mutableListOf (): kotlin.collections.MutableList declared in kotlin.collections' type=kotlin.collections.MutableList<.Expression> origin=null : .Expression FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.ArgumentsBuilder) returnType:kotlin.collections.MutableList<.Expression> correspondingProperty: PROPERTY name:arguments visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt b/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt index ee6c683df97..b8f9a05e58e 100644 --- a/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt +++ b/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt @@ -119,7 +119,7 @@ FILE fqName: fileName:/timesInBuilder.kt PROPERTY name:arguments visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:arguments type:kotlin.collections.MutableList<.Expression> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableListOf (): kotlin.collections.MutableList declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.Expression> origin=null + CALL 'public final fun mutableListOf (): kotlin.collections.MutableList declared in kotlin.collections' type=kotlin.collections.MutableList<.Expression> origin=null : .Expression FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.ArgumentsBuilder) returnType:kotlin.collections.MutableList<.Expression> correspondingProperty: PROPERTY name:arguments visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/firProblems/timesInBuilder.kt b/compiler/testData/ir/irText/firProblems/timesInBuilder.kt index 627862fb3b3..cdf9901421b 100644 --- a/compiler/testData/ir/irText/firProblems/timesInBuilder.kt +++ b/compiler/testData/ir/irText/firProblems/timesInBuilder.kt @@ -1,7 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR +// MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57778 private fun test(x: Long) = diff --git a/compiler/testData/ir/irText/firProblems/timesInBuilder.sig.kt.txt b/compiler/testData/ir/irText/firProblems/timesInBuilder.sig.kt.txt index 662ed19982a..9a997232a96 100644 --- a/compiler/testData/ir/irText/firProblems/timesInBuilder.sig.kt.txt +++ b/compiler/testData/ir/irText/firProblems/timesInBuilder.sig.kt.txt @@ -5,6 +5,9 @@ val spentTime: Column // CHECK JVM_IR: // Mangled name: #(){}Column // Public signature: /spentTime.|3550920958732313011[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /spentTime.|4978928361098048101[0] get // CHECK: @@ -18,6 +21,9 @@ class ArgumentsBuilder { // CHECK JVM_IR: // Mangled name: ArgumentsBuilder#(){}kotlin.collections.MutableList // Public signature: /ArgumentsBuilder.arguments.|7867094825942376438[0] + // CHECK JS_IR NATIVE: + // Mangled name: ArgumentsBuilder#(){} + // Public signature: /ArgumentsBuilder.arguments.|-1703265137246288058[0] get // CHECK: @@ -54,32 +60,48 @@ class Expression { } -// CHECK: +// CHECK JVM_IR: // Mangled name: #countIssues(kotlin.Function1){} // Public signature: [ File 'timesInBuilder.kt' <- /countIssues|-3006686104129982000[0] ] +// CHECK JS_IR NATIVE: +// Mangled name: #countIssues(kotlin.Function1){} private fun countIssues(restrictionsBuilder: @ExtensionFunctionType Function1): Unit // CHECK JVM_IR: // Mangled name: #id(0:0){0§}0:0 // Public signature: /id|-6791396263062521506[0] +// CHECK JS_IR NATIVE: +// Mangled name: #id(0:0){0§} +// Public signature: /id|9187295668833355463[0] fun id(arg: I): I // CHECK JVM_IR: // Mangled name: #integer(kotlin.String){}Column // Public signature: /integer|-7515290819735707124[0] +// CHECK JS_IR NATIVE: +// Mangled name: #integer(kotlin.String){} +// Public signature: /integer|262583755062252780[0] fun integer(name: String): Column // CHECK JVM_IR: // Mangled name: #lessEq@Column(0:0){0§>}Expression // Public signature: /lessEq|144930027420774562[0] +// CHECK JS_IR NATIVE: +// Mangled name: #lessEq@Column(0:0){0§>} +// Public signature: /lessEq|-511538213983026615[0] infix fun > Column.lessEq(t: T): Expression // CHECK JVM_IR: // Mangled name: #select@Column(0:0;0:0){0§>}Expression // Public signature: /select|-7119975056707584867[0] +// CHECK JS_IR NATIVE: +// Mangled name: #select@Column(0:0;0:0){0§>} +// Public signature: /select|-2152906716157697979[0] fun > Column.select(t: T, r: T): Expression -// CHECK: +// CHECK JVM_IR: // Mangled name: #test(kotlin.Long){} // Public signature: [ File 'timesInBuilder.kt' <- /test|-2956403500052581138[0] ] +// CHECK JS_IR NATIVE: +// Mangled name: #test(kotlin.Long){} private fun test(x: Long): Unit diff --git a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt index b933c69087c..5b5e354488b 100644 --- a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/typeParameterFromJavaClass.kt FUN name:foo visibility:public modality:FINAL <> (movedPaths:kotlin.collections.MutableList<.Couple<.FilePath>>) returnType:kotlin.Unit VALUE_PARAMETER name:movedPaths index:0 type:kotlin.collections.MutableList<.Couple<.FilePath>> BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : .Couple<.FilePath> $receiver: GET_VAR 'movedPaths: kotlin.collections.MutableList<.Couple<.FilePath>> declared in .foo' type=kotlin.collections.MutableList<.Couple<.FilePath>> origin=null action: FUN_EXPR type=kotlin.Function1<.Couple<.FilePath>, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt index cc795e6b357..0ef1e9d919f 100644 --- a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/typeParameterFromJavaClass.kt FUN name:foo visibility:public modality:FINAL <> (movedPaths:kotlin.collections.MutableList<.Couple<.FilePath>>) returnType:kotlin.Unit VALUE_PARAMETER name:movedPaths index:0 type:kotlin.collections.MutableList<.Couple<.FilePath>> BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : .Couple<.FilePath> $receiver: GET_VAR 'movedPaths: kotlin.collections.MutableList<.Couple<.FilePath>> declared in .foo' type=kotlin.collections.MutableList<.Couple<.FilePath>> origin=null action: FUN_EXPR type=kotlin.Function1<.Couple<.FilePath>, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt index 22051920f56..923311c210b 100644 --- a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt @@ -617,7 +617,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt PROPERTY name:ORDERED_VISIBILITIES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ORDERED_VISIBILITIES type:kotlin.collections.Map<.Visibility, kotlin.Int> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map declared in kotlin.collections.MapsKt' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null + CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map declared in kotlin.collections' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null : .Visibility : kotlin.Int builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1.Visibility, kotlin.Int>, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt index 62c69662a66..326fdbacd86 100644 --- a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt @@ -617,7 +617,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt PROPERTY name:ORDERED_VISIBILITIES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ORDERED_VISIBILITIES type:kotlin.collections.Map<.Visibility, kotlin.Int> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map declared in kotlin.collections.MapsKt' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null + CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map declared in kotlin.collections' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null : .Visibility : kotlin.Int builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1.Visibility, kotlin.Int>, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt b/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt index 6084580d14e..c5565addfb2 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/extensionLambda.kt FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Int declared in ' - CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.run declared in kotlin' type=kotlin.Int origin=null : kotlin.String : kotlin.Int $receiver: CONST String type=kotlin.String value="42" diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.kt b/compiler/testData/ir/irText/lambdas/extensionLambda.kt index 86125a9dda3..b00b05194ca 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.kt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.kt @@ -1,5 +1,3 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun test1() = "42".run { length } diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt index 37556e5ca72..e8626e3fd6d 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt @@ -86,7 +86,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt VALUE_PARAMETER name:invokeImpl index:1 type:.IInvoke BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .A : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A @@ -95,7 +95,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .IFoo : kotlin.Int receiver: GET_VAR 'fooImpl: .IFoo declared in .test' type=.IFoo origin=null @@ -104,7 +104,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.IFoo BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test.' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .IInvoke : kotlin.Int receiver: GET_VAR 'invokeImpl: .IInvoke declared in .test' type=.IInvoke origin=null diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt index ef002bb400e..1a6f4763897 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt @@ -86,7 +86,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt VALUE_PARAMETER name:invokeImpl index:1 type:.IInvoke BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .A : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A @@ -95,7 +95,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .IFoo : kotlin.Int receiver: GET_VAR 'fooImpl: .IFoo declared in .test' type=.IFoo origin=null @@ -104,7 +104,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.IFoo BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test.' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Int origin=null : .IInvoke : kotlin.Int receiver: GET_VAR 'invokeImpl: .IInvoke declared in .test' type=.IInvoke origin=null diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt index 907588e0011..da208ed899b 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - object A object B diff --git a/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt b/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt index 3cbe2016eb2..d9d56230af8 100644 --- a/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt +++ b/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/nonLocalReturn.kt FUN name:test0 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.Nothing origin=null : kotlin.Nothing block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing @@ -10,7 +10,7 @@ FILE fqName: fileName:/nonLocalReturn.kt GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -19,7 +19,7 @@ FILE fqName: fileName:/nonLocalReturn.kt GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -28,12 +28,12 @@ FILE fqName: fileName:/nonLocalReturn.kt GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.run declared in kotlin' type=kotlin.Nothing origin=null : kotlin.Nothing block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing @@ -43,7 +43,7 @@ FILE fqName: fileName:/nonLocalReturn.kt FUN name:testLrmFoo1 visibility:public modality:FINAL <> (ints:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ints index:0 type:kotlin.collections.List BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR 'ints: kotlin.collections.List declared in .testLrmFoo1' type=kotlin.collections.List origin=null action: FUN_EXPR type=kotlin.Function1 origin=LAMBDA @@ -62,7 +62,7 @@ FILE fqName: fileName:/nonLocalReturn.kt FUN name:testLrmFoo2 visibility:public modality:FINAL <> (ints:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ints index:0 type:kotlin.collections.List BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR 'ints: kotlin.collections.List declared in .testLrmFoo2' type=kotlin.collections.List origin=null action: FUN_EXPR type=kotlin.Function1 origin=LAMBDA diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt index 566f210e7a2..16f7afef002 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt @@ -20,7 +20,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $receiver: VALUE_PARAMETER name: type:.CPointed BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun reinterpret (): T of .reinterpret declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null CLASS CLASS name:CInt32VarX modality:FINAL visibility:public superTypes:[.CPointed] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CInt32VarX.CInt32VarX> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -48,7 +48,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $receiver: VALUE_PARAMETER name: type:.CInt32VarX.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): T_INT of . declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name: visibility:public modality:FINAL ($receiver:.CInt32VarX.>, value:T_INT of .) returnType:kotlin.Unit correspondingProperty: PROPERTY name:value visibility:public modality:FINAL [var] TYPE_PARAMETER name:T_INT index:0 variance: superTypes:[kotlin.Int] reified:false diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt index 00296633859..72abb14c162 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt @@ -19,7 +19,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $receiver: VALUE_PARAMETER name: type:.CPointed BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun reinterpret (): T of .reinterpret declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null CLASS CLASS name:CInt32VarX modality:FINAL visibility:public superTypes:[.CPointed] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CInt32VarX.CInt32VarX> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -48,7 +48,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $receiver: VALUE_PARAMETER name: type:.CInt32VarX.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): T_INT of . declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name: visibility:public modality:FINAL ($receiver:.CInt32VarX.>, value:T_INT of .) returnType:kotlin.Unit correspondingProperty: PROPERTY name:value visibility:public modality:FINAL [var] TYPE_PARAMETER name:T_INT index:0 variance: superTypes:[kotlin.Int] reified:false diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.kt b/compiler/testData/ir/irText/regressions/integerCoercionToT.kt index 403eed60555..5603b4dfb3a 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.kt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 interface CPointed inline fun CPointed.reinterpret(): T = TODO() diff --git a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt index 2d7df81e7f3..2ddb7d44006 100644 --- a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt +++ b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/newInferenceFixationOrder1.kt TYPE_PARAMETER name:Y index:1 variance: superTypes:[kotlin.Any?] reified:false BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Function1.foo, Y of .foo> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null CLASS INTERFACE name:Inv2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Inv2.Inv2, B of .Inv2> TYPE_PARAMETER name:A index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -30,7 +30,7 @@ FILE fqName: fileName:/newInferenceFixationOrder1.kt VALUE_PARAMETER name:f index:2 type:kotlin.Function1.check, R of .check> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun check (x: T of .check, y: R of .check, f: kotlin.Function1.check, R of .check>): .Inv2.check, R of .check> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:test visibility:public modality:FINAL <> () returnType:.Inv2 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): .Inv2 declared in ' diff --git a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt index c864c3f3e19..6f189fcccc8 100644 --- a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt +++ b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt @@ -1,6 +1,5 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 + fun foo(): (X) -> Y = TODO() interface Inv2 diff --git a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt index c5927898d5c..d37ab14def5 100644 --- a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParametersInImplicitCast.kt VALUE_PARAMETER name:lss index:0 type:kotlin.collections.List.problematic>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun problematic (lss: kotlin.collections.List.problematic>>): kotlin.collections.List.problematic> declared in ' - CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null + CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null : kotlin.collections.List.problematic> : @[FlexibleNullability] T of .problematic? $receiver: GET_VAR 'lss: kotlin.collections.List.problematic>> declared in .problematic' type=kotlin.collections.List.problematic>> origin=null diff --git a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt index e1b00ae132e..13c2cca77e3 100644 --- a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt +++ b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParametersInImplicitCast.kt VALUE_PARAMETER name:lss index:0 type:kotlin.collections.List.problematic>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun problematic (lss: kotlin.collections.List.problematic>>): kotlin.collections.List.problematic> declared in ' - CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null + CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null : kotlin.collections.List.problematic> : @[FlexibleNullability] T of .problematic? $receiver: GET_VAR 'lss: kotlin.collections.List.problematic>> declared in .problematic' type=kotlin.collections.List.problematic>> origin=null diff --git a/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt b/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt index 231874cceca..d657efa75ce 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt @@ -10,13 +10,13 @@ FILE fqName: fileName:/builtinMap.kt BRANCH if: CALL 'public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.Map' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.collections.Map.plus, V1 of .plus> declared in .plus' type=kotlin.collections.Map.plus, V1 of .plus> origin=null - then: CALL 'public final fun mapOf (pair: kotlin.Pair): kotlin.collections.Map declared in kotlin.collections.MapsKt' type=kotlin.collections.Map.plus, V1 of .plus> origin=null + then: CALL 'public final fun mapOf (pair: kotlin.Pair): kotlin.collections.Map declared in kotlin.collections' type=kotlin.collections.Map.plus, V1 of .plus> origin=null : K1 of .plus : V1 of .plus pair: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null + then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.apply declared in kotlin' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null : java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> $receiver: CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap?) declared in java.util.LinkedHashMap' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null : @[FlexibleNullability] K1 of .plus? diff --git a/compiler/testData/ir/irText/stubs/builtinMap.ir.txt b/compiler/testData/ir/irText/stubs/builtinMap.ir.txt index c4948c4f30b..0f4bb09b5d5 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.ir.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.ir.txt @@ -10,13 +10,13 @@ FILE fqName: fileName:/builtinMap.kt BRANCH if: CALL 'public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.Map' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.collections.Map.plus, V1 of .plus> declared in .plus' type=kotlin.collections.Map.plus, V1 of .plus> origin=null - then: CALL 'public final fun mapOf (pair: kotlin.Pair): kotlin.collections.Map declared in kotlin.collections.MapsKt' type=kotlin.collections.Map.plus, V1 of .plus> origin=null + then: CALL 'public final fun mapOf (pair: kotlin.Pair): kotlin.collections.Map declared in kotlin.collections' type=kotlin.collections.Map.plus, V1 of .plus> origin=null : K1 of .plus : V1 of .plus pair: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } origin=null + then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.apply declared in kotlin' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } origin=null : java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } $receiver: CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap?) declared in java.util.LinkedHashMap' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null : @[FlexibleNullability] K1 of .plus? diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt index f5679f85b00..2cd67fb92f8 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt @@ -56,7 +56,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit> [crossinline] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:onCompletion visibility:public modality:FINAL ($receiver:.Flow.onCompletion>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:.Flow.onCompletion> annotations: Deprecated(message = 'binary compatibility with a version w/o FlowCollector receiver', replaceWith = , level = GET_ENUM 'ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:HIDDEN' type=kotlin.DeprecationLevel) @@ -194,7 +194,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun flow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit>): .Flow.flow> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:flowScope visibility:public modality:FINAL (block:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>) returnType:R of .flowScope [suspend] annotations: OptIn(markerClass = [CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB ANNOTATION_CLASS name:ExperimentalTypeInference modality:FINAL visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass]) @@ -202,7 +202,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:collect visibility:public modality:FINAL ($receiver:.Flow.collect>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>) returnType:kotlin.Unit [inline,suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Flow.collect> @@ -309,7 +309,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun produce (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit>): .ReceiveChannel.produce> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null CLASS INTERFACE name:ProducerScope modality:ABSTRACT visibility:public superTypes:[.CoroutineScope; .SendChannel.ProducerScope>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ProducerScope.ProducerScope> TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt index 180805fcf9e..f648ef58e3b 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt @@ -56,7 +56,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit> [crossinline] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:onCompletion visibility:public modality:FINAL ($receiver:.Flow.onCompletion>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:.Flow.onCompletion> annotations: Deprecated(message = 'binary compatibility with a version w/o FlowCollector receiver', replaceWith = , level = GET_ENUM 'ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:HIDDEN' type=kotlin.DeprecationLevel) @@ -194,7 +194,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun flow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit>): .Flow.flow> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:flowScope visibility:public modality:FINAL (block:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>) returnType:R of .flowScope [suspend] annotations: OptIn(markerClass = [CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB ANNOTATION_CLASS name:ExperimentalTypeInference modality:OPEN visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass]) @@ -202,7 +202,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:collect visibility:public modality:FINAL ($receiver:.Flow.collect>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>) returnType:kotlin.Unit [inline,suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Flow.collect> @@ -309,7 +309,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun produce (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit>): .ReceiveChannel.produce> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null CLASS INTERFACE name:ProducerScope modality:ABSTRACT visibility:public superTypes:[.CoroutineScope; .SendChannel.ProducerScope>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ProducerScope.ProducerScope> TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt index efd812bda57..6d1995d0d9f 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt @@ -1,6 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57429, KT-57778 diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt index ab682e3278f..56779db656e 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt @@ -44,11 +44,11 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt VALUE_PARAMETER name:x index:0 type:kotlin.collections.MutableList.foo> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (x: kotlin.collections.MutableList.foo>): .Foo.foo> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.collections.List [val] - CALL 'public final fun buildList (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + CALL 'public final fun buildList (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.String builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt index 7543e74f341..a295b418888 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt @@ -1,9 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// MUTE_SIGNATURE_COMPARISON_K2: ANY +// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57429, KT-57755 class Foo(var x: T) diff --git a/compiler/testData/ir/irText/types/kt49526.fir.ir.txt b/compiler/testData/ir/irText/types/kt49526.fir.ir.txt index 9043d0db27c..5a4874a54ce 100644 --- a/compiler/testData/ir/irText/types/kt49526.fir.ir.txt +++ b/compiler/testData/ir/irText/types/kt49526.fir.ir.txt @@ -3,9 +3,9 @@ FILE fqName: fileName:/kt49526.kt BLOCK_BODY VAR name:ref type:kotlin.reflect.KFunction1 [val] FUNCTION_REFERENCE 'public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean declared in kotlin.collections.List' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= - $this: CALL 'public final fun plus (element: T of kotlin.collections.CollectionsKt.plus): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=PLUS + $this: CALL 'public final fun plus (element: T of kotlin.collections.plus): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=PLUS : kotlin.Comparable - $receiver: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (element: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Char element: CONST Char type=kotlin.Char value='a' element: CONST String type=kotlin.String value="-" diff --git a/compiler/testData/ir/irText/types/kt49526.ir.txt b/compiler/testData/ir/irText/types/kt49526.ir.txt index 4aa80e07880..15a10d9f011 100644 --- a/compiler/testData/ir/irText/types/kt49526.ir.txt +++ b/compiler/testData/ir/irText/types/kt49526.ir.txt @@ -3,9 +3,9 @@ FILE fqName: fileName:/kt49526.kt BLOCK_BODY VAR name:ref type:kotlin.reflect.KFunction1 [val] FUNCTION_REFERENCE 'public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean declared in kotlin.collections.List' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= - $this: CALL 'public final fun plus (element: T of kotlin.collections.CollectionsKt.plus): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=PLUS + $this: CALL 'public final fun plus (element: T of kotlin.collections.plus): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=PLUS : kotlin.Any - $receiver: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun listOf (element: T of kotlin.collections.listOf): kotlin.collections.List declared in kotlin.collections' type=kotlin.collections.List origin=null : kotlin.Char element: CONST Char type=kotlin.Char value='a' element: CONST String type=kotlin.String value="-" diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt index 8f2c155acf6..33f71e8e46f 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt @@ -178,9 +178,9 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.collections.IndexedValue<@[EnhancedNullability] .P> [val] - CALL 'public final fun first (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=kotlin.collections.IndexedValue<@[EnhancedNullability] .P> origin=null + CALL 'public final fun first (): T of kotlin.collections.first declared in kotlin.collections' type=kotlin.collections.IndexedValue<@[EnhancedNullability] .P> origin=null : kotlin.collections.IndexedValue<@[EnhancedNullability] .P> - $receiver: CALL 'public final fun withIndex (): kotlin.collections.Iterable> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Iterable.P>> origin=null + $receiver: CALL 'public final fun withIndex (): kotlin.collections.Iterable> declared in kotlin.collections' type=kotlin.collections.Iterable.P>> origin=null : @[EnhancedNullability] .P $receiver: TYPE_OP type=@[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=@[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt index 24d0b46fc91..6dc7bea059e 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt @@ -188,9 +188,9 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> [val] - CALL 'public final fun first (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public final fun first (): T of kotlin.collections.first declared in kotlin.collections' type=kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null : kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> - $receiver: CALL 'public final fun withIndex (): kotlin.collections.Iterable> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Iterable)] @[EnhancedNullability] .P>> origin=null + $receiver: CALL 'public final fun withIndex (): kotlin.collections.Iterable> declared in kotlin.collections' type=kotlin.collections.Iterable)] @[EnhancedNullability] .P>> origin=null : @[NotNull(value = )] @[EnhancedNullability] .P $receiver: TYPE_OP type=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt index f7323e239e7..c54f0c987f2 100644 --- a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:contains visibility:public modality:OPEN <> ($this:.MySet, element:kotlin.String) returnType:kotlin.Boolean [operator] overridden: public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean declared in kotlin.collections.Set @@ -26,7 +26,7 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:element index:0 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:containsAll visibility:public modality:OPEN <> ($this:.MySet, elements:kotlin.collections.Collection) returnType:kotlin.Boolean overridden: public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Set @@ -34,21 +34,21 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:isEmpty visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.Boolean overridden: public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.collections.Iterator [operator] overridden: public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Set diff --git a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt index f7323e239e7..c54f0c987f2 100644 --- a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:contains visibility:public modality:OPEN <> ($this:.MySet, element:kotlin.String) returnType:kotlin.Boolean [operator] overridden: public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean declared in kotlin.collections.Set @@ -26,7 +26,7 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:element index:0 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:containsAll visibility:public modality:OPEN <> ($this:.MySet, elements:kotlin.collections.Collection) returnType:kotlin.Boolean overridden: public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Set @@ -34,21 +34,21 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:isEmpty visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.Boolean overridden: public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.collections.Iterator [operator] overridden: public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Set diff --git a/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt b/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt index 2be835a4be4..c679309eb8a 100644 --- a/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt +++ b/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt @@ -210,7 +210,7 @@ FILE fqName: fileName:/main.kt : java.lang.reflect.Constructor<.Derived> arg0: CALL 'public final fun (): java.lang.reflect.Constructor>? declared in kotlin.reflect.jvm' type=java.lang.reflect.Constructor<.Derived>? origin=GET_PROPERTY : .Derived - $receiver: CALL 'public final fun first (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Derived> origin=null + $receiver: CALL 'public final fun first (predicate: kotlin.Function1): T of kotlin.collections.first declared in kotlin.collections' type=kotlin.reflect.KFunction<.Derived> origin=null : kotlin.reflect.KFunction<.Derived> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Derived>> origin=GET_PROPERTY $this: CLASS_REFERENCE 'CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' type=kotlin.reflect.KClass<.Derived>