FIR: Provide dispatch receiver for 'field' according to property type

This commit is contained in:
Jinseong Jeon
2020-03-27 22:31:44 -07:00
committed by Mikhail Glukhikh
parent a0978a50e8
commit 078cf02c8a
32 changed files with 39 additions and 34 deletions
@@ -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<*>> {