IR: change acceptChildren/transformChildren order in IrClass

Traverse properties of supertypes first, and then handle thisReceiver.
This will simplify transition to auto-generated IR.
This commit is contained in:
Alexander Udalov
2022-01-14 01:46:04 +01:00
parent 4ecc5e517a
commit 6f6bdd8aec
12 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -1,6 +1,5 @@
@0:0..26:1 FILE fqName:<root> fileName:/kt17108.kt
@4:0..26:1 CLASS INTERFACE name:Boolean modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
@4:0..26:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Boolean
@8:20..38 FUN name:not visibility:public modality:ABSTRACT <> ($this:<root>.Boolean) returnType:<root>.Boolean [operator]
@8:4..38 VALUE_PARAMETER name:<this> type:<root>.Boolean
@13:10..42 FUN name:and visibility:public modality:ABSTRACT <> ($this:<root>.Boolean, other:<root>.Boolean) returnType:<root>.Boolean [infix]
@@ -22,3 +21,4 @@
@4:0..26:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@4:7..26:1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
@4:0..26:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@4:0..26:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Boolean