FIR: Provide dispatch receiver for 'field' according to property type
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a0978a50e8
commit
078cf02c8a
+4
@@ -51,6 +51,10 @@ class PersistentImplicitReceiverStack private constructor(
|
||||
return stack.filterIsInstance<ImplicitDispatchReceiverValue>().lastOrNull()
|
||||
}
|
||||
|
||||
override fun lastDispatchReceiver(lookupCondition: (ImplicitReceiverValue<*>) -> Boolean): ImplicitDispatchReceiverValue? {
|
||||
return stack.filterIsInstance<ImplicitDispatchReceiverValue>().lastOrNull(lookupCondition)
|
||||
}
|
||||
|
||||
override fun receiversAsReversed(): List<ImplicitReceiverValue<*>> = stack.asReversed()
|
||||
|
||||
override operator fun iterator(): Iterator<ImplicitReceiverValue<*>> {
|
||||
|
||||
Reference in New Issue
Block a user