Export property accessors if the property is exported

This fixes `@PublishedApi` support for properties.
This commit is contained in:
Svyatoslav Scherbina
2017-09-19 11:35:35 +03:00
committed by SvyatoslavScherbina
parent 197f77f8e3
commit 388aba5040
@@ -71,6 +71,10 @@ internal tailrec fun DeclarationDescriptor.isExported(): Boolean {
return constructedClass.isExported()
}
if (this is PropertyAccessorDescriptor) {
return this.correspondingProperty.isExported()
}
if (this is DeclarationDescriptorWithVisibility && !this.visibility.isPublicAPI) {
// If the declaration is explicitly marked as non-public,
// then it must not be accessible from other modules.