22 writes to Receiver
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (22)
138Receiver = substitutedReceiver ?? call.ReceiverOpt, 151Receiver = receiver, 165Receiver = null, 179Receiver = substitutedReceiver ?? indexerAccess.ReceiverOpt, 194Receiver = null, 210Receiver = null, 227Receiver = null, 241Receiver = null, 254Receiver = null, 267Receiver = null, 282Receiver = null, 299Receiver = method.IsStatic ? null : compoundOperator.Left, 313Receiver = null, 326Receiver = propertyAccess.ReceiverOpt, 336Receiver = colElement.ImplicitReceiverOpt, 2411result.Receiver = null; 2480Receiver = null, 2899localMethodInvocationInfo with { Receiver = null }, 2991receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3056adjustedMethodInvocationInfo = adjustedMethodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3179receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 4906Receiver = null,
17 references to Receiver
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (8)
2309if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2311escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2408if (methodInvocationInfo.Receiver is not null) 2410result.ArgsOpt = methodInvocationInfo.ArgsOpt.IsDefault ? [methodInvocationInfo.Receiver] : [methodInvocationInfo.Receiver, .. methodInvocationInfo.ArgsOpt]; 2531var receiver = methodInvocationInfo.Receiver; 2581if ((object)((argument as BoundCapturedReceiverPlaceholder)?.Receiver ?? argument) != methodInvocationInfo.Receiver && methodInvocationInfo.MethodInfo.Symbol is not SignatureOnlyMethodSymbol) 2640var receiver = methodInvocationInfo.Receiver;
Binder\RefSafetyAnalysis.cs (9)
761if (methodInvocationInfo.Receiver is BoundCall receiver1) 769while (methodInvocationInfo.Receiver is BoundCall receiver2) 842if (methodInvocationInfo.Receiver is not null) 844Visit(methodInvocationInfo.Receiver); 857VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Method.IsExtensionBlockMember()); 1043Visit(methodInvocationInfo.Receiver); 1044VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Indexer.IsExtensionBlockMember()); 1170Visit(methodInvocationInfo.Receiver); 1175Debug.Assert(methodInvocationInfo.Receiver is null);