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
@@ -290,7 +290,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
FIELD DELEGATE name:Test2$IOther$delegate type:IOther visibility:private flags:final
EXPRESSION_BODY
CALL 'otherImpl(String, Int): IOther' type=IOther origin=null
x0: CONST String type=kotlin.String value=
x0: CONST String type=kotlin.String value=""
y0: CONST Int type=kotlin.Int value=42
PROPERTY DELEGATED_MEMBER name:z1 visibility:public modality:OPEN flags:val
FUN DELEGATED_MEMBER name:<get-z1> visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte) returnType:kotlin.Int flags: