[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:
Roman Efremov
2023-11-28 12:03:09 +01:00
committed by Space Team
parent 8f6b6e17be
commit 5cf33c3556
72 changed files with 358 additions and 349 deletions
+2 -2
View File
@@ -5,14 +5,14 @@ FILE fqName:<root> fileName:/deprecated.kt
CONST String type=kotlin.String value="OK"
FUN name:create visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.String
annotations:
Deprecated(message = 'Use create() instead()', replaceWith = ReplaceWith(expression = 'create()', imports = []), level = <null>)
Deprecated(message = "Use create() instead()", replaceWith = ReplaceWith(expression = "create()", imports = []), level = <null>)
VALUE_PARAMETER name:s index:0 type:kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun create (s: kotlin.String): kotlin.String declared in <root>'
CALL 'public final fun create (): kotlin.String declared in <root>' type=kotlin.String origin=null
FUN name:create visibility:public modality:FINAL <> (b:kotlin.Boolean) returnType:kotlin.String
annotations:
Deprecated(message = 'Use create() instead()', replaceWith = <null>, level = <null>)
Deprecated(message = "Use create() instead()", replaceWith = <null>, level = <null>)
VALUE_PARAMETER name:b index:0 type:kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun create (b: kotlin.Boolean): kotlin.String declared in <root>'