IR: deserialize backing field annotations

Probably going to be necessary for handling imported @JvmField
annotated declarations.
This commit is contained in:
pyos
2019-10-14 14:31:32 +02:00
committed by Dmitry Petrov
parent ecf98d3141
commit 6b48112a2b
@@ -61,7 +61,11 @@ class IrLazyField(
symbol.bind(this)
}
override val annotations: MutableList<IrConstructorCall> = mutableListOf()
override val annotations: MutableList<IrConstructorCall> by lazy {
descriptor.backingField?.annotations
?.mapNotNullTo(mutableListOf(), typeTranslator.constantValueGenerator::generateAnnotationConstructorCall)
?: mutableListOf()
}
override val descriptor: PropertyDescriptor = symbol.descriptor