IR: minor, remove unnecessary isFromJava check
This is an addition to b72effab98. For JVM, this code is not supposed
to affect anything, and for non-JVM, declarations from Java are not
possible.
This commit is contained in:
committed by
Space Team
parent
16b985b36e
commit
41c6cca689
+2
-2
@@ -274,10 +274,10 @@ class IdSignatureFactory(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun IrSimpleFunction.isOverridableFunction(): Boolean =
|
private fun IrSimpleFunction.isOverridableFunction(): Boolean =
|
||||||
!DescriptorVisibilities.isPrivate(visibility) && (hasDispatchReceiver || isFromJava())
|
!DescriptorVisibilities.isPrivate(visibility) && hasDispatchReceiver
|
||||||
|
|
||||||
private fun IrProperty.isOverridableProperty(): Boolean =
|
private fun IrProperty.isOverridableProperty(): Boolean =
|
||||||
!DescriptorVisibilities.isPrivate(visibility) && (getter.hasDispatchReceiver || setter.hasDispatchReceiver || isFromJava())
|
!DescriptorVisibilities.isPrivate(visibility) && (getter.hasDispatchReceiver || setter.hasDispatchReceiver)
|
||||||
|
|
||||||
private val IrSimpleFunction?.hasDispatchReceiver: Boolean
|
private val IrSimpleFunction?.hasDispatchReceiver: Boolean
|
||||||
get() = this?.dispatchReceiverParameter != null
|
get() = this?.dispatchReceiverParameter != null
|
||||||
|
|||||||
Reference in New Issue
Block a user