psi2ir: Merge constant entries in string template expressions

This is required to handle UCNs properly, see KT-28006.

 #KT-28006
This commit is contained in:
Dmitry Petrov
2018-11-06 18:00:35 +03:00
parent 6bb5e028a5
commit bd1491ac8a
84 changed files with 476 additions and 351 deletions
@@ -8,7 +8,7 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt
PROPERTY name:a visibility:public modality:FINAL flags:val
FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.String visibility:public flags:final
EXPRESSION_BODY
CONST String type=kotlin.String value=
CONST String type=kotlin.String value=""
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-a> visibility:public modality:FINAL <> ($this:test.Foo) returnType:kotlin.String flags:
correspondingProperty: PROPERTY name:a visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:test.Foo flags:
@@ -20,7 +20,7 @@ FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt
$this: VALUE_PARAMETER name:<this> type:test.Foo flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): String'
CONST String type=kotlin.String value=
CONST String type=kotlin.String value=""
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
overridden:
FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags: