Revert "FIR: make both ImplicitReceiverStack.get implementations consistent"
This reverts commit b058ca635c.
Change is not necessary anymore since there are no kinds for implicit
receivers
This commit is contained in:
+2
-8
@@ -51,14 +51,8 @@ class PersistentImplicitReceiverStack private constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override operator fun get(name: String?): ImplicitReceiverValue<*>? {
|
override operator fun get(name: String?): ImplicitReceiverValue<*>? {
|
||||||
if (name == null) {
|
if (name == null) return stack.lastOrNull()
|
||||||
return stack.lastOrNull {
|
return indexesPerLabel[Name.identifier(name)].lastOrNull()?.let { stack[it] }
|
||||||
it !is ImplicitDispatchReceiverValue || !it.inDelegated
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return indexesPerLabel[Name.identifier(name)].lastOrNull()?.let { stack[it] }?.takeIf {
|
|
||||||
it !is ImplicitDispatchReceiverValue || !it.inDelegated
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun lastDispatchReceiver(): ImplicitDispatchReceiverValue? {
|
override fun lastDispatchReceiver(): ImplicitDispatchReceiverValue? {
|
||||||
|
|||||||
Reference in New Issue
Block a user