SYNTHETIC flag for internal members
This commit is contained in:
@@ -212,7 +212,7 @@ public class AsmUtil {
|
||||
flags |= ACC_ABSTRACT;
|
||||
}
|
||||
|
||||
if (JetTypeMapper.isAccessor(functionDescriptor)) {
|
||||
if (JetTypeMapper.isAccessor(functionDescriptor) || functionDescriptor.getVisibility() == Visibilities.INTERNAL) {
|
||||
flags |= ACC_SYNTHETIC;
|
||||
}
|
||||
|
||||
|
||||
@@ -331,6 +331,10 @@ public class PropertyCodegen {
|
||||
modifiers |= ACC_PRIVATE;
|
||||
}
|
||||
|
||||
if (propertyDescriptor.getVisibility() == Visibilities.INTERNAL) {
|
||||
modifiers |= ACC_SYNTHETIC;
|
||||
}
|
||||
|
||||
if (AsmUtil.isPropertyWithBackingFieldCopyInOuterClass(propertyDescriptor)) {
|
||||
ImplementationBodyCodegen parentBodyCodegen = (ImplementationBodyCodegen) memberCodegen.getParentCodegen();
|
||||
parentBodyCodegen.addCompanionObjectPropertyToCopy(propertyDescriptor, defaultValue);
|
||||
|
||||
Reference in New Issue
Block a user