[IR] Render different quotes depending on IR constant type
This is needed for ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT diagnostic message, but also seems to be good improvement for IR dumps in tests. ^KT-62559
This commit is contained in:
committed by
Space Team
parent
8f6b6e17be
commit
5cf33c3556
@@ -659,17 +659,17 @@ FILE fqName:<root> fileName:/ArrayMap.kt
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.ArrayMapImpl<T of <root>.ArrayMapImpl>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun entries (): kotlin.collections.List<<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>> declared in <root>.ArrayMapImpl'
|
||||
CALL 'public final fun mapIndexedNotNull <T, R> (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.mapIndexedNotNull, R of kotlin.collections.mapIndexedNotNull?>): kotlin.collections.List<R of kotlin.collections.mapIndexedNotNull> declared in kotlin.collections' type=kotlin.collections.List<<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>> origin=null
|
||||
CALL 'public final fun mapIndexedNotNull <T, R> (transform: kotlin.Function2<@[ParameterName(name = "index")] kotlin.Int, T of kotlin.collections.mapIndexedNotNull, R of kotlin.collections.mapIndexedNotNull?>): kotlin.collections.List<R of kotlin.collections.mapIndexedNotNull> declared in kotlin.collections' type=kotlin.collections.List<<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>> origin=null
|
||||
<T>: kotlin.Any?
|
||||
<R>: <root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>
|
||||
$receiver: CALL 'private final fun <get-data> (): kotlin.Array<kotlin.Any?> declared in <root>.ArrayMapImpl' type=kotlin.Array<kotlin.Any?> origin=GET_PROPERTY
|
||||
$this: GET_VAR '<this>: <root>.ArrayMapImpl<T of <root>.ArrayMapImpl> declared in <root>.ArrayMapImpl.entries' type=<root>.ArrayMapImpl<T of <root>.ArrayMapImpl> origin=null
|
||||
transform: FUN_EXPR type=kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, kotlin.Any?, <root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>?> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> (index:@[ParameterName(name = 'index')] kotlin.Int, value:kotlin.Any?) returnType:<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>?
|
||||
VALUE_PARAMETER name:index index:0 type:@[ParameterName(name = 'index')] kotlin.Int
|
||||
transform: FUN_EXPR type=kotlin.Function2<@[ParameterName(name = "index")] kotlin.Int, kotlin.Any?, <root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>?> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> (index:@[ParameterName(name = "index")] kotlin.Int, value:kotlin.Any?) returnType:<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>?
|
||||
VALUE_PARAMETER name:index index:0 type:@[ParameterName(name = "index")] kotlin.Int
|
||||
VALUE_PARAMETER name:value index:1 type:kotlin.Any?
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (index: @[ParameterName(name = 'index')] kotlin.Int, value: kotlin.Any?): <root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>? declared in <root>.ArrayMapImpl.entries'
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (index: @[ParameterName(name = "index")] kotlin.Int, value: kotlin.Any?): <root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>? declared in <root>.ArrayMapImpl.entries'
|
||||
WHEN type=<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl>? origin=IF
|
||||
BRANCH
|
||||
if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
|
||||
@@ -678,7 +678,7 @@ FILE fqName:<root> fileName:/ArrayMap.kt
|
||||
arg1: CONST Null type=kotlin.Nothing? value=null
|
||||
then: CONSTRUCTOR_CALL 'public constructor <init> (key: kotlin.Int, value: T of <root>.ArrayMapImpl.Entry) declared in <root>.ArrayMapImpl.Entry' type=<root>.ArrayMapImpl.Entry<T of <root>.ArrayMapImpl> origin=null
|
||||
<class: T>: T of <root>.ArrayMapImpl
|
||||
key: GET_VAR 'index: @[ParameterName(name = 'index')] kotlin.Int declared in <root>.ArrayMapImpl.entries.<anonymous>' type=@[ParameterName(name = 'index')] kotlin.Int origin=null
|
||||
key: GET_VAR 'index: @[ParameterName(name = "index")] kotlin.Int declared in <root>.ArrayMapImpl.entries.<anonymous>' type=@[ParameterName(name = "index")] kotlin.Int origin=null
|
||||
value: TYPE_OP type=T of <root>.ArrayMapImpl origin=CAST typeOperand=T of <root>.ArrayMapImpl
|
||||
GET_VAR 'value: kotlin.Any? declared in <root>.ArrayMapImpl.entries.<anonymous>' type=kotlin.Any? origin=null
|
||||
BRANCH
|
||||
|
||||
Reference in New Issue
Block a user