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, 2427result.Receiver = null; 2496Receiver = null, 2915localMethodInvocationInfo with { Receiver = null }, 3007receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3072adjustedMethodInvocationInfo = adjustedMethodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 3195receiverlessInvocationInfo = methodInvocationInfo with { Receiver = null, ReceiverIsSubjectToCloning = ThreeState.Unknown }; 4922Receiver = null,
17 references to Receiver
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (8)
2325if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2327escapeScope = escapeScope.Intersect(GetValEscape(methodInvocationInfo.Receiver)); 2424if (methodInvocationInfo.Receiver is not null) 2426result.ArgsOpt = methodInvocationInfo.ArgsOpt.IsDefault ? [methodInvocationInfo.Receiver] : [methodInvocationInfo.Receiver, .. methodInvocationInfo.ArgsOpt]; 2547var receiver = methodInvocationInfo.Receiver; 2597if ((object)((argument as BoundCapturedReceiverPlaceholder)?.Receiver ?? argument) != methodInvocationInfo.Receiver && methodInvocationInfo.MethodInfo.Symbol is not SignatureOnlyMethodSymbol) 2656var 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);