Raw FIR: eliminate range variable declaration in 'for' loops

This commit is contained in:
Mikhail Glukhikh
2020-02-13 18:25:26 +03:00
parent 4abbcd1267
commit 4a4fb5a590
23 changed files with 804 additions and 857 deletions
@@ -105,9 +105,7 @@ FILE fqName:<root> fileName:/forWithImplicitReceivers.kt
FUN name:test visibility:public modality:FINAL <> ($receiver:<root>.IReceiver) returnType:kotlin.Unit
$receiver: VALUE_PARAMETER name:<this> type:<root>.IReceiver
BLOCK_BODY
VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:<root>.FiveTimes [val]
GET_OBJECT 'CLASS OBJECT name:FiveTimes modality:FINAL visibility:public superTypes:[kotlin.Any]' type=<root>.FiveTimes
VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:<root>.IntCell [val]
VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:<root>.IntCell [val]
CALL 'public open fun iterator (): <root>.IntCell [operator] declared in <root>.IReceiver' type=<root>.IntCell origin=null
$this: GET_VAR '<this>: <root>.IReceiver declared in <root>.test' type=<root>.IReceiver origin=null
WHILE label=null origin=FOR_LOOP_INNER_WHILE