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
+2 -2
View File
@@ -1,12 +1,10 @@
@0:0..33:1 FILE fqName:<root> fileName:/comments.kt
@1:0..33:1 CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]
@1:0..33:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Foo
@1:0..33:1 CONSTRUCTOR visibility:public <> () returnType:<root>.Foo [primary]
@1:0..33:1 BLOCK_BODY
@1:0..33:1 DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
@1:0..33:1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]'
@8:4..10:36 CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]
@8:4..10:36 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Foo.Inner
@8:60..10:36 CONSTRUCTOR visibility:private <> ($this:<root>.Foo, x:kotlin.Int) returnType:<root>.Foo.Inner [primary]
@8:52..79 VALUE_PARAMETER name:<this> type:<root>.Foo
@8:72..78 VALUE_PARAMETER name:x index:0 type:kotlin.Int
@@ -20,6 +18,7 @@
@8:4..10:36 VALUE_PARAMETER name:<this> type:kotlin.Any
@8:10..10:36 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
@8:4..10:36 VALUE_PARAMETER name:<this> type:kotlin.Any
@8:4..10:36 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Foo.Inner
@18:19..20:39 FUN name:foo visibility:protected modality:OPEN <> ($this:<root>.Foo, y:kotlin.Int) returnType:kotlin.Unit
@18:4..20:39 VALUE_PARAMETER name:<this> type:<root>.Foo
@18:27..33 VALUE_PARAMETER name:y index:0 type:kotlin.Int
@@ -49,3 +48,4 @@
@1:0..33:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@1:0..33:1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
@1:0..33:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@1:0..33:1 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Foo