From 729efaf912f0b8337408613f97ff0130f87c5a9d Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 7 May 2018 12:59:26 +0300 Subject: [PATCH] IR: IrConstructor.isPrimary NB this is required for Kotlin/JS. --- .../kotlin/ir/declarations/IrConstructor.kt | 2 ++ .../ir/declarations/impl/IrConstructorImpl.kt | 6 ++++-- .../jetbrains/kotlin/ir/util/RenderIrElement.kt | 3 ++- .../ir/irText/classes/abstractMembers.txt | 2 +- .../ir/irText/classes/annotationClasses.txt | 9 +++++---- ...mentReorderingInDelegatingConstructorCall.txt | 4 ++-- .../testData/ir/irText/classes/classMembers.txt | 6 +++--- compiler/testData/ir/irText/classes/classes.txt | 8 ++++---- .../ir/irText/classes/companionObject.txt | 8 ++++---- .../irText/classes/dataClassWithArrayMembers.txt | 6 +++--- .../testData/ir/irText/classes/dataClasses.txt | 6 +++--- .../ir/irText/classes/dataClassesGeneric.txt | 2 +- .../irText/classes/delegatedImplementation.txt | 8 ++++---- ...legatedImplementationWithExplicitOverride.txt | 4 ++-- ...tingConstructorCallToTypeAliasConstructor.txt | 6 +++--- ...ngConstructorCallsInSecondaryConstructors.txt | 2 +- compiler/testData/ir/irText/classes/enum.txt | 16 ++++++++-------- .../ir/irText/classes/enumWithSecondaryCtor.txt | 10 +++++----- .../testData/ir/irText/classes/initBlock.txt | 8 ++++---- compiler/testData/ir/irText/classes/initVal.txt | 6 +++--- compiler/testData/ir/irText/classes/initVar.txt | 8 ++++---- .../testData/ir/irText/classes/innerClass.txt | 6 +++--- .../innerClassWithDelegatingConstructor.txt | 4 ++-- .../lambdaInDataClassDefaultParameter.txt | 6 +++--- .../testData/ir/irText/classes/localClasses.txt | 2 +- .../irText/classes/objectLiteralExpressions.txt | 12 ++++++------ .../ir/irText/classes/objectWithInitializers.txt | 4 ++-- .../ir/irText/classes/outerClassAccess.txt | 6 +++--- .../ir/irText/classes/primaryConstructor.txt | 6 +++--- ...rimaryConstructorWithSuperConstructorCall.txt | 8 ++++---- .../ir/irText/classes/qualifiedSuperCalls.txt | 2 +- .../testData/ir/irText/classes/sealedClasses.txt | 8 ++++---- ...yConstructorWithInitializersFromClassBody.txt | 2 +- .../testData/ir/irText/classes/superCalls.txt | 4 ++-- .../annotationsInAnnotationArguments.txt | 7 ++++--- .../annotationsWithDefaultParameterValues.txt | 3 ++- .../annotationsWithVarargParameters.txt | 3 ++- .../annotations/arrayInAnnotationArguments.txt | 5 +++-- .../annotations/classesWithAnnotations.txt | 15 ++++++++------- .../constExpressionsInAnnotationArguments.txt | 3 ++- .../annotations/constructorsWithAnnotations.txt | 5 +++-- .../annotations/delegateFieldWithAnnotations.txt | 3 ++- ...delegatedPropertyAccessorsWithAnnotations.txt | 5 +++-- .../annotations/enumEntriesWithAnnotations.txt | 7 ++++--- .../annotations/enumsInAnnotationArguments.txt | 5 +++-- .../annotations/fieldsWithAnnotations.txt | 3 ++- .../declarations/annotations/fileAnnotations.txt | 3 ++- .../annotations/functionsWithAnnotations.txt | 3 ++- .../localDelegatedPropertiesWithAnnotations.txt | 3 ++- .../multipleAnnotationsInSquareBrackets.txt | 7 ++++--- ...rimaryConstructorParameterWithAnnotations.txt | 5 +++-- .../annotations/propertiesWithAnnotations.txt | 3 ++- ...tyAccessorsFromClassHeaderWithAnnotations.txt | 5 +++-- .../propertyAccessorsWithAnnotations.txt | 3 ++- .../propertySetterParameterWithAnnotations.txt | 5 +++-- .../receiverParameterWithAnnotations.txt | 5 +++-- .../spreadOperatorInAnnotationArguments.txt | 3 ++- .../annotations/typeAliasesWithAnnotations.txt | 3 ++- .../typeParametersWithAnnotations.txt | 3 ++- .../valueParametersWithAnnotations.txt | 5 +++-- .../annotations/varargsInAnnotationArguments.txt | 7 ++++--- .../annotations/variablesWithAnnotations.txt | 3 ++- .../catchParameterInTopLevelProperty.txt | 1 + .../irText/declarations/classLevelProperties.txt | 2 +- .../irText/declarations/delegatedProperties.txt | 2 +- .../irText/declarations/extensionProperties.txt | 2 +- .../ir/irText/declarations/fakeOverrides.txt | 4 ++-- .../declarations/localClassWithOverrides.txt | 5 +++-- ...ocalDelegatedPropertyWithSuspendOperators.txt | 2 +- .../multiplatform/expectClassInherited.txt | 8 ++++---- .../multiplatform/expectedEnumClass.txt | 3 ++- .../multiplatform/expectedSealedClass.txt | 9 +++++---- .../ir/irText/declarations/parameters/class.txt | 6 +++--- .../declarations/parameters/constructor.txt | 10 +++++----- .../declarations/parameters/dataClassMembers.txt | 2 +- .../parameters/defaultPropertyAccessors.txt | 4 ++-- .../declarations/parameters/delegatedMembers.txt | 2 +- .../ir/irText/declarations/parameters/fun.txt | 2 +- .../parameters/genericInnerClass.txt | 4 ++-- .../parameters/propertyAccessors.txt | 2 +- .../parameters/typeParameterBeforeBound.txt | 3 ++- .../typeParameterBoundedBySubclass.txt | 9 +++++---- .../declarations/primaryCtorDefaultArguments.txt | 2 +- .../declarations/primaryCtorProperties.txt | 2 +- .../provideDelegate/differentReceivers.txt | 2 +- .../declarations/provideDelegate/local.txt | 4 ++-- .../provideDelegate/localDifferentReceivers.txt | 2 +- .../declarations/provideDelegate/member.txt | 6 +++--- .../provideDelegate/memberExtension.txt | 4 ++-- .../declarations/provideDelegate/topLevel.txt | 4 ++-- .../ir/irText/declarations/typeAlias.txt | 2 +- .../ir/irText/errors/suppressedNonPublicCall.txt | 2 +- .../expressions/arrayAugmentedAssignment1.txt | 2 +- .../ir/irText/expressions/assignments.txt | 2 +- .../irText/expressions/augmentedAssignment2.txt | 2 +- .../augmentedAssignmentWithExpression.txt | 2 +- .../expressions/boundCallableReferences.txt | 2 +- .../expressions/callableRefToGenericMember.txt | 2 +- .../callableReferenceToImportedFromObject.txt | 2 +- .../irText/expressions/castToTypeParameter.txt | 3 ++- .../ir/irText/expressions/chainOfSafeCalls.txt | 2 +- .../ir/irText/expressions/classReference.txt | 2 +- .../expressions/complexAugmentedAssignment.txt | 10 +++++----- .../ir/irText/expressions/contructorCall.txt | 2 +- .../ir/irText/expressions/destructuring1.txt | 4 ++-- .../expressions/destructuringWithUnderscore.txt | 4 ++-- .../irText/expressions/enumEntryAsReceiver.txt | 4 ++-- ...ypeParameterWithPrimitiveNumericSupertype.txt | 2 +- .../expressions/forWithImplicitReceivers.txt | 4 ++-- .../irText/expressions/funImportedFromObject.txt | 3 ++- .../expressions/implicitCastToTypeParameter.txt | 3 ++- .../expressions/jvmInstanceFieldReference.txt | 2 +- .../expressions/jvmStaticFieldReference.txt | 2 +- .../testData/ir/irText/expressions/kt16904.txt | 6 +++--- .../testData/ir/irText/expressions/kt16905.txt | 8 ++++---- .../testData/ir/irText/expressions/kt23030.txt | 3 ++- .../irText/expressions/memberTypeArguments.txt | 3 ++- .../expressions/membersImportedFromObject.txt | 2 +- .../expressions/multipleThisReferences.txt | 8 ++++---- .../ir/irText/expressions/objectAsCallable.txt | 4 ++-- .../irText/expressions/objectClassReference.txt | 2 +- .../expressions/outerClassInstanceReference.txt | 4 ++-- .../primitivesImplicitConversions.txt | 2 +- .../ir/irText/expressions/reflectionLiterals.txt | 2 +- .../ir/irText/expressions/safeAssignment.txt | 2 +- .../safeCallWithIncrementDecrement.txt | 2 +- .../testData/ir/irText/expressions/safeCalls.txt | 2 +- .../expressions/setFieldWithImplicitCast.txt | 2 +- .../specializedTypeAliasConstructorCall.txt | 3 ++- .../expressions/thisOfGenericOuterClass.txt | 6 +++--- .../expressions/typeParameterClassLiteral.txt | 3 ++- .../ir/irText/expressions/useImportedMember.txt | 5 +++-- .../testData/ir/irText/expressions/values.txt | 8 ++++---- compiler/testData/ir/irText/expressions/when.txt | 2 +- .../ir/irText/lambdas/destructuringInLambda.txt | 2 +- .../irText/lambdas/multipleImplicitReceivers.txt | 4 ++-- .../ir/irText/regressions/coercionInLoop.txt | 1 + .../ir/irText/regressions/integerCoercionToT.txt | 4 ++-- .../regressions/typeAliasCtorForGenericClass.txt | 2 +- .../testData/ir/irText/singletons/companion.txt | 4 ++-- .../testData/ir/irText/singletons/enumEntry.txt | 6 +++--- .../testData/ir/irText/singletons/object.txt | 4 ++-- compiler/testData/ir/irText/stubs/builtinMap.txt | 1 + .../irText/stubs/builtinMap__builtinsmodule.txt | 4 ++-- .../builtinMap__dependenciesoftestmodule.txt | 2 +- .../ir/irText/stubs/javaEnum__testmodule.txt | 2 +- .../testData/ir/irText/stubs/javaInnerClass.txt | 2 +- .../stubs/javaInnerClass__builtinsmodule.txt | 2 +- .../irText/stubs/javaInnerClass__testmodule.txt | 4 ++-- compiler/testData/ir/irText/stubs/javaMethod.txt | 1 + .../ir/irText/stubs/javaMethod__testmodule.txt | 2 +- .../irText/stubs/javaNestedClass__testmodule.txt | 4 ++-- .../ir/irText/stubs/javaStaticMethod.txt | 1 + .../stubs/javaStaticMethod__testmodule.txt | 2 +- .../stubs/kotlinInnerClass__builtinsmodule.txt | 2 +- .../ir/irText/stubs/simple__builtinsmodule.txt | 4 ++-- .../augmentedAssignmentWithExpression.txt | 2 +- .../sourceRanges/synthesizedDataClassMembers.txt | 2 +- 158 files changed, 349 insertions(+), 297 deletions(-) diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrConstructor.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrConstructor.kt index 913c24be1a2..b3f5fd30e2a 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrConstructor.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrConstructor.kt @@ -25,5 +25,7 @@ interface IrConstructor : IrFunction, IrSymbolDeclaration { get() = IrDeclarationKind.CONSTRUCTOR override val descriptor: ClassConstructorDescriptor + + val isPrimary: Boolean } diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/impl/IrConstructorImpl.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/impl/IrConstructorImpl.kt index 72b1384c860..8ad13806499 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/impl/IrConstructorImpl.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/impl/IrConstructorImpl.kt @@ -35,7 +35,8 @@ class IrConstructorImpl( visibility: Visibility, returnType: KotlinType, isInline: Boolean, - isExternal: Boolean + isExternal: Boolean, + override val isPrimary: Boolean ) : IrFunctionBase(startOffset, endOffset, origin, visibility, isInline, isExternal, returnType), IrConstructor { @@ -51,7 +52,8 @@ class IrConstructorImpl( symbol.descriptor.visibility, symbol.descriptor.returnType, symbol.descriptor.isInline, - symbol.descriptor.isEffectivelyExternal() + symbol.descriptor.isEffectivelyExternal(), + symbol.descriptor.isPrimary ) { this.body = body } 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 b535a49b9dc..6d43a43675c 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 @@ -94,7 +94,8 @@ class RenderIrElementVisitor : IrElementVisitor { private fun IrConstructor.renderConstructorFlags() = renderFlagsList( "inline".takeIf { isInline }, - "external".takeIf { isExternal } + "external".takeIf { isExternal }, + "primary".takeIf { isPrimary } ) override fun visitProperty(declaration: IrProperty, data: Nothing?): String = diff --git a/compiler/testData/ir/irText/classes/abstractMembers.txt b/compiler/testData/ir/irText/classes/abstractMembers.txt index 532dc2d8702..3f7e86bd62b 100644 --- a/compiler/testData/ir/irText/classes/abstractMembers.txt +++ b/compiler/testData/ir/irText/classes/abstractMembers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/abstractMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:AbstractClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:AbstractClass flags: + CONSTRUCTOR visibility:public <> () returnType:AbstractClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='AbstractClass' diff --git a/compiler/testData/ir/irText/classes/annotationClasses.txt b/compiler/testData/ir/irText/classes/annotationClasses.txt index 40a2af18b2c..4eb6419c617 100644 --- a/compiler/testData/ir/irText/classes/annotationClasses.txt +++ b/compiler/testData/ir/irText/classes/annotationClasses.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/annotationClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test1 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/annotationClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY CONST Int type=kotlin.Int value=0 @@ -63,7 +63,7 @@ FILE fqName: fileName:/annotationClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:Test1) returnType:Test3 flags: + CONSTRUCTOR visibility:public <> (x:Test1) returnType:Test3 flags:primary VALUE_PARAMETER name:x index:0 type:Test1 flags: PROPERTY name:x type:Test1 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:Test1 visibility:public flags:final @@ -92,7 +92,7 @@ FILE fqName: fileName:/annotationClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test4 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:Test4 flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:Test4 flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int flags:vararg PROPERTY name:xs type:kotlin.IntArray visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.IntArray visibility:public flags:final @@ -117,3 +117,4 @@ FILE fqName: fileName:/annotationClasses.kt overridden: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt index ec55f307449..53c7146ea71 100644 --- a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Base flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Base flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY @@ -46,7 +46,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:Test1 flags:primary VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags: VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/classes/classMembers.txt b/compiler/testData/ir/irText/classes/classMembers.txt index fbba97430c1..a2464a8d103 100644 --- a/compiler/testData/ir/irText/classes/classMembers.txt +++ b/compiler/testData/ir/irText/classes/classMembers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int, z:kotlin.Int) returnType:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int, z:kotlin.Int) returnType:C flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: VALUE_PARAMETER name:z index:2 type:kotlin.Int flags: @@ -90,7 +90,7 @@ FILE fqName: fileName:/classMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C.NestedClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C.NestedClass flags: + CONSTRUCTOR visibility:public <> () returnType:C.NestedClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='NestedClass' @@ -147,7 +147,7 @@ FILE fqName: fileName:/classMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C.Companion flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:C.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:C.Companion flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of C' diff --git a/compiler/testData/ir/irText/classes/classes.txt b/compiler/testData/ir/irText/classes/classes.txt index 98772059f63..9f1d28cc36b 100644 --- a/compiler/testData/ir/irText/classes/classes.txt +++ b/compiler/testData/ir/irText/classes/classes.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestClass' @@ -41,7 +41,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestObject flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestObject flags: + CONSTRUCTOR visibility:private <> () returnType:TestObject flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestObject' @@ -62,7 +62,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnnotationClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestAnnotationClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestAnnotationClass flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -80,7 +80,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnumClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnumClass flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnumClass flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: TestEnumClass diff --git a/compiler/testData/ir/irText/classes/companionObject.txt b/compiler/testData/ir/irText/classes/companionObject.txt index 615202401c9..14ca652ffa0 100644 --- a/compiler/testData/ir/irText/classes/companionObject.txt +++ b/compiler/testData/ir/irText/classes/companionObject.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' @@ -11,7 +11,7 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1.Companion flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Test1.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:Test1.Companion flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Test1' @@ -45,7 +45,7 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test2 flags: + CONSTRUCTOR visibility:public <> () returnType:Test2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' @@ -53,7 +53,7 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.Named flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Test2.Named flags: + CONSTRUCTOR visibility:private <> () returnType:Test2.Named flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Test2Named' diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt index 9cf718e6e80..eade04e2f87 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:Test1 flags:primary VALUE_PARAMETER name:stringArray index:0 type:kotlin.Array flags: VALUE_PARAMETER name:charArray index:1 type:kotlin.CharArray flags: VALUE_PARAMETER name:booleanArray index:2 type:kotlin.BooleanArray flags: @@ -463,7 +463,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (genericArray:kotlin.Array) returnType:Test2 flags: + CONSTRUCTOR visibility:public <> (genericArray:kotlin.Array) returnType:Test2 flags:primary VALUE_PARAMETER name:genericArray index:0 type:kotlin.Array flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -561,7 +561,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (anyArrayN:kotlin.Array?) returnType:Test3 flags: + CONSTRUCTOR visibility:public <> (anyArrayN:kotlin.Array?) returnType:Test3 flags:primary VALUE_PARAMETER name:anyArrayN index:0 type:kotlin.Array? flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/classes/dataClasses.txt b/compiler/testData/ir/irText/classes/dataClasses.txt index c59920889af..d0df132a2f1 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:Test1 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.String flags: VALUE_PARAMETER name:z index:2 type:kotlin.Any flags: @@ -187,7 +187,7 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:Test2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -294,7 +294,7 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (d:kotlin.Double, dn:kotlin.Double?, f:kotlin.Float, df:kotlin.Float?) returnType:Test3 flags: + CONSTRUCTOR visibility:public <> (d:kotlin.Double, dn:kotlin.Double?, f:kotlin.Float, df:kotlin.Float?) returnType:Test3 flags:primary VALUE_PARAMETER name:d index:0 type:kotlin.Double flags: VALUE_PARAMETER name:dn index:1 type:kotlin.Double? flags: VALUE_PARAMETER name:f index:2 type:kotlin.Float flags: diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt index 08f17d97c0a..7be8e0d4ba7 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:T) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (x:T) returnType:Test1 flags:primary VALUE_PARAMETER name:x index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.txt index 4c3e6a61d86..442f6a8b021 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.txt @@ -29,7 +29,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:BaseImpl flags: superClasses: CLASS INTERFACE name:IBase modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:BaseImpl flags: + CONSTRUCTOR visibility:private <> () returnType:BaseImpl flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='BaseImpl' @@ -114,7 +114,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:otherImpl. flags: superClasses: CLASS INTERFACE name:IOther modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:otherImpl. flags: + CONSTRUCTOR visibility:public <> () returnType:otherImpl. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' @@ -194,7 +194,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS INTERFACE name:IBase modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' @@ -250,7 +250,7 @@ FILE fqName: fileName:/delegatedImplementation.kt superClasses: CLASS INTERFACE name:IBase modality:ABSTRACT visibility:public flags: CLASS INTERFACE name:IOther modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test2 flags: + CONSTRUCTOR visibility:public <> () returnType:Test2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt index f7f8568cde6..77b6665ea5b 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt @@ -24,7 +24,7 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:FooBarImpl flags: superClasses: CLASS INTERFACE name:IFooBar modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:FooBarImpl flags: + CONSTRUCTOR visibility:private <> () returnType:FooBarImpl flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='FooBarImpl' @@ -55,7 +55,7 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS INTERFACE name:IFooBar modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt index 5e2d7733de0..8643e77a503 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:T) returnType:Cell flags: + CONSTRUCTOR visibility:public <> (value:T) returnType:Cell flags:primary VALUE_PARAMETER name:value index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -40,7 +40,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C1 flags: superClasses: CLASS CLASS name:Cell modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C1 flags: + CONSTRUCTOR visibility:public <> () returnType:C1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(String)' : String @@ -68,7 +68,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C2 flags: superClasses: CLASS CLASS name:Cell modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C2 flags: + CONSTRUCTOR visibility:public <> () returnType:C2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(String)' : String diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt index 0e73a5bd60e..5dfe1097803 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/delegatingConstructorCallsInSecondaryConstructors.k $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' diff --git a/compiler/testData/ir/irText/classes/enum.txt b/compiler/testData/ir/irText/classes/enum.txt index 15e3ae0b414..5777fa686a5 100644 --- a/compiler/testData/ir/irText/classes/enum.txt +++ b/compiler/testData/ir/irText/classes/enum.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum1 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum1 flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: TestEnum1 @@ -61,7 +61,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum2 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' @@ -135,7 +135,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum3 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum3 flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: TestEnum3 @@ -146,7 +146,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum3.TEST flags: superClasses: CLASS ENUM_CLASS name:TestEnum3 modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum3.TEST flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum3.TEST flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum3()' INSTANCE_INITIALIZER_CALL classDescriptor='TEST' @@ -248,7 +248,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum4 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum4 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum4 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' @@ -270,7 +270,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum4.TEST1 flags: superClasses: CLASS ENUM_CLASS name:TestEnum4 modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum4.TEST1 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum4.TEST1 flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum4(Int)' x: CONST Int type=kotlin.Int value=1 @@ -333,7 +333,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum4.TEST2 flags: superClasses: CLASS ENUM_CLASS name:TestEnum4 modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum4.TEST2 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum4.TEST2 flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum4(Int)' x: CONST Int type=kotlin.Int value=2 @@ -455,7 +455,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum5 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum5 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum5 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt index 8894d3de1cb..d5ae552bd42 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test0 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test0 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test0 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' @@ -74,7 +74,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test1 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test1 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' @@ -148,7 +148,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test2 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' @@ -170,7 +170,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.ZERO flags: superClasses: CLASS ENUM_CLASS name:Test2 modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Test2.ZERO flags: + CONSTRUCTOR visibility:private <> () returnType:Test2.ZERO flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Test2()' INSTANCE_INITIALIZER_CALL classDescriptor='ZERO' @@ -232,7 +232,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.ONE flags: superClasses: CLASS ENUM_CLASS name:Test2 modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Test2.ONE flags: + CONSTRUCTOR visibility:private <> () returnType:Test2.ONE flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Test2(Int)' x: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/classes/initBlock.txt b/compiler/testData/ir/irText/classes/initBlock.txt index c1d224185e4..ee854fc4b7a 100644 --- a/compiler/testData/ir/irText/classes/initBlock.txt +++ b/compiler/testData/ir/irText/classes/initBlock.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' @@ -27,7 +27,7 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -115,7 +115,7 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test5 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test5 flags: + CONSTRUCTOR visibility:public <> () returnType:Test5 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test5' @@ -127,7 +127,7 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test5.TestInner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Test5) returnType:Test5.TestInner flags: + CONSTRUCTOR visibility:public <> ($this:Test5) returnType:Test5.TestInner flags:primary $outer: VALUE_PARAMETER name: type:Test5 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/classes/initVal.txt b/compiler/testData/ir/irText/classes/initVal.txt index 8c8eed1bc5d..ed0f1c88502 100644 --- a/compiler/testData/ir/irText/classes/initVal.txt +++ b/compiler/testData/ir/irText/classes/initVal.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/initVal.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitValFromParameter flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestInitValFromParameter flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestInitValFromParameter flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -35,7 +35,7 @@ FILE fqName: fileName:/initVal.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitValInClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestInitValInClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitValInClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitValInClass' @@ -66,7 +66,7 @@ FILE fqName: fileName:/initVal.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitValInInitBlock flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestInitValInInitBlock flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitValInInitBlock flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitValInInitBlock' diff --git a/compiler/testData/ir/irText/classes/initVar.txt b/compiler/testData/ir/irText/classes/initVar.txt index 29f80695377..70bf9ddb8cd 100644 --- a/compiler/testData/ir/irText/classes/initVar.txt +++ b/compiler/testData/ir/irText/classes/initVar.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarFromParameter flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestInitVarFromParameter flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestInitVarFromParameter flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -42,7 +42,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarInClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestInitVarInClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitVarInClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarInClass' @@ -80,7 +80,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarInInitBlock flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestInitVarInInitBlock flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitVarInInitBlock flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarInInitBlock' @@ -121,7 +121,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarWithCustomSetter flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestInitVarWithCustomSetter flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitVarWithCustomSetter flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarWithCustomSetter' diff --git a/compiler/testData/ir/irText/classes/innerClass.txt b/compiler/testData/ir/irText/classes/innerClass.txt index 3fbe5f1db62..85efca66409 100644 --- a/compiler/testData/ir/irText/classes/innerClass.txt +++ b/compiler/testData/ir/irText/classes/innerClass.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/innerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -11,7 +11,7 @@ FILE fqName: fileName:/innerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.TestInnerClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.TestInnerClass flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.TestInnerClass flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -33,7 +33,7 @@ FILE fqName: fileName:/innerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.DerivedInnerClass flags: superClasses: CLASS CLASS name:TestInnerClass modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.DerivedInnerClass flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.DerivedInnerClass flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor TestInnerClass()' diff --git a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt index 1739a2e3766..8ee7608b589 100644 --- a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt +++ b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -11,7 +11,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer, x:kotlin.Int) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer, x:kotlin.Int) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt index 9406eddf9a3..6eabeb75200 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (runA:A.(kotlin.String) -> kotlin.Unit) returnType:A flags: + CONSTRUCTOR visibility:public <> (runA:A.(kotlin.String) -> kotlin.Unit) returnType:A flags:primary VALUE_PARAMETER name:runA index:0 type:A.(kotlin.String) -> kotlin.Unit flags: EXPRESSION_BODY BLOCK type=A.(kotlin.String) -> kotlin.Unit origin=LAMBDA @@ -108,7 +108,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Any) returnType:B flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Any) returnType:B flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: EXPRESSION_BODY BLOCK type=B.. origin=OBJECT_LITERAL @@ -116,7 +116,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B.. flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:B.. flags: + CONSTRUCTOR visibility:public <> () returnType:B.. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' diff --git a/compiler/testData/ir/irText/classes/localClasses.txt b/compiler/testData/ir/irText/classes/localClasses.txt index aabd8f75cd9..12defae52a3 100644 --- a/compiler/testData/ir/irText/classes/localClasses.txt +++ b/compiler/testData/ir/irText/classes/localClasses.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/localClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:outer.LocalClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:outer.LocalClass flags: + CONSTRUCTOR visibility:public <> () returnType:outer.LocalClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='LocalClass' diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt index 823a9c040b9..cbd188322c0 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt @@ -26,7 +26,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test1. flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:test1. flags: + CONSTRUCTOR visibility:public <> () returnType:test1. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' @@ -56,7 +56,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test2. flags: superClasses: CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:test2. flags: + CONSTRUCTOR visibility:public <> () returnType:test2. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' @@ -89,7 +89,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -97,7 +97,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -128,7 +128,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.test3. flags: superClasses: CLASS CLASS name:Inner modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer.test3. flags: + CONSTRUCTOR visibility:public <> () returnType:Outer.test3. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null @@ -176,7 +176,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test4. flags: superClasses: CLASS CLASS name:Inner modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:test4. flags: + CONSTRUCTOR visibility:public <> () returnType:test4. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' $this: GET_VAR 'this@test4: Outer' type=Outer origin=null diff --git a/compiler/testData/ir/irText/classes/objectWithInitializers.txt b/compiler/testData/ir/irText/classes/objectWithInitializers.txt index daa0a7945e4..03a8b5d638b 100644 --- a/compiler/testData/ir/irText/classes/objectWithInitializers.txt +++ b/compiler/testData/ir/irText/classes/objectWithInitializers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/objectWithInitializers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' @@ -24,7 +24,7 @@ FILE fqName: fileName:/objectWithInitializers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: superClasses: CLASS CLASS name:Base modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Test flags: + CONSTRUCTOR visibility:private <> () returnType:Test flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' diff --git a/compiler/testData/ir/irText/classes/outerClassAccess.txt b/compiler/testData/ir/irText/classes/outerClassAccess.txt index 56f92f3dfb1..ae25dda715e 100644 --- a/compiler/testData/ir/irText/classes/outerClassAccess.txt +++ b/compiler/testData/ir/irText/classes/outerClassAccess.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -14,7 +14,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -28,7 +28,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner.Inner2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer.Inner) returnType:Outer.Inner.Inner2 flags: + CONSTRUCTOR visibility:public <> ($this:Outer.Inner) returnType:Outer.Inner.Inner2 flags:primary $outer: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/classes/primaryConstructor.txt b/compiler/testData/ir/irText/classes/primaryConstructor.txt index 1578728deb8..1e4d9acb315 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructor.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructor.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/primaryConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test1 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY @@ -46,7 +46,7 @@ FILE fqName: fileName:/primaryConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY @@ -89,7 +89,7 @@ FILE fqName: fileName:/primaryConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test3 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test3 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt index 2e346cc89d1..5d4e3b22e74 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' @@ -24,7 +24,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestImplicitPrimaryConstructor flags: superClasses: CLASS CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestImplicitPrimaryConstructor flags: + CONSTRUCTOR visibility:public <> () returnType:TestImplicitPrimaryConstructor flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestImplicitPrimaryConstructor' @@ -45,7 +45,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestExplicitPrimaryConstructor flags: superClasses: CLASS CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestExplicitPrimaryConstructor flags: + CONSTRUCTOR visibility:public <> () returnType:TestExplicitPrimaryConstructor flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestExplicitPrimaryConstructor' @@ -66,7 +66,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestWithDelegatingConstructor flags: superClasses: CLASS CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:TestWithDelegatingConstructor flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:TestWithDelegatingConstructor flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt index 2269491a51c..e2f7b1a73dd 100644 --- a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt +++ b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt @@ -56,7 +56,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt superClasses: CLASS INTERFACE name:ILeft modality:ABSTRACT visibility:public flags: CLASS INTERFACE name:IRight modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:CBoth flags: + CONSTRUCTOR visibility:public <> () returnType:CBoth flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='CBoth' diff --git a/compiler/testData/ir/irText/classes/sealedClasses.txt b/compiler/testData/ir/irText/classes/sealedClasses.txt index e6381483d40..14a02e6c311 100644 --- a/compiler/testData/ir/irText/classes/sealedClasses.txt +++ b/compiler/testData/ir/irText/classes/sealedClasses.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/sealedClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Expr flags: + CONSTRUCTOR visibility:private <> () returnType:Expr flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Expr' @@ -11,7 +11,7 @@ FILE fqName: fileName:/sealedClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr.Const flags: superClasses: CLASS CLASS name:Expr modality:SEALED visibility:public flags: - CONSTRUCTOR visibility:public <> (number:kotlin.Double) returnType:Expr.Const flags: + CONSTRUCTOR visibility:public <> (number:kotlin.Double) returnType:Expr.Const flags:primary VALUE_PARAMETER name:number index:0 type:kotlin.Double flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()' @@ -43,7 +43,7 @@ FILE fqName: fileName:/sealedClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr.Sum flags: superClasses: CLASS CLASS name:Expr modality:SEALED visibility:public flags: - CONSTRUCTOR visibility:public <> (e1:Expr, e2:Expr) returnType:Expr.Sum flags: + CONSTRUCTOR visibility:public <> (e1:Expr, e2:Expr) returnType:Expr.Sum flags:primary VALUE_PARAMETER name:e1 index:0 type:Expr flags: VALUE_PARAMETER name:e2 index:1 type:Expr flags: BLOCK_BODY @@ -86,7 +86,7 @@ FILE fqName: fileName:/sealedClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr.NotANumber flags: superClasses: CLASS CLASS name:Expr modality:SEALED visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Expr.NotANumber flags: + CONSTRUCTOR visibility:private <> () returnType:Expr.NotANumber flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()' INSTANCE_INITIALIZER_CALL classDescriptor='NotANumber' diff --git a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt index e2381223baa..61841ea824f 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' diff --git a/compiler/testData/ir/irText/classes/superCalls.txt b/compiler/testData/ir/irText/classes/superCalls.txt index 58644f49642..e785f589e91 100644 --- a/compiler/testData/ir/irText/classes/superCalls.txt +++ b/compiler/testData/ir/irText/classes/superCalls.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/superCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' @@ -37,7 +37,7 @@ FILE fqName: fileName:/superCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived flags: superClasses: CLASS CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Derived flags: + CONSTRUCTOR visibility:public <> () returnType:Derived flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived' diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.txt index 7eca218893e..bb5b37a8598 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:A1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:A1 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (a:A1) returnType:A2 flags: + CONSTRUCTOR visibility:public <> (a:A1) returnType:A2 flags:primary VALUE_PARAMETER name:a index:0 type:A1 flags: PROPERTY name:a type:A1 visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:a type:A1 visibility:public flags:final @@ -61,7 +61,7 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:AA flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:AA flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:AA flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.Array flags: PROPERTY name:xs type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:public flags:final @@ -98,3 +98,4 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt CALL 'constructor A1(Int)' type=A1 origin=null x: CONST Int type=kotlin.Int value=2 BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.txt index 2a5c2427aa3..1dca624f936 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/annotationsWithDefaultParameterValues.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String, y:kotlin.Int) returnType:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String, y:kotlin.Int) returnType:A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: EXPRESSION_BODY CONST String type=kotlin.String value= @@ -68,3 +68,4 @@ FILE fqName: fileName:/annotationsWithDefaultParameterValues.kt annotations: CALL 'constructor A(String = ..., Int = ...)' type=A origin=null BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.txt index 99ad11ff9a6..92327a91296 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/annotationsWithVarargParameters.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:A flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:A flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String flags:vararg PROPERTY name:xs type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:public flags:final @@ -46,3 +46,4 @@ FILE fqName: fileName:/annotationsWithVarargParameters.kt CALL 'constructor A(vararg String)' type=A origin=null xs: VARARG type=Array varargElementType=String BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.txt b/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.txt index 7d2b0241ad4..5a80ccd80b6 100644 --- a/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.txt +++ b/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/arrayInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnnWithIntArray flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:TestAnnWithIntArray flags: + CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:TestAnnWithIntArray flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.IntArray flags: PROPERTY name:x type:kotlin.IntArray visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.IntArray visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/arrayInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnnWithStringArray flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Array) returnType:TestAnnWithStringArray flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Array) returnType:TestAnnWithStringArray flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Array flags: PROPERTY name:x type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Array visibility:public flags:final @@ -83,3 +83,4 @@ FILE fqName: fileName:/arrayInAnnotationArguments.kt CONST String type=kotlin.String value=e CONST String type=kotlin.String value=f BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.txt index a757a9e88a7..c91e7422dc8 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -35,7 +35,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestClass' @@ -79,7 +79,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestObject flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestObject flags: + CONSTRUCTOR visibility:private <> () returnType:TestObject flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestObject' @@ -100,7 +100,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' @@ -111,7 +111,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host.TestCompanion flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Host.TestCompanion flags: + CONSTRUCTOR visibility:private <> () returnType:Host.TestCompanion flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of HostTestCompanion' @@ -148,7 +148,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: TestEnum @@ -205,7 +205,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnnotation flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestAnnotation flags: + CONSTRUCTOR visibility:public <> () returnType:TestAnnotation flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -219,3 +219,4 @@ FILE fqName: fileName:/classesWithAnnotations.kt overridden: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.txt b/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.txt index 3fc5db7e88b..3778fa3325d 100644 --- a/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.txt +++ b/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.txt @@ -11,7 +11,7 @@ FILE fqName: fileName:/constExpressionsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final @@ -46,3 +46,4 @@ FILE fqName: fileName:/constExpressionsInAnnotationArguments.kt CALL 'constructor A(Int)' type=A origin=null x: CONST Int type=kotlin.Int value=2 BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.txt index a49147e602f..d8b110cdb31 100644 --- a/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/constructorsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/constructorsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestClass flags:primary annotations: CALL 'constructor TestAnn(Int)' type=TestAnn origin=null x: CONST Int type=kotlin.Int value=1 @@ -59,3 +59,4 @@ FILE fqName: fileName:/constructorsWithAnnotations.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.txt index 6ae7c45b68a..f267ceb75c0 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/delegateFieldWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ann flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Ann flags: + CONSTRUCTOR visibility:public <> () returnType:Ann flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -38,3 +38,4 @@ FILE fqName: fileName:/delegateFieldWithAnnotations.kt $receiver: GET_FIELD '`test1$delegate`: Lazy' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test1: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + diff --git a/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.txt index 8dd990a201e..627bc7de87a 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Cell flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:Cell flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:Cell flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -129,3 +129,4 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt thisRef: CONST Null type=kotlin.Nothing? value=null kProp: PROPERTY_REFERENCE 'test2: Int' field=null getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE newValue: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null + diff --git a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.txt index d47a45c084b..7e0d01bf51f 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: TestEnum @@ -54,7 +54,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum.ENTRY2 flags: superClasses: CLASS ENUM_CLASS name:TestEnum modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:TestEnum.ENTRY2 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum.ENTRY2 flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum()' INSTANCE_INITIALIZER_CALL classDescriptor='ENTRY2' @@ -153,3 +153,4 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnum flags: VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF + diff --git a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.txt b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.txt index 31b977cd3a1..fee789f9d86 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:En flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:En flags: + CONSTRUCTOR visibility:private <> () returnType:En flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: En @@ -65,7 +65,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:En) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:En) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:En flags: PROPERTY name:x type:En visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:En visibility:public flags:final @@ -95,3 +95,4 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt CALL 'constructor TestAnn(En)' type=TestAnn origin=null x: GET_ENUM 'A' type=En BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.txt index 1fee148ec1d..7c391f2a09a 100644 --- a/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/fieldsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -55,3 +55,4 @@ FILE fqName: fileName:/fieldsWithAnnotations.kt BLOCK_BODY SET_FIELD 'testVar: String' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : String' type=kotlin.String origin=null + diff --git a/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.txt index cb0e8988014..6d9fb4229d9 100644 --- a/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.txt @@ -12,7 +12,7 @@ FILE fqName:test fileName:/fileAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:test.A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:test.A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -37,3 +37,4 @@ FILE fqName:test fileName:/fileAnnotations.kt overridden: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.txt index 1ee8f82729d..bd6514ea3e0 100644 --- a/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/functionsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final @@ -33,3 +33,4 @@ FILE fqName: fileName:/functionsWithAnnotations.kt CALL 'constructor TestAnn(Int)' type=TestAnn origin=null x: CONST Int type=kotlin.Int value=42 BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.txt index 3c0db881847..03c9e2f3a81 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -52,3 +52,4 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt $receiver: GET_VAR '`test$delegate`: Lazy' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'test: Int' delegate='`test$delegate`: Lazy' getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + diff --git a/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.txt b/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.txt index ae100f4fcb9..2647e19ba23 100644 --- a/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.txt +++ b/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/multipleAnnotationsInSquareBrackets.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A1 flags: + CONSTRUCTOR visibility:public <> () returnType:A1 flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/multipleAnnotationsInSquareBrackets.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A2 flags: + CONSTRUCTOR visibility:public <> () returnType:A2 flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -39,7 +39,7 @@ FILE fqName: fileName:/multipleAnnotationsInSquareBrackets.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A3 flags: + CONSTRUCTOR visibility:public <> () returnType:A3 flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -59,3 +59,4 @@ FILE fqName: fileName:/multipleAnnotationsInSquareBrackets.kt CALL 'constructor A2()' type=A2 origin=null CALL 'constructor A3()' type=A3 origin=null BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.txt index b8246552ee6..133a38f6449 100644 --- a/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/primaryConstructorParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ann flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Ann flags: + CONSTRUCTOR visibility:public <> () returnType:Ann flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/primaryConstructorParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: annotations: CALL 'constructor Ann()' type=Ann origin=null @@ -51,3 +51,4 @@ FILE fqName: fileName:/primaryConstructorParameterWithAnnotations.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.txt index 535ce29ec86..5ca31299d3f 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/propertiesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -39,3 +39,4 @@ FILE fqName: fileName:/propertiesWithAnnotations.kt BLOCK_BODY RETURN type=kotlin.Nothing from='(): String' GET_FIELD 'testVal: String' type=kotlin.String origin=null + diff --git a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.txt index ff03d682551..9cd5a68d84d 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:C flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY @@ -87,3 +87,4 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.txt index e7c0c0513f5..3191a8aab5d 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/propertyAccessorsWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -80,3 +80,4 @@ FILE fqName: fileName:/propertyAccessorsWithAnnotations.kt BLOCK_BODY SET_FIELD 'test4: String' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : String' type=kotlin.String origin=null + diff --git a/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.txt index d2d2f5c8cb4..73ead3f6f8c 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/propertySetterParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:AnnParam flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:AnnParam flags: + CONSTRUCTOR visibility:public <> () returnType:AnnParam flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -36,7 +36,7 @@ FILE fqName: fileName:/propertySetterParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (p:kotlin.Int) returnType:C flags: + CONSTRUCTOR visibility:public <> (p:kotlin.Int) returnType:C flags:primary VALUE_PARAMETER name:p index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -73,3 +73,4 @@ FILE fqName: fileName:/propertySetterParameterWithAnnotations.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.txt index 066ad21abd3..2b24295f941 100644 --- a/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/receiverParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ann flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Ann flags: + CONSTRUCTOR visibility:public <> () returnType:Ann flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/receiverParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -70,3 +70,4 @@ FILE fqName: fileName:/receiverParameterWithAnnotations.kt BLOCK_BODY RETURN type=kotlin.Nothing from='() on String: String' CONST String type=kotlin.String value= + diff --git a/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.txt b/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.txt index b3ee7afe2f5..6d033c8cfb7 100644 --- a/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.txt +++ b/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/spreadOperatorInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:A flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:A flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String flags:vararg PROPERTY name:xs type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:public flags:final @@ -37,3 +37,4 @@ FILE fqName: fileName:/spreadOperatorInAnnotationArguments.kt VARARG type=Array varargElementType=String CONST String type=kotlin.String value=b BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.txt index dc4729a7897..0333a54ed65 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/typeAliasesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -36,3 +36,4 @@ FILE fqName: fileName:/typeAliasesWithAnnotations.kt annotations: CALL 'constructor TestAnn(String)' type=TestAnn origin=null x: CONST String type=kotlin.String value=TestTypeAlias + diff --git a/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.txt index d0ac4b3a328..e25b31d7062 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/typeParametersWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Anno flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Anno flags: + CONSTRUCTOR visibility:public <> () returnType:Anno flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -28,3 +28,4 @@ FILE fqName: fileName:/typeParametersWithAnnotations.kt superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.txt index 41d8ce33b78..b99bb6d7284 100644 --- a/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -38,7 +38,7 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClassConstructor1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestClassConstructor1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestClassConstructor1 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: annotations: CALL 'constructor TestAnn(String)' type=TestAnn origin=null @@ -69,3 +69,4 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.txt b/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.txt index f5bb1ad52c1..1f6c281e8bd 100644 --- a/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.txt +++ b/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:A1 flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:A1 flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int flags:vararg PROPERTY name:xs type:kotlin.IntArray visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.IntArray visibility:public flags:final @@ -32,7 +32,7 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:A2 flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:A2 flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String flags:vararg PROPERTY name:xs type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:public flags:final @@ -61,7 +61,7 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:AA flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:AA flags: + CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:AA flags:primary VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:A1 flags:vararg PROPERTY name:xs type:kotlin.Array visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:public flags:final @@ -119,3 +119,4 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt CALL 'constructor AA(vararg A1)' type=AA origin=null xs: VARARG type=Array varargElementType=A1 BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.txt b/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.txt index e16231eca53..9cf6cbfae30 100644 --- a/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/variablesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnn flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Annotation modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags: + CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:TestAnn flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.String flags: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public flags:final @@ -40,3 +40,4 @@ FILE fqName: fileName:/variablesWithAnnotations.kt CALL 'constructor TestAnn(String)' type=TestAnn origin=null x: CONST String type=kotlin.String value=foo/testVar CONST String type=kotlin.String value=testVar + diff --git a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt index b5d0a2311a3..c2697e6d50e 100644 --- a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt +++ b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt @@ -11,3 +11,4 @@ FILE fqName: fileName:/catchParameterInTopLevelProperty.kt BLOCK_BODY RETURN type=kotlin.Nothing from='(): Unit' GET_FIELD 'test: Unit' type=kotlin.Unit origin=null + diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.txt index bdf15a1491a..148dfbd6a80 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.txt index ddc1a6c5c98..b25eed0185f 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (map:kotlin.collections.MutableMap) returnType:C flags: + CONSTRUCTOR visibility:public <> (map:kotlin.collections.MutableMap) returnType:C flags:primary VALUE_PARAMETER name:map index:0 type:kotlin.collections.MutableMap flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/extensionProperties.txt b/compiler/testData/ir/irText/declarations/extensionProperties.txt index e6e62722dbf..81a9dedb65d 100644 --- a/compiler/testData/ir/irText/declarations/extensionProperties.txt +++ b/compiler/testData/ir/irText/declarations/extensionProperties.txt @@ -19,7 +19,7 @@ FILE fqName: fileName:/extensionProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/irText/declarations/fakeOverrides.txt b/compiler/testData/ir/irText/declarations/fakeOverrides.txt index cd96d644673..31eb1a55fbf 100644 --- a/compiler/testData/ir/irText/declarations/fakeOverrides.txt +++ b/compiler/testData/ir/irText/declarations/fakeOverrides.txt @@ -46,7 +46,7 @@ FILE fqName: fileName:/fakeOverrides.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:CFoo flags: + CONSTRUCTOR visibility:public <> () returnType:CFoo flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='CFoo' @@ -73,7 +73,7 @@ FILE fqName: fileName:/fakeOverrides.kt CLASS CLASS name:CFoo modality:ABSTRACT visibility:public flags: CLASS INTERFACE name:IFooStr modality:ABSTRACT visibility:public flags: CLASS INTERFACE name:IBar modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor CFoo()' : String diff --git a/compiler/testData/ir/irText/declarations/localClassWithOverrides.txt b/compiler/testData/ir/irText/declarations/localClassWithOverrides.txt index c77e72717bb..d6131d1df42 100644 --- a/compiler/testData/ir/irText/declarations/localClassWithOverrides.txt +++ b/compiler/testData/ir/irText/declarations/localClassWithOverrides.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:outer.ALocal flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:outer.ALocal flags: + CONSTRUCTOR visibility:public <> () returnType:outer.ALocal flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='ALocal' @@ -37,7 +37,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:outer.Local flags: superClasses: CLASS CLASS name:ALocal modality:ABSTRACT visibility:local flags: - CONSTRUCTOR visibility:public <> () returnType:outer.Local flags: + CONSTRUCTOR visibility:public <> () returnType:outer.Local flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor ALocal()' INSTANCE_INITIALIZER_CALL classDescriptor='Local' @@ -92,3 +92,4 @@ FILE fqName: fileName:/localClassWithOverrides.kt overridden: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt b/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt index d6985e264c4..1d111121713 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.txt index e472e35404b..f8c84751fec 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/expectClassInherited.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:protected <> () returnType:A flags: + CONSTRUCTOR visibility:protected <> () returnType:A flags:primary FUN name:foo visibility:public modality:ABSTRACT <> ($this:A) returnType:Unit flags: $this: VALUE_PARAMETER name: type:A flags: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -23,7 +23,7 @@ FILE fqName: fileName:/expectClassInherited.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS CLASS name:A modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:B flags: + CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:B flags:primary VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: FUN name:foo visibility:public modality:OPEN <> ($this:B) returnType:Unit flags: overridden: @@ -49,7 +49,7 @@ FILE fqName: fileName:/expectClassInherited.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:protected <> () returnType:A flags: + CONSTRUCTOR visibility:protected <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -72,7 +72,7 @@ FILE fqName: fileName:/expectClassInherited.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS CLASS name:A modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:B flags: + CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:B flags:primary VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor A()' diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.txt index 1d2b85ee88f..731d14ff2b7 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.txt @@ -54,7 +54,7 @@ FILE fqName: fileName:/expectedEnumClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:MyEnum flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:MyEnum flags: + CONSTRUCTOR visibility:private <> () returnType:MyEnum flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: MyEnum @@ -110,3 +110,4 @@ FILE fqName: fileName:/expectedEnumClass.kt FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:MyEnum flags: VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF + diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.txt index 601029c9b39..1b3eb117e36 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/expectedSealedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ops flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Ops flags: + CONSTRUCTOR visibility:private <> () returnType:Ops flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -21,7 +21,7 @@ FILE fqName: fileName:/expectedSealedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Add flags: superClasses: CLASS CLASS name:Ops modality:SEALED visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Add flags: + CONSTRUCTOR visibility:public <> () returnType:Add flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: @@ -39,7 +39,7 @@ FILE fqName: fileName:/expectedSealedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ops flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Ops flags: + CONSTRUCTOR visibility:private <> () returnType:Ops flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Ops' @@ -60,7 +60,7 @@ FILE fqName: fileName:/expectedSealedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Add flags: superClasses: CLASS CLASS name:Ops modality:SEALED visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Add flags: + CONSTRUCTOR visibility:public <> () returnType:Add flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Ops()' INSTANCE_INITIALIZER_CALL classDescriptor='Add' @@ -77,3 +77,4 @@ FILE fqName: fileName:/expectedSealedClass.kt overridden: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/parameters/class.txt b/compiler/testData/ir/irText/declarations/parameters/class.txt index 7ebf7f74c72..d029fee54ae 100644 --- a/compiler/testData/ir/irText/declarations/parameters/class.txt +++ b/compiler/testData/ir/irText/declarations/parameters/class.txt @@ -46,7 +46,7 @@ FILE fqName: fileName:/class.kt TYPE_PARAMETER name:T0 index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test flags: + CONSTRUCTOR visibility:public <> () returnType:Test flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' @@ -57,7 +57,7 @@ FILE fqName: fileName:/class.kt TYPE_PARAMETER name:T1 index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test.TestNested flags: + CONSTRUCTOR visibility:public <> () returnType:Test.TestNested flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestNested' @@ -81,7 +81,7 @@ FILE fqName: fileName:/class.kt TYPE_PARAMETER name:T2 index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Test) returnType:Test.TestInner flags: + CONSTRUCTOR visibility:public <> ($this:Test) returnType:Test.TestInner flags:primary $outer: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/parameters/constructor.txt b/compiler/testData/ir/irText/declarations/parameters/constructor.txt index eba84de6de4..b85d6fadd27 100644 --- a/compiler/testData/ir/irText/declarations/parameters/constructor.txt +++ b/compiler/testData/ir/irText/declarations/parameters/constructor.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/constructor.kt TYPE_PARAMETER name:T2 index:1 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:T1, y:T2) returnType:Test1 flags: + CONSTRUCTOR visibility:public <> (x:T1, y:T2) returnType:Test1 flags:primary VALUE_PARAMETER name:x index:0 type:T1 flags: VALUE_PARAMETER name:y index:1 type:T2 flags: BLOCK_BODY @@ -52,7 +52,7 @@ FILE fqName: fileName:/constructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String) returnType:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String) returnType:Test2 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.String flags: BLOCK_BODY @@ -75,7 +75,7 @@ FILE fqName: fileName:/constructor.kt TYPE_PARAMETER name:Z index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Test2, z:Z) returnType:Test2.TestInner flags: + CONSTRUCTOR visibility:public <> ($this:Test2, z:Z) returnType:Test2.TestInner flags:primary $outer: VALUE_PARAMETER name: type:Test2 flags: VALUE_PARAMETER name:z index:0 type:Z flags: BLOCK_BODY @@ -130,7 +130,7 @@ FILE fqName: fileName:/constructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String) returnType:Test3 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String) returnType:Test3 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.String flags: EXPRESSION_BODY @@ -178,7 +178,7 @@ FILE fqName: fileName:/constructor.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test4 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test4 flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt index dceb90e02b0..5fb3506b0ed 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/dataClassMembers.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:T, y:kotlin.String) returnType:Test flags: + CONSTRUCTOR visibility:public <> (x:T, y:kotlin.String) returnType:Test flags:primary VALUE_PARAMETER name:x index:0 type:T flags: VALUE_PARAMETER name:y index:1 type:kotlin.String flags: EXPRESSION_BODY diff --git a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt index 05150a4b26f..4bfb77e66e5 100644 --- a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt +++ b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt @@ -24,7 +24,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' @@ -75,7 +75,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (testInPrimaryCtor1:T, testInPrimaryCtor2:kotlin.Int) returnType:InPrimaryCtor flags: + CONSTRUCTOR visibility:public <> (testInPrimaryCtor1:T, testInPrimaryCtor2:kotlin.Int) returnType:InPrimaryCtor flags:primary VALUE_PARAMETER name:testInPrimaryCtor1 index:0 type:T flags: VALUE_PARAMETER name:testInPrimaryCtor2 index:1 type:kotlin.Int flags: EXPRESSION_BODY diff --git a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt index eab0f3f385b..a8e6063dce4 100644 --- a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt @@ -39,7 +39,7 @@ FILE fqName: fileName:/delegatedMembers.kt TYPE_PARAMETER name:TT index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (impl:IBase) returnType:Test flags: + CONSTRUCTOR visibility:public <> (impl:IBase) returnType:Test flags:primary VALUE_PARAMETER name:impl index:0 type:IBase flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/parameters/fun.txt b/compiler/testData/ir/irText/declarations/parameters/fun.txt index d6f80d53cce..999e463facf 100644 --- a/compiler/testData/ir/irText/declarations/parameters/fun.txt +++ b/compiler/testData/ir/irText/declarations/parameters/fun.txt @@ -26,7 +26,7 @@ FILE fqName: fileName:/fun.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt b/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt index 13a0641070f..e6846d08d79 100644 --- a/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt +++ b/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/genericInnerClass.kt TYPE_PARAMETER name:T1 index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -17,7 +17,7 @@ FILE fqName: fileName:/genericInnerClass.kt TYPE_PARAMETER name:T2 index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt index 0286ce8687e..50cdd347af7 100644 --- a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt +++ b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt @@ -60,7 +60,7 @@ FILE fqName: fileName:/propertyAccessors.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.txt b/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.txt index 6b24b647c4d..920399f3f9c 100644 --- a/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.txt +++ b/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/typeParameterBeforeBound.kt TYPE_PARAMETER name:U index:1 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' @@ -54,3 +54,4 @@ FILE fqName: fileName:/typeParameterBeforeBound.kt $receiver: VALUE_PARAMETER name: type:Test1 flags: VALUE_PARAMETER name:value index:0 type:kotlin.Unit flags: BLOCK_BODY + diff --git a/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.txt b/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.txt index 7c503ac3379..457ff96429b 100644 --- a/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.txt +++ b/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[Derived1] superClassifiers: CLASS CLASS name:Derived1 modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base1 flags: + CONSTRUCTOR visibility:public <> () returnType:Base1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base1' @@ -27,7 +27,7 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived1 flags: superClasses: CLASS CLASS name:Base1 modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Derived1 flags: + CONSTRUCTOR visibility:public <> () returnType:Derived1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base1()' : Derived1 @@ -49,7 +49,7 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Base2 flags: + CONSTRUCTOR visibility:public <> () returnType:Base2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base2' @@ -77,7 +77,7 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived2 flags: superClasses: CLASS CLASS name:Base2 modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Derived2 flags: + CONSTRUCTOR visibility:public <> () returnType:Derived2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base2()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived2' @@ -102,3 +102,4 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt overridden: FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt index 905537d645a..e6f45b2574b 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/primaryCtorDefaultArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt b/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt index 02946eb807d..0f3800b2ce4 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/primaryCtorProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (test1:kotlin.Int, test2:kotlin.Int) returnType:C flags: + CONSTRUCTOR visibility:public <> (test1:kotlin.Int, test2:kotlin.Int) returnType:C flags:primary VALUE_PARAMETER name:test1 index:0 type:kotlin.Int flags: VALUE_PARAMETER name:test2 index:1 type:kotlin.Int flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt index 311f4ca59d9..8f95a093a45 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/differentReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:MyClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:MyClass flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:MyClass flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/local.txt b/compiler/testData/ir/irText/declarations/provideDelegate/local.txt index 3247ddf010a..fde42ba294e 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/local.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/local.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/local.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Delegate flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -43,7 +43,7 @@ FILE fqName: fileName:/local.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:DelegateProvider flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt index 9619e7ac3d0..d1a818b3943 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:MyClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:MyClass flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:MyClass flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/member.txt b/compiler/testData/ir/irText/declarations/provideDelegate/member.txt index d8065877a54..2b16c893d4b 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/member.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/member.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/member.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Delegate flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -43,7 +43,7 @@ FILE fqName: fileName:/member.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:DelegateProvider flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -84,7 +84,7 @@ FILE fqName: fileName:/member.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt index b4147f4537d..c85c9ae908f 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/memberExtension.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Host flags: + CONSTRUCTOR visibility:private <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' @@ -11,7 +11,7 @@ FILE fqName: fileName:/memberExtension.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host.StringDelegate flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:Host.StringDelegate flags: + CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:Host.StringDelegate flags:primary VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt index 40cdc38e4ef..bfd7a073e38 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/topLevel.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Delegate flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -43,7 +43,7 @@ FILE fqName: fileName:/topLevel.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:DelegateProvider flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/declarations/typeAlias.txt b/compiler/testData/ir/irText/declarations/typeAlias.txt index 6cd1aac5136..8e67ebaea04 100644 --- a/compiler/testData/ir/irText/declarations/typeAlias.txt +++ b/compiler/testData/ir/irText/declarations/typeAlias.txt @@ -11,7 +11,7 @@ FILE fqName: fileName:/typeAlias.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' diff --git a/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt b/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt index 8d7667e19ab..86d9cd08e57 100644 --- a/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt +++ b/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/suppressedNonPublicCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt index d3e599b01f4..35ea59914a7 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:C flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.IntArray flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/expressions/assignments.txt b/compiler/testData/ir/irText/expressions/assignments.txt index 1a9f521ccd0..4d55569f7cf 100644 --- a/compiler/testData/ir/irText/expressions/assignments.txt +++ b/compiler/testData/ir/irText/expressions/assignments.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/assignments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ref flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Ref flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Ref flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt index c21c64693e3..d3b8f22da9f 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/augmentedAssignment2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt index a7143270170..8f02af83d4d 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/irText/expressions/boundCallableReferences.txt b/compiler/testData/ir/irText/expressions/boundCallableReferences.txt index 7833178d9b2..26ebb205d31 100644 --- a/compiler/testData/ir/irText/expressions/boundCallableReferences.txt +++ b/compiler/testData/ir/irText/expressions/boundCallableReferences.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/boundCallableReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt b/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt index 5ebbca31e35..90dd7e4a81d 100644 --- a/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt +++ b/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/callableRefToGenericMember.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt b/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt index 8c35e5d7778..6eb62a4d0e8 100644 --- a/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt @@ -3,7 +3,7 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Foo flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:test.Foo flags: + CONSTRUCTOR visibility:private <> () returnType:test.Foo flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Foo' diff --git a/compiler/testData/ir/irText/expressions/castToTypeParameter.txt b/compiler/testData/ir/irText/expressions/castToTypeParameter.txt index 455ecab697e..37fa1f06aee 100644 --- a/compiler/testData/ir/irText/expressions/castToTypeParameter.txt +++ b/compiler/testData/ir/irText/expressions/castToTypeParameter.txt @@ -37,7 +37,7 @@ FILE fqName: fileName:/castToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' @@ -113,3 +113,4 @@ FILE fqName: fileName:/castToTypeParameter.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt index 0091762b1e6..86583ec6bcb 100644 --- a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt +++ b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/chainOfSafeCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' diff --git a/compiler/testData/ir/irText/expressions/classReference.txt b/compiler/testData/ir/irText/expressions/classReference.txt index 701afca4181..e3a9a39f80e 100644 --- a/compiler/testData/ir/irText/expressions/classReference.txt +++ b/compiler/testData/ir/irText/expressions/classReference.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt index b1d9ea172d1..0681377d216 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:X1 flags: + CONSTRUCTOR visibility:private <> () returnType:X1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='X1' @@ -28,7 +28,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X1.X2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:X1.X2 flags: + CONSTRUCTOR visibility:private <> () returnType:X1.X2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='X2' @@ -53,7 +53,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X1.X2.X3 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:X1.X2.X3 flags: + CONSTRUCTOR visibility:private <> () returnType:X1.X2.X3 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='X3' @@ -189,7 +189,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (s:kotlin.Int) returnType:B flags: + CONSTRUCTOR visibility:public <> (s:kotlin.Int) returnType:B flags:primary VALUE_PARAMETER name:s index:0 type:kotlin.Int flags: EXPRESSION_BODY CONST Int type=kotlin.Int value=0 @@ -230,7 +230,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Host flags: + CONSTRUCTOR visibility:private <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/irText/expressions/contructorCall.txt b/compiler/testData/ir/irText/expressions/contructorCall.txt index 355a7273379..79c5972e71b 100644 --- a/compiler/testData/ir/irText/expressions/contructorCall.txt +++ b/compiler/testData/ir/irText/expressions/contructorCall.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/contructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/destructuring1.txt b/compiler/testData/ir/irText/expressions/destructuring1.txt index e886b55dc80..e8f267780d1 100644 --- a/compiler/testData/ir/irText/expressions/destructuring1.txt +++ b/compiler/testData/ir/irText/expressions/destructuring1.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -24,7 +24,7 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:B flags: + CONSTRUCTOR visibility:private <> () returnType:B flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' diff --git a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt index 8bf5ec12359..684eed95094 100644 --- a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt +++ b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -24,7 +24,7 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:B flags: + CONSTRUCTOR visibility:private <> () returnType:B flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt index 19b00f46524..4dff54cbccc 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:X flags: + CONSTRUCTOR visibility:private <> () returnType:X flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: X @@ -14,7 +14,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X.B flags: superClasses: CLASS ENUM_CLASS name:X modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:X.B flags: + CONSTRUCTOR visibility:private <> () returnType:X.B flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor X()' INSTANCE_INITIALIZER_CALL classDescriptor='B' diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.txt index 6d3557486cd..bb8d1b895cd 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.txt @@ -156,7 +156,7 @@ FILE fqName: fileName:/typeParameterWithPrimitiveNumericSupertype.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Float] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Float modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:F flags: + CONSTRUCTOR visibility:public <> () returnType:F flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='F' diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt index 96d505de553..43c357a10ab 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:FiveTimes flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:FiveTimes flags: + CONSTRUCTOR visibility:private <> () returnType:FiveTimes flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='FiveTimes' @@ -24,7 +24,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IntCell flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IntCell flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IntCell flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/expressions/funImportedFromObject.txt b/compiler/testData/ir/irText/expressions/funImportedFromObject.txt index be5bbd45eee..11c4a48244d 100644 --- a/compiler/testData/ir/irText/expressions/funImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/funImportedFromObject.txt @@ -3,7 +3,7 @@ FILE fqName:test fileName:/funImportedFromObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:test.Host flags: + CONSTRUCTOR visibility:private <> () returnType:test.Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' @@ -34,3 +34,4 @@ FILE fqName:test fileName:/funImportedFromObject.kt CALL 'foo(): String' type=kotlin.String origin=null : Any $this: GET_OBJECT 'Host' type=test.Host + diff --git a/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.txt b/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.txt index cf7f1bea7c2..6a90d88dc41 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.txt @@ -63,7 +63,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Bar flags: + CONSTRUCTOR visibility:public <> () returnType:Bar flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Bar' @@ -98,3 +98,4 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt index 1b60d98560e..85be39fb40c 100644 --- a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt +++ b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Derived flags: + CONSTRUCTOR visibility:public <> () returnType:Derived flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived' diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt index f09e6f99f49..97d5338ff29 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt @@ -28,7 +28,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:TestClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestClass' diff --git a/compiler/testData/ir/irText/expressions/kt16904.txt b/compiler/testData/ir/irText/expressions/kt16904.txt index 008d511ec0c..a441eeeda0d 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -51,7 +51,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:B flags: + CONSTRUCTOR visibility:public <> () returnType:B flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' @@ -128,7 +128,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:J modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test2 flags: + CONSTRUCTOR visibility:public <> () returnType:Test2 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor J()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' diff --git a/compiler/testData/ir/irText/expressions/kt16905.txt b/compiler/testData/ir/irText/expressions/kt16905.txt index ceb0720d93e..20d2d852dcf 100644 --- a/compiler/testData/ir/irText/expressions/kt16905.txt +++ b/compiler/testData/ir/irText/expressions/kt16905.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt16905.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -11,7 +11,7 @@ FILE fqName: fileName:/kt16905.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -33,7 +33,7 @@ FILE fqName: fileName:/kt16905.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.InnerDerived0 flags: superClasses: CLASS CLASS name:Inner modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.InnerDerived0 flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.InnerDerived0 flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' @@ -56,7 +56,7 @@ FILE fqName: fileName:/kt16905.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.InnerDerived1 flags: superClasses: CLASS CLASS name:Inner modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.InnerDerived1 flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.InnerDerived1 flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' diff --git a/compiler/testData/ir/irText/expressions/kt23030.txt b/compiler/testData/ir/irText/expressions/kt23030.txt index dbc07fd9f47..84ba3a69e6a 100644 --- a/compiler/testData/ir/irText/expressions/kt23030.txt +++ b/compiler/testData/ir/irText/expressions/kt23030.txt @@ -73,7 +73,7 @@ FILE fqName: fileName:/kt23030.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' @@ -141,3 +141,4 @@ FILE fqName: fileName:/kt23030.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/expressions/memberTypeArguments.txt b/compiler/testData/ir/irText/expressions/memberTypeArguments.txt index 76dc0c18bf9..c034515f791 100644 --- a/compiler/testData/ir/irText/expressions/memberTypeArguments.txt +++ b/compiler/testData/ir/irText/expressions/memberTypeArguments.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/memberTypeArguments.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:T) returnType:GenericClass flags: + CONSTRUCTOR visibility:public <> (value:T) returnType:GenericClass flags:primary VALUE_PARAMETER name:value index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -42,3 +42,4 @@ FILE fqName: fileName:/memberTypeArguments.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt b/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt index 533569db403..1655d508219 100644 --- a/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/multipleThisReferences.txt b/compiler/testData/ir/irText/expressions/multipleThisReferences.txt index 1aeb5b15605..8570ca4f793 100644 --- a/compiler/testData/ir/irText/expressions/multipleThisReferences.txt +++ b/compiler/testData/ir/irText/expressions/multipleThisReferences.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -11,7 +11,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer, x:kotlin.Int) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer, x:kotlin.Int) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY @@ -57,7 +57,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (y:kotlin.Int) returnType:Host flags: + CONSTRUCTOR visibility:public <> (y:kotlin.Int) returnType:Host flags:primary VALUE_PARAMETER name:y index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -82,7 +82,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host.test. flags: superClasses: CLASS CLASS name:Inner modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host.test. flags: + CONSTRUCTOR visibility:public <> () returnType:Host.test. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner(Int)' $this: GET_VAR 'this@test: Outer' type=Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.txt b/compiler/testData/ir/irText/expressions/objectAsCallable.txt index 0ecc3820da4..5b27afb9a80 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.txt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -24,7 +24,7 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:En flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:En flags: + CONSTRUCTOR visibility:private <> () returnType:En flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: En diff --git a/compiler/testData/ir/irText/expressions/objectClassReference.txt b/compiler/testData/ir/irText/expressions/objectClassReference.txt index 55286c730a8..d2f7cacf18f 100644 --- a/compiler/testData/ir/irText/expressions/objectClassReference.txt +++ b/compiler/testData/ir/irText/expressions/objectClassReference.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/objectClassReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt index 8f4d0350a90..86a6634d680 100644 --- a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt +++ b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' @@ -14,7 +14,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt index 45c3d40f1b6..5d8376a3e1f 100644 --- a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt +++ b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt @@ -93,7 +93,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestImplicitArguments flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Long) returnType:TestImplicitArguments flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Long) returnType:TestImplicitArguments flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Long flags: EXPRESSION_BODY TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long diff --git a/compiler/testData/ir/irText/expressions/reflectionLiterals.txt b/compiler/testData/ir/irText/expressions/reflectionLiterals.txt index 72f3bf600a4..92d36af8855 100644 --- a/compiler/testData/ir/irText/expressions/reflectionLiterals.txt +++ b/compiler/testData/ir/irText/expressions/reflectionLiterals.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/reflectionLiterals.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.txt b/compiler/testData/ir/irText/expressions/safeAssignment.txt index 35be3e2414e..1926fb2dc65 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/safeAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:C flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt index b1c4d395009..7514eec3eec 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt @@ -3,7 +3,7 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.C flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:test.C flags: + CONSTRUCTOR visibility:public <> () returnType:test.C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' diff --git a/compiler/testData/ir/irText/expressions/safeCalls.txt b/compiler/testData/ir/irText/expressions/safeCalls.txt index 0cbd8ee3ad8..73bfe65a2bd 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/safeCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ref flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:Ref flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:Ref flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt index d921d274aa5..6d18d727e71 100644 --- a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt +++ b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Base modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Derived flags: + CONSTRUCTOR visibility:public <> () returnType:Derived flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived' diff --git a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.txt b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.txt index 7454d5d1f7d..7cafbdde81d 100644 --- a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.txt +++ b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (value:T) returnType:Cell flags: + CONSTRUCTOR visibility:public <> (value:T) returnType:Cell flags:primary VALUE_PARAMETER name:value index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -41,3 +41,4 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt CALL 'constructor Cell(Int)' type=Cell origin=null : Int value: CONST Int type=kotlin.Int value=42 + diff --git a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt index 62025866417..f4a53a1d158 100644 --- a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt +++ b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:T) returnType:Outer flags: + CONSTRUCTOR visibility:public <> (x:T) returnType:Outer flags:primary VALUE_PARAMETER name:x index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @@ -25,7 +25,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> ($this:Outer, y:kotlin.Int) returnType:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer, y:kotlin.Int) returnType:Outer.Inner flags:primary $outer: VALUE_PARAMETER name: type:Outer flags: VALUE_PARAMETER name:y index:0 type:kotlin.Int flags: BLOCK_BODY @@ -76,7 +76,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test. flags: superClasses: CLASS CLASS name:Inner modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:test. flags: + CONSTRUCTOR visibility:public <> () returnType:test. flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner(Int)' $this: GET_VAR 'this@test: Outer' type=Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.txt b/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.txt index 9143c7c7fc2..c1617576633 100644 --- a/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.txt +++ b/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/typeParameterClassLiteral.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' @@ -71,3 +71,4 @@ FILE fqName: fileName:/typeParameterClassLiteral.kt overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/expressions/useImportedMember.txt b/compiler/testData/ir/irText/expressions/useImportedMember.txt index 0678475e3af..fba6d0f9dcf 100644 --- a/compiler/testData/ir/irText/expressions/useImportedMember.txt +++ b/compiler/testData/ir/irText/expressions/useImportedMember.txt @@ -38,7 +38,7 @@ FILE fqName: fileName:/useImportedMember.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:BaseClass flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:BaseClass flags: + CONSTRUCTOR visibility:public <> () returnType:BaseClass flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='BaseClass' @@ -70,7 +70,7 @@ FILE fqName: fileName:/useImportedMember.kt superClasses: CLASS CLASS name:BaseClass modality:OPEN visibility:public flags: CLASS INTERFACE name:I modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:C flags: + CONSTRUCTOR visibility:private <> () returnType:C flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor BaseClass()' INSTANCE_INITIALIZER_CALL classDescriptor='C' @@ -289,3 +289,4 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value=11 RETURN type=kotlin.Nothing from='box(): String' CONST String type=kotlin.String value=OK + diff --git a/compiler/testData/ir/irText/expressions/values.txt b/compiler/testData/ir/irText/expressions/values.txt index 92e2afd1c18..2a01fc10fbe 100644 --- a/compiler/testData/ir/irText/expressions/values.txt +++ b/compiler/testData/ir/irText/expressions/values.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Enum flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Enum flags: + CONSTRUCTOR visibility:private <> () returnType:Enum flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: Enum @@ -59,7 +59,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -88,7 +88,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Z flags: + CONSTRUCTOR visibility:public <> () returnType:Z flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Z' @@ -96,7 +96,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.Companion flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Z.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:Z.Companion flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Z' diff --git a/compiler/testData/ir/irText/expressions/when.txt b/compiler/testData/ir/irText/expressions/when.txt index d89e3a8d880..be8b1b07134 100644 --- a/compiler/testData/ir/irText/expressions/when.txt +++ b/compiler/testData/ir/irText/expressions/when.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/when.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt index 94a7b699462..11bb015aae2 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/destructuringInLambda.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:A flags:primary VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt index f1c1ae0b655..b8fb7332e70 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' @@ -24,7 +24,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:B flags: + CONSTRUCTOR visibility:private <> () returnType:B flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.txt index befa71d5467..40ed13e92b7 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.txt @@ -37,3 +37,4 @@ FILE fqName: fileName:/coercionInLoop.kt GET_VAR 'tmp0: Int' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='box(): String' CONST String type=kotlin.String value=OK + diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.txt index b579b446c7c..ff6842e890e 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/integerCoercionToT.kt TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:CInt32VarX flags: + CONSTRUCTOR visibility:public <> () returnType:CInt32VarX flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='CInt32VarX' @@ -69,7 +69,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IdType flags: superClasses: CLASS INTERFACE name:CPointed modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IdType flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IdType flags:primary VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt index 44c88c9e2bb..12aef7bd19e 100644 --- a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt +++ b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt TYPE_PARAMETER name:Q index:0 variance: upperBounds:[kotlin.Any?] superClassifiers: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> (q:Q) returnType:A flags: + CONSTRUCTOR visibility:public <> (q:Q) returnType:A flags:primary VALUE_PARAMETER name:q index:0 type:Q flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' diff --git a/compiler/testData/ir/irText/singletons/companion.txt b/compiler/testData/ir/irText/singletons/companion.txt index 1d65f3b27b3..a630c0ca5e6 100644 --- a/compiler/testData/ir/irText/singletons/companion.txt +++ b/compiler/testData/ir/irText/singletons/companion.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/companion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Z flags: + CONSTRUCTOR visibility:public <> () returnType:Z flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Z' @@ -16,7 +16,7 @@ FILE fqName: fileName:/companion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.Companion flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Z.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:Z.Companion flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Z' diff --git a/compiler/testData/ir/irText/singletons/enumEntry.txt b/compiler/testData/ir/irText/singletons/enumEntry.txt index 0382212e55f..49ba8515375 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.txt +++ b/compiler/testData/ir/irText/singletons/enumEntry.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Enum modality:ABSTRACT visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Z flags: + CONSTRUCTOR visibility:private <> () returnType:Z flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: Z @@ -14,7 +14,7 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.ENTRY flags: superClasses: CLASS ENUM_CLASS name:Z modality:FINAL visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Z.ENTRY flags: + CONSTRUCTOR visibility:private <> () returnType:Z.ENTRY flags:primary BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Z()' INSTANCE_INITIALIZER_CALL classDescriptor='ENTRY' @@ -25,7 +25,7 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.ENTRY.A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Z.ENTRY.A flags: + CONSTRUCTOR visibility:public <> () returnType:Z.ENTRY.A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/singletons/object.txt b/compiler/testData/ir/irText/singletons/object.txt index ceb2b338497..9ba04f3f78c 100644 --- a/compiler/testData/ir/irText/singletons/object.txt +++ b/compiler/testData/ir/irText/singletons/object.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/object.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:private <> () returnType:Z flags: + CONSTRUCTOR visibility:private <> () returnType:Z flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Z' @@ -14,7 +14,7 @@ FILE fqName: fileName:/object.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.A flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Z.A flags: + CONSTRUCTOR visibility:public <> () returnType:Z.A flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' diff --git a/compiler/testData/ir/irText/stubs/builtinMap.txt b/compiler/testData/ir/irText/stubs/builtinMap.txt index 8371edb9e7c..5c7823a1c05 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.txt @@ -40,3 +40,4 @@ FILE fqName: fileName:/builtinMap.kt value: CALL '(): V1' type=V1 origin=GET_PROPERTY $this: GET_VAR 'value-parameter pair: Pair' type=kotlin.Pair origin=null FUNCTION_REFERENCE '() on LinkedHashMap /* = LinkedHashMap */: Unit' type=kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */.() -> kotlin.Unit origin=LAMBDA + diff --git a/compiler/testData/ir/irText/stubs/builtinMap__builtinsmodule.txt b/compiler/testData/ir/irText/stubs/builtinMap__builtinsmodule.txt index aeb343430de..4320fb6d65a 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap__builtinsmodule.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap__builtinsmodule.txt @@ -2,7 +2,7 @@ MODULE_FRAGMENT name: EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Any flags: - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:primary FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Any flags: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: @@ -14,7 +14,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Unit flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Unit flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Unit flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt b/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt index df77dae1e74..c17b01a259a 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt @@ -2794,7 +2794,7 @@ MODULE_FRAGMENT name: UNBOUND: interface Serializable TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:A index:0 variance:out upperBounds:[kotlin.Any?] TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:B index:1 variance:out upperBounds:[kotlin.Any?] - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (first:A, second:B) returnType:kotlin.Pair flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (first:A, second:B) returnType:kotlin.Pair flags:primary VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:first index:0 type:A flags: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:second index:1 type:B flags: FUN IR_EXTERNAL_DECLARATION_STUB name:copy visibility:public modality:FINAL <> ($this:kotlin.Pair, first:A, second:B) returnType:Pair flags: diff --git a/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt b/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt index f61aba476fa..53b4e5d9d6f 100644 --- a/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt @@ -4,7 +4,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:JEnum flags: superClasses: UNBOUND: class Enum> : kotlin.Comparable, java.io.Serializable - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:JEnum flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:JEnum flags:primary ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:ONE ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:THREE ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:TWO diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass.txt b/compiler/testData/ir/irText/stubs/javaInnerClass.txt index addb83c869b..dacab94b4b2 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/javaInnerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:J modality:OPEN visibility:public flags: - CONSTRUCTOR visibility:public <> () returnType:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor J()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass__builtinsmodule.txt b/compiler/testData/ir/irText/stubs/javaInnerClass__builtinsmodule.txt index eda1708050e..09a73c4fabb 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass__builtinsmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass__builtinsmodule.txt @@ -2,7 +2,7 @@ MODULE_FRAGMENT name: EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Any flags: - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:primary FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Any flags: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt b/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt index 713c7c77c30..c8c90dbb7b5 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt @@ -4,7 +4,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags:primary PROPERTY IR_EXTERNAL_DECLARATION_STUB name:x type:kotlin.Int visibility:public modality:FINAL flags:var FIELD IR_EXTERNAL_DECLARATION_STUB name:x type:kotlin.Int visibility:public flags:final FUN IR_EXTERNAL_DECLARATION_STUB name:bar visibility:public modality:OPEN <> ($this:J) returnType:Unit flags: @@ -13,7 +13,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J.JInner flags: superClasses: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> ($this:J) returnType:J.JInner flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> ($this:J) returnType:J.JInner flags:primary $outer: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J flags: PROPERTY IR_EXTERNAL_DECLARATION_STUB name:z type:kotlin.Int visibility:public modality:FINAL flags:var FIELD IR_EXTERNAL_DECLARATION_STUB name:z type:kotlin.Int visibility:public flags:final diff --git a/compiler/testData/ir/irText/stubs/javaMethod.txt b/compiler/testData/ir/irText/stubs/javaMethod.txt index a1c3973250f..cc5fe15229e 100644 --- a/compiler/testData/ir/irText/stubs/javaMethod.txt +++ b/compiler/testData/ir/irText/stubs/javaMethod.txt @@ -5,3 +5,4 @@ FILE fqName: fileName:/javaMethod.kt RETURN type=kotlin.Nothing from='test(J): Unit' CALL 'bar(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter j: J' type=J origin=null + diff --git a/compiler/testData/ir/irText/stubs/javaMethod__testmodule.txt b/compiler/testData/ir/irText/stubs/javaMethod__testmodule.txt index 253e7d83875..d66d2a671d6 100644 --- a/compiler/testData/ir/irText/stubs/javaMethod__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaMethod__testmodule.txt @@ -4,7 +4,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J flags: superClasses: UNBOUND: class Any - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags:primary FUN IR_EXTERNAL_DECLARATION_STUB name:bar visibility:public modality:OPEN <> ($this:J) returnType:Unit flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J flags: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt b/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt index 3eeb4290243..a92f3ed8db2 100644 --- a/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt @@ -4,12 +4,12 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J flags: superClasses: UNBOUND: class Any - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags:primary CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:JJ modality:OPEN visibility:public flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J.JJ flags: superClasses: UNBOUND: class Any - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J.JJ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J.JJ flags:primary FUN IR_EXTERNAL_DECLARATION_STUB name:foo visibility:public modality:OPEN <> ($this:J.JJ) returnType:Unit flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J.JJ flags: FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: diff --git a/compiler/testData/ir/irText/stubs/javaStaticMethod.txt b/compiler/testData/ir/irText/stubs/javaStaticMethod.txt index 24d0f9bfaf6..26ffec75458 100644 --- a/compiler/testData/ir/irText/stubs/javaStaticMethod.txt +++ b/compiler/testData/ir/irText/stubs/javaStaticMethod.txt @@ -3,3 +3,4 @@ FILE fqName: fileName:/javaStaticMethod.kt BLOCK_BODY RETURN type=kotlin.Nothing from='test(): Unit' CALL 'bar(): Unit' type=kotlin.Unit origin=null + diff --git a/compiler/testData/ir/irText/stubs/javaStaticMethod__testmodule.txt b/compiler/testData/ir/irText/stubs/javaStaticMethod__testmodule.txt index ecd02cb2988..57fb1205113 100644 --- a/compiler/testData/ir/irText/stubs/javaStaticMethod__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaStaticMethod__testmodule.txt @@ -4,7 +4,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:J flags: superClasses: UNBOUND: class Any - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags:primary FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: overridden: UNBOUND: operator fun equals(other: kotlin.Any?): kotlin.Boolean diff --git a/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt b/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt index eda1708050e..09a73c4fabb 100644 --- a/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt +++ b/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt @@ -2,7 +2,7 @@ MODULE_FRAGMENT name: EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Any flags: - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:primary FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Any flags: FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: diff --git a/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt b/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt index 126aca1be4e..35c3be67f7c 100644 --- a/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt +++ b/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt @@ -6,7 +6,7 @@ MODULE_FRAGMENT name: UNBOUND: class Number : kotlin.Any, java.io.Serializable UNBOUND: interface Comparable UNBOUND: interface Serializable - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Int flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Int flags:primary FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> ($this:kotlin.Int, other:kotlin.Byte) returnType:Int flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Int flags: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: @@ -47,7 +47,7 @@ MODULE_FRAGMENT name: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Int.Companion flags: superClasses: UNBOUND: class Any - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Int.Companion flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Int.Companion flags:primary PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MAX_VALUE type:kotlin.Int visibility:public modality:FINAL flags:const,val FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> ($this:kotlin.Int.Companion) returnType:Int flags: $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name: type:kotlin.Int.Companion flags: diff --git a/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt b/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt index e5ab1b25090..760d90f5ab6 100644 --- a/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt +++ b/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt @@ -1,7 +1,7 @@ @0:0..23:0 FILE fqName:test fileName:/augmentedAssignmentWithExpression.kt @2:0..8:1 CLASS CLASS name:Host modality:FINAL visibility:public flags: @2:0..8:1 VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Host flags: - @2:0..8:1 CONSTRUCTOR visibility:public <> () returnType:test.Host flags: + @2:0..8:1 CONSTRUCTOR visibility:public <> () returnType:test.Host flags:primary @2:0..8:1 BLOCK_BODY @2:0..8:1 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @2:0..8:1 INSTANCE_INITIALIZER_CALL classDescriptor='Host' diff --git a/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt b/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt index a5a8e807591..480b0a649b7 100644 --- a/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt +++ b/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt @@ -1,7 +1,7 @@ @0:0..4:1 FILE fqName: fileName:/synthesizedDataClassMembers.kt @0:0..4:1 CLASS CLASS name:C modality:FINAL visibility:public flags:data @0:0..4:1 VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: - @0:0..4:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:C flags: + @0:0..4:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:C flags:primary @1:8..18 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: @2:8..21 VALUE_PARAMETER name:y index:1 type:kotlin.String flags: @3:8..18 VALUE_PARAMETER name:z index:2 type:kotlin.Any flags: