FIR deserializer: load annotations on inner classes

This commit is contained in:
Jinseong Jeon
2020-07-06 15:28:06 -07:00
committed by Dmitriy Novozhilov
parent c588bc604d
commit 81345bcc26
9 changed files with 14 additions and 12 deletions
@@ -30,6 +30,8 @@ class JvmBinaryAnnotationDeserializer(
kotlinBinaryClass: KotlinJvmBinaryClass,
byteContent: ByteArray?
) : AbstractAnnotationDeserializer(session) {
// TODO: In order to properly load annotations on fields inside a companion object,
// we need binary classes for both the companion class and the enclosing class.
private val annotationInfo by lazy(LazyThreadSafetyMode.PUBLICATION) {
session.loadMemberAnnotations(kotlinBinaryClass, byteContent)
}