Use isExtension utility in JsDescriptorUtils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
This commit is contained in:
@@ -140,7 +140,7 @@ public final class JsDescriptorUtils {
|
||||
}
|
||||
|
||||
public static boolean isAsPrivate(@NotNull PropertyDescriptor propertyDescriptor) {
|
||||
return propertyDescriptor.getReceiverParameter().exists() ||
|
||||
return isExtension(propertyDescriptor) ||
|
||||
!isDefaultAccessor(propertyDescriptor.getGetter()) ||
|
||||
!isDefaultAccessor(propertyDescriptor.getSetter());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user