22 writes to Receiver
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (22)
118Receiver = substitutedReceiver ?? call.ReceiverOpt, 131Receiver = receiver, 145Receiver = null, 161Receiver = substitutedReceiver ?? indexerAccess.ReceiverOpt, 177Receiver = null, 193Receiver = null, 210Receiver = null, 224Receiver = null, 237Receiver = null, 250Receiver = null, 265Receiver = null, 282Receiver = method.IsStatic ? null : compoundOperator.Left, 296Receiver = null, 311Receiver = propertyAccess.ReceiverOpt, 323Receiver = colElement.ImplicitReceiverOpt, 2437result.Receiver = null; 2506Receiver = null, 2900localMethodInvocationInfo with { Receiver = null }, 2992receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3057adjustedMethodInvocationInfo = adjustedMethodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3180receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 4967Receiver = null,
17 references to Receiver
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (8)
2335if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2337escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2434if (methodInvocationInfo.Receiver is not null) 2436result.ArgsOpt = methodInvocationInfo.ArgsOpt.IsDefault ? [methodInvocationInfo.Receiver] : [methodInvocationInfo.Receiver, .. methodInvocationInfo.ArgsOpt]; 2557var receiver = methodInvocationInfo.Receiver; 2607if ((object)((argument as BoundCapturedReceiverPlaceholder)?.Receiver ?? argument) != methodInvocationInfo.Receiver && methodInvocationInfo.MethodInfo.Symbol is not SignatureOnlyMethodSymbol) 2666var receiver = methodInvocationInfo.Receiver;
Binder\RefSafetyAnalysis.cs (9)
783if (methodInvocationInfo.Receiver is BoundCall receiver1) 791while (methodInvocationInfo.Receiver is BoundCall receiver2) 864if (methodInvocationInfo.Receiver is not null) 866Visit(methodInvocationInfo.Receiver); 879VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Method.IsExtensionBlockMember()); 1085Visit(methodInvocationInfo.Receiver); 1086VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Indexer.IsExtensionBlockMember()); 1212Visit(methodInvocationInfo.Receiver); 1217Debug.Assert(methodInvocationInfo.Receiver is null);