Render decompiled annotations on enum entries

This commit is contained in:
Alexander Udalov
2015-12-10 23:30:36 +03:00
parent 6f347f351a
commit 65c5c99c68
13 changed files with 133 additions and 29 deletions
@@ -0,0 +1,12 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package test
public final enum class AnnotatedEnumEntry private constructor() : kotlin.Enum<test.AnnotatedEnumEntry> {
Entry1,
@dependency.A @dependency.B Entry2,
@dependency.A Entry3;
}
@@ -0,0 +1,9 @@
package test
import dependency.*
enum class AnnotatedEnumEntry {
Entry1,
@A("2") @B(2) Entry2,
@A("3") Entry3
}
@@ -0,0 +1,7 @@
package dependency
@Target(AnnotationTarget.FIELD)
annotation class A(val s: String)
@Target(AnnotationTarget.FIELD)
annotation class B(val i: Int)