FIR2IR: use ELVIS origin only on wrapping blocks #KT-60250 Fixed

This commit is contained in:
Mikhail Glukhikh
2023-08-18 18:06:54 +02:00
committed by Space Team
parent b06188180e
commit 2ff075c961
15 changed files with 39 additions and 38 deletions
@@ -34,7 +34,7 @@ FILE fqName:<root> fileName:/noSymbolForIntRangeIterator.kt
VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val]
CALL 'public final fun toIntOrNull (): kotlin.Int? declared in kotlin.text' type=kotlin.Int? origin=null
$receiver: GET_VAR 'it: kotlin.String declared in <root>.takeString.<anonymous>' type=kotlin.String origin=null
WHEN type=kotlin.Int origin=ELVIS
WHEN type=kotlin.Int origin=null
BRANCH
if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in <root>.takeString.<anonymous>' type=kotlin.Int? origin=null