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..77:1 FILE fqName:test fileName:/classProperties.kt
@2:0..77:1 CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]
@2:0..77:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test.Test
@2:0..77:1 CONSTRUCTOR visibility:public <> () returnType:test.Test [primary]
@2:0..77:1 BLOCK_BODY
@2:0..77:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@@ -178,3 +177,4 @@
@2:0..77:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@2:0..77:1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
@2:0..77:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@2:0..77:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test.Test