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
@@ -45,7 +45,7 @@ FILE fqName:<root> fileName:/arrayAugmentedAssignment2.kt
VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:IA flags:val
GET_VAR 'value-parameter a: IA' type=IA origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.String flags:val
CONST String type=kotlin.String value=
CONST String type=kotlin.String value=""
CALL 'set(String, Int) on IA: Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR 'this@test: IB' type=IB origin=null
$receiver: GET_VAR 'tmp0_array: IA' type=IA origin=null