diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt index eda5f379658..445fb2fff9b 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt @@ -561,6 +561,11 @@ internal fun FirReference.statementOrigin(): IrStatementOrigin? = when (this) { source?.kind is KtFakeSourceElementKind.DesugaredArrayAugmentedAssign -> augmentedArrayAssignSourceKindToIrStatementOrigin[source?.kind] + source?.kind is KtFakeSourceElementKind.ArrayAccessNameReference -> when (name) { + OperatorNameConventions.GET -> IrStatementOrigin.GET_ARRAY_ELEMENT + else -> null + } + else -> null } diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt index bf38f63c136..9f231c00f93 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt @@ -181,7 +181,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt $receiver: GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null - i: CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null + i: CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=GET_ARRAY_ELEMENT $receiver: BLOCK type=.MyContainer origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.MyContainer [val] GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=POSTFIX_INCR diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt index 822b133f85d..858fc573665 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt @@ -170,7 +170,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] - CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? declared in ' type=kotlin.String? origin=null + CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? declared in ' type=kotlin.String? origin=GET_ARRAY_ELEMENT $receiver: GET_VAR 'val myContainer: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt b/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt deleted file mode 100644 index ba88d295a46..00000000000 --- a/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -FILE fqName: fileName:/arrayAccess.kt - PROPERTY name:p visibility:public modality:FINAL [val] - FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final,static] - EXPRESSION_BODY - CONST Int type=kotlin.Int value=0 - FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int - correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [val] - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final,static]' type=kotlin.Int origin=null - FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Int - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Int declared in ' - CONST Int type=kotlin.Int value=1 - FUN name:test visibility:public modality:FINAL <> (a:kotlin.IntArray) returnType:kotlin.Int - VALUE_PARAMETER name:a index:0 type:kotlin.IntArray - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test (a: kotlin.IntArray): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null - index: CONST Int type=kotlin.Int value=0 - other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null - index: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY - other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null - index: CALL 'public final fun foo (): kotlin.Int declared in ' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.fir.kt.txt b/compiler/testData/ir/irText/expressions/arrayAccess.fir.kt.txt deleted file mode 100644 index e33ba09ae54..00000000000 --- a/compiler/testData/ir/irText/expressions/arrayAccess.fir.kt.txt +++ /dev/null @@ -1,11 +0,0 @@ -val p: Int - field = 0 - get - -fun foo(): Int { - return 1 -} - -fun test(a: IntArray): Int { - return a.get(index = 0).plus(other = a.get(index = ())).plus(other = a.get(index = foo())) -} diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.kt b/compiler/testData/ir/irText/expressions/arrayAccess.kt index 02d3653c2d7..285036192ec 100644 --- a/compiler/testData/ir/irText/expressions/arrayAccess.kt +++ b/compiler/testData/ir/irText/expressions/arrayAccess.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL val p = 0 fun foo() = 1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt index eb728be8e30..055cb92126e 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt @@ -37,7 +37,7 @@ FILE fqName: fileName:/withVarargViewedAsArray.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): kotlin.Int declared in .nsum' CALL 'public abstract fun toInt (): kotlin.Int declared in kotlin.Number' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Number origin=null + $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Number origin=GET_ARRAY_ELEMENT $this: GET_VAR 'args: kotlin.Array declared in .nsum' type=kotlin.Array origin=null index: GET_VAR 'it: kotlin.Int declared in .nsum.' type=kotlin.Int origin=null FUN name:zap visibility:public modality:FINAL <> (b:kotlin.Array, k:kotlin.Int) returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt b/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt index 5ecc2a5263d..e64aa396205 100644 --- a/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt @@ -23,7 +23,7 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public open fun get (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=null + CALL 'public open fun get (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=GET_ARRAY_ELEMENT $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=example.Hello origin=SAM_CONVERSION typeOperand=example.Hello FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.Nothing?, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt b/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt index c4cee807bf8..452e718f93b 100644 --- a/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/samOperators.kt FUN name:test1 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=GET_ARRAY_ELEMENT $this: GET_VAR ': .J declared in .test1' type=.J origin=null k: TYPE_OP type=java.lang.Runnable origin=SAM_CONVERSION typeOperand=java.lang.Runnable FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=GET_ARRAY_ELEMENT $this: GET_VAR ': .J declared in .test1' type=.J origin=null k: TYPE_OP type=java.lang.Runnable origin=SAM_CONVERSION typeOperand=java.lang.Runnable FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt index 0d11cb8099f..20127125475 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt @@ -458,7 +458,7 @@ FILE fqName: fileName:/ArrayMap.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null @@ -563,7 +563,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=GET_PROPERTY @@ -589,7 +589,7 @@ FILE fqName: fileName:/ArrayMap.kt CALL 'protected final fun setNext (value: T of .ArrayMapImpl): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null value: TYPE_OP type=T of .ArrayMapImpl origin=CAST typeOperand=T of .ArrayMapImpl - CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null + CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=GET_PROPERTY @@ -633,7 +633,7 @@ FILE fqName: fileName:/ArrayMap.kt BRANCH if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt index f029c183dcf..f0a9867e6ad 100644 --- a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt @@ -153,7 +153,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt BLOCK type=kotlin.collections.Collection<.ComponentDescriptor> origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.collections.Collection<.ComponentDescriptor>? [val] TYPE_OP type=kotlin.collections.Collection<.ComponentDescriptor>? origin=SAFE_CAST typeOperand=kotlin.collections.Collection<.ComponentDescriptor> - CALL 'public open fun get (p0: @[EnhancedNullability] K of java.util.HashMap): V of java.util.HashMap? declared in java.util.HashMap' type=kotlin.Any? origin=null + CALL 'public open fun get (p0: @[EnhancedNullability] K of java.util.HashMap): V of java.util.HashMap? declared in java.util.HashMap' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): java.util.HashMap declared in ' type=java.util.HashMap origin=GET_PROPERTY p0: CALL 'public final fun (): java.lang.Class.PlatformExtensionsClashResolver> declared in .PlatformExtensionsClashResolver' type=java.lang.Class.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> origin=GET_PROPERTY $this: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null diff --git a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt index b38ebfe3e7a..fe05339c17e 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt @@ -241,7 +241,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null other: BLOCK type=kotlin.String? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.ImplicitReceiverValue<*>? [val] - CALL 'public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' type=.ImplicitReceiverValue<*>? origin=null + CALL 'public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' type=.ImplicitReceiverValue<*>? origin=GET_ARRAY_ELEMENT $this: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null name: CONST Null type=kotlin.Nothing? value=null WHEN type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt index 76871444f01..e58e1ecb8f8 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt @@ -35,7 +35,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt VALUE_PARAMETER name:javaName index:0 type:kotlin.String BLOCK_BODY VAR name:result type:.Flaf? [var] - CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=null + CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null @@ -46,7 +46,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Unit origin=null SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ - CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=null + CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: STRING_CONCATENATION type=kotlin.String diff --git a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt index 453ad88055d..0bec149c4d9 100644 --- a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt @@ -41,7 +41,7 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt : kotlin.String $receiver: CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:String modality:FINAL visibility:public superTypes:[kotlin.Comparable; kotlin.CharSequence; java.io.Serializable]' type=kotlin.reflect.KClass VAR name:parameter type:@[FlexibleNullability] java.lang.reflect.Parameter? [val] - CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null + CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=GET_ARRAY_ELEMENT $this: CALL 'public open fun getParameters (): @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array? declared in java.lang.reflect.Method' type=@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'val method: @[FlexibleNullability] java.lang.reflect.Method? declared in .box' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null index: CONST Int type=kotlin.Int value=0