Use AnnotationSplitter for annotations on setter parameter

Make it possible to specify annotations of the setter parameter when
constructing the default setter via DescriptorFactory; pass the split
annotations in DescriptorResolver.resolvePropertySetterDescriptor

 #KT-25500 Fixed
This commit is contained in:
Alexander Udalov
2018-08-07 20:10:30 +02:00
parent 779d9aafe7
commit 823a24e0a3
15 changed files with 93 additions and 82 deletions
@@ -118,7 +118,10 @@ class MemberDeserializer(private val c: DeserializationContext) {
setter.initialize(valueParameters.single())
setter
} else {
DescriptorFactory.createDefaultSetter(property, annotations)
DescriptorFactory.createDefaultSetter(
property, annotations,
Annotations.EMPTY /* Otherwise presumably the setter is not default */
)
}
} else {
null