Fir2Ir: Produce IR_TEMPORARY_VARIABLE origins

This commit is contained in:
Steven Schäfer
2019-11-01 14:23:17 +01:00
committed by Mikhail Glukhikh
parent 733c7579aa
commit 704e6e96fa
27 changed files with 287 additions and 284 deletions
+3 -3
View File
@@ -5,10 +5,10 @@ FILE fqName:<root> fileName:/localFunction.kt
CONST Int type=kotlin.Int value=0
FUN name:local visibility:local modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
VAR name:<unary> type:kotlin.Int [val]
VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val]
GET_VAR 'var x: kotlin.Int [var] declared in <root>.outer' type=kotlin.Int origin=null
SET_VAR 'var x: kotlin.Int [var] declared in <root>.outer' type=kotlin.Int origin=null
CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
$this: GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.outer.local' type=kotlin.Int origin=null
GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.outer.local' type=kotlin.Int origin=null
$this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in <root>.outer.local' type=kotlin.Int origin=null
GET_VAR 'val tmp_0: kotlin.Int [val] declared in <root>.outer.local' type=kotlin.Int origin=null
CALL 'local final fun local (): kotlin.Unit declared in <local>' type=kotlin.Unit origin=null