noteExtensionReceiver method
Notes value, produced by expression, as the receiver of the member
access being evaluated (see bindExtensionTypeParameters); access is
that access. ghissues70: an extension named by the access's static fact
is the one an extension lookup on value prefers, as Dart picks it by
the receiver's static type.
Implementation
void noteExtensionReceiver(
Object? value,
SExpression expression, [
SAstNode? access,
]) {
_extensionReceiver = value;
_extensionReceiverExpression = expression;
_extensionReceiverAccess = access;
Environment.preferExtension(
value,
access == null ? null : _staticExtensionNameOf(access),
);
}