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,6 +1,5 @@
@0:0..13:1 FILE fqName:<root> fileName:/secondaryConstructors.kt
@0:0..13:1 CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]
@0:0..13:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
@1:4..27 CONSTRUCTOR visibility:public <> () returnType:<root>.C
@1:4..27 BLOCK_BODY
@1:20..27 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@@ -27,3 +26,4 @@
@0:0..13:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@0:0..13:1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
@0:0..13:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@0:0..13:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C