22 writes to Receiver
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (22)
139Receiver = substitutedReceiver ?? call.ReceiverOpt, 152Receiver = receiver, 166Receiver = null, 180Receiver = substitutedReceiver ?? indexerAccess.ReceiverOpt, 195Receiver = null, 211Receiver = null, 228Receiver = null, 242Receiver = null, 255Receiver = null, 268Receiver = null, 283Receiver = null, 300Receiver = method.IsStatic ? null : compoundOperator.Left, 314Receiver = null, 327Receiver = propertyAccess.ReceiverOpt, 337Receiver = colElement.ImplicitReceiverOpt, 2386result.Receiver = null; 2456Receiver = null, 2877localMethodInvocationInfo with { Receiver = null }, 2969receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3034adjustedMethodInvocationInfo = adjustedMethodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3159receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 4918Receiver = null,
17 references to Receiver
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (8)
2282if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2284escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver, localScopeDepth)); 2383if (methodInvocationInfo.Receiver is not null) 2385result.ArgsOpt = methodInvocationInfo.ArgsOpt.IsDefault ? [methodInvocationInfo.Receiver] : [methodInvocationInfo.Receiver, .. methodInvocationInfo.ArgsOpt]; 2507var receiver = methodInvocationInfo.Receiver; 2558if ((object)((argument as BoundCapturedReceiverPlaceholder)?.Receiver ?? argument) != methodInvocationInfo.Receiver && methodInvocationInfo.MethodInfo.Symbol is not SignatureOnlyMethodSymbol) 2618var receiver = methodInvocationInfo.Receiver;
Binder\RefSafetyAnalysis.cs (9)
762if (methodInvocationInfo.Receiver is BoundCall receiver1) 770while (methodInvocationInfo.Receiver is BoundCall receiver2) 843if (methodInvocationInfo.Receiver is not null) 845Visit(methodInvocationInfo.Receiver); 858VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Method.IsExtensionBlockMember()); 1046Visit(methodInvocationInfo.Receiver); 1047VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Indexer.IsExtensionBlockMember()); 1175Visit(methodInvocationInfo.Receiver); 1180Debug.Assert(methodInvocationInfo.Receiver is null);