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, 2385result.Receiver = null; 2455Receiver = null, 2876localMethodInvocationInfo with { Receiver = null }, 2968receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3033adjustedMethodInvocationInfo = adjustedMethodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3158receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 4916Receiver = null,
17 references to Receiver
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (8)
2281if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2283escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver, localScopeDepth)); 2382if (methodInvocationInfo.Receiver is not null) 2384result.ArgsOpt = methodInvocationInfo.ArgsOpt.IsDefault ? [methodInvocationInfo.Receiver] : [methodInvocationInfo.Receiver, .. methodInvocationInfo.ArgsOpt]; 2506var receiver = methodInvocationInfo.Receiver; 2557if ((object)((argument as BoundCapturedReceiverPlaceholder)?.Receiver ?? argument) != methodInvocationInfo.Receiver && methodInvocationInfo.MethodInfo.Symbol is not SignatureOnlyMethodSymbol) 2617var receiver = methodInvocationInfo.Receiver;
Binder\RefSafetyAnalysis.cs (9)
742if (methodInvocationInfo.Receiver is BoundCall receiver1) 750while (methodInvocationInfo.Receiver is BoundCall receiver2) 823if (methodInvocationInfo.Receiver is not null) 825Visit(methodInvocationInfo.Receiver); 838VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Method.GetIsNewExtensionMember()); 1026Visit(methodInvocationInfo.Receiver); 1027VisitArgumentsAndGetArgumentPlaceholders(methodInvocationInfo.Receiver, methodInvocationInfo.ArgsOpt, node.Indexer.GetIsNewExtensionMember()); 1155Visit(methodInvocationInfo.Receiver); 1160Debug.Assert(methodInvocationInfo.Receiver is null);