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, 227Receiver = null, 241Receiver = null, 254Receiver = null, 267Receiver = null, 282Receiver = null, 299Receiver = method.IsStatic ? null : compoundOperator.Left, 313Receiver = null, 326Receiver = propertyAccess.ReceiverOpt, 336Receiver = colElement.ImplicitReceiverOpt, 2383result.Receiver = null; 2453Receiver = null, 2874localMethodInvocationInfo with { Receiver = null }, 2966receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3031adjustedMethodInvocationInfo = adjustedMethodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3150receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 4878Receiver = null,
15 references to Receiver
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.ValueChecks.cs (8)
2279if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2281escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver, localScopeDepth)); 2380if (methodInvocationInfo.Receiver is not null) 2382result.ArgsOpt = methodInvocationInfo.ArgsOpt.IsDefault ? [methodInvocationInfo.Receiver] : [methodInvocationInfo.Receiver, .. methodInvocationInfo.ArgsOpt]; 2504var receiver = methodInvocationInfo.Receiver; 2555if ((object)((argument as BoundCapturedReceiverPlaceholder)?.Receiver ?? argument) != methodInvocationInfo.Receiver && methodInvocationInfo.MethodInfo.Symbol is not SignatureOnlyMethodSymbol) 2615var receiver = methodInvocationInfo.Receiver;
Binder\RefSafetyAnalysis.cs (7)
742if (methodInvocationInfo.Receiver is BoundCall receiver1) 750while (methodInvocationInfo.Receiver is BoundCall receiver2) 794if (methodInvocationInfo.Receiver is not null) 796Visit(methodInvocationInfo.Receiver); 809VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Method.GetIsNewExtensionMember()); 997Visit(methodInvocationInfo.Receiver); 998VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Indexer.GetIsNewExtensionMember());