[IR] Implement getContextReceiverParameters for IrBasedPropertyDescriptor

Fixes: KT-59590
This commit is contained in:
Xin Wang
2023-08-24 17:33:32 +08:00
committed by Space Team
parent 03ad981dea
commit 51325ba630
11 changed files with 126 additions and 2 deletions
@@ -902,7 +902,7 @@ open class IrBasedPropertyDescriptor(owner: IrProperty) :
owner.getter?.extensionReceiverParameter?.toIrBasedDescriptor() as? ReceiverParameterDescriptor
override fun getContextReceiverParameters(): List<ReceiverParameterDescriptor> {
TODO("Not yet implemented")
return getter?.contextReceiverParameters ?: emptyList()
}
override fun isExternal() = owner.isExternal
@@ -1098,7 +1098,7 @@ open class IrBasedFieldDescriptor(owner: IrField) : PropertyDescriptor, IrBasedD
owner.correspondingPropertySymbol?.owner?.toIrBasedDescriptor()?.extensionReceiverParameter
override fun getContextReceiverParameters(): List<ReceiverParameterDescriptor> {
TODO("Not yet implemented")
return owner.correspondingPropertySymbol?.owner?.toIrBasedDescriptor()?.contextReceiverParameters ?: emptyList()
}
override fun isExternal() = owner.isExternal