IR: annotations are represented as IrConstructorCall elements
Also, they are rendered somewhat nicer
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
FILE fqName:test fileName:/fileAnnotations.kt
|
||||
annotations:
|
||||
CALL 'public constructor <init> (x: kotlin.String) [primary] declared in test.A' type=test.A origin=null
|
||||
x: CONST String type=kotlin.String value="File annotation"
|
||||
A(x = 'File annotation')
|
||||
CLASS ANNOTATION_CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Annotation]
|
||||
annotations:
|
||||
CALL 'public constructor <init> (vararg allowedTargets: kotlin.annotation.AnnotationTarget) [primary] declared in kotlin.annotation.Target' type=kotlin.annotation.Target origin=null
|
||||
allowedTargets: VARARG type=kotlin.Array<out kotlin.annotation.AnnotationTarget> varargElementType=kotlin.annotation.AnnotationTarget
|
||||
GET_ENUM 'ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:FILE' type=kotlin.annotation.AnnotationTarget
|
||||
Target(allowedTargets = [GET_ENUM 'ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:FILE' type=kotlin.annotation.AnnotationTarget])
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test.A
|
||||
CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:test.A [primary]
|
||||
VALUE_PARAMETER name:x index:0 type:kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user