FIR2IR: create IrEnumConstructorCall even in complex entries

This commit is contained in:
Mikhail Glukhikh
2020-03-03 18:03:27 +03:00
parent 5af3d92271
commit 3ffe1a1876
10 changed files with 67 additions and 3 deletions
@@ -7,6 +7,8 @@ FILE fqName:<root> fileName:/enumEntry.kt
<E>: <root>.Z
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Z modality:FINAL visibility:public superTypes:[kotlin.Enum<<root>.Z>]'
ENUM_ENTRY name:ENTRY
init: EXPRESSION_BODY
ENUM_CONSTRUCTOR_CALL 'private constructor <init> () [primary] declared in <root>.Z.ENTRY'
class: CLASS ENUM_ENTRY name:ENTRY modality:FINAL visibility:private superTypes:[<root>.Z]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Z.ENTRY
CONSTRUCTOR visibility:private <> () returnType:<root>.Z.ENTRY [primary]