IR: implement some missing features in wrapped descriptors for JVM IR

Wrapped descriptors are still used in reporting of the "conflicting JVM
signatures" diagnostic in the JVM IR backend, and TODOs in
implementations prevent that diagnostic from being shown, obscuring even
the place where the error happens.
This commit is contained in:
Alexander Udalov
2020-01-13 21:48:29 +01:00
parent 6fe61c9056
commit a5ff88f897
@@ -132,7 +132,7 @@ abstract class WrappedCallableDescriptor<T : IrDeclaration>(
TODO("not implemented") TODO("not implemented")
} }
override fun getValueParameters(): MutableList<ValueParameterDescriptor> { override fun getValueParameters(): List<ValueParameterDescriptor> {
TODO("not implemented") TODO("not implemented")
} }
@@ -185,6 +185,8 @@ open class WrappedValueParameterDescriptor(
override fun getOverriddenDescriptors(): Collection<ValueParameterDescriptor> = emptyList() override fun getOverriddenDescriptors(): Collection<ValueParameterDescriptor> = emptyList()
override fun getTypeParameters(): List<TypeParameterDescriptor> = emptyList()
override fun getValueParameters(): List<ValueParameterDescriptor> = emptyList()
override fun getOriginal() = this override fun getOriginal() = this
@@ -423,10 +425,6 @@ open class WrappedSimpleFunctionDescriptor(
if (owner.origin == IrDeclarationOrigin.FAKE_OVERRIDE) CallableMemberDescriptor.Kind.FAKE_OVERRIDE if (owner.origin == IrDeclarationOrigin.FAKE_OVERRIDE) CallableMemberDescriptor.Kind.FAKE_OVERRIDE
else CallableMemberDescriptor.Kind.SYNTHESIZED else CallableMemberDescriptor.Kind.SYNTHESIZED
override fun isHiddenToOvercomeSignatureClash(): Boolean {
TODO("not implemented")
}
override fun copy( override fun copy(
newOwner: DeclarationDescriptor?, newOwner: DeclarationDescriptor?,
modality: Modality?, modality: Modality?,
@@ -437,11 +435,10 @@ open class WrappedSimpleFunctionDescriptor(
TODO("not implemented") TODO("not implemented")
} }
override fun isHiddenForResolutionEverywhereBesideSupercalls(): Boolean { override fun isHiddenToOvercomeSignatureClash(): Boolean = false
TODO("not implemented") override fun isHiddenForResolutionEverywhereBesideSupercalls(): Boolean = false
}
override fun getInitialSignatureDescriptor() = null override fun getInitialSignatureDescriptor(): FunctionDescriptor? = null
override fun <V : Any?> getUserData(key: CallableDescriptor.UserDataKey<V>?): V? = null override fun <V : Any?> getUserData(key: CallableDescriptor.UserDataKey<V>?): V? = null