1 write to ReceiverOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7383this.ReceiverOpt = receiverOpt;
41 references to ReceiverOpt
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder.ValueChecks.cs (3)
1530return CheckRefEscape(node, eventAccess.ReceiverOpt, escapeFrom, escapeTo, checkingReceiver: true, diagnostics: diagnostics); 1543BoundExpression receiver = boundEvent.ReceiverOpt; 3416return GetRefEscape(eventAccess.ReceiverOpt, scopeOfTheContainingExpression);
Binder\Binder_Operators.cs (2)
265BoundExpression receiverOpt = left.ReceiverOpt; 2591receiver = eventAccess.ReceiverOpt;
FlowAnalysis\AbstractFlowPass.cs (2)
595VisitFieldAccessInternal(node1.ReceiverOpt, node1.EventSymbol.AssociatedField); 2293VisitFieldAccessInternal(node.ReceiverOpt, node.EventSymbol.AssociatedField);
FlowAnalysis\DataFlowsOutWalker.cs (2)
176if (MayRequireTracking(eventAccess.ReceiverOpt, associatedField)) 178node = eventAccess.ReceiverOpt;
FlowAnalysis\DefiniteAssignment.cs (9)
815if (MayRequireTracking(eventAccess.ReceiverOpt, associatedField)) 817n = eventAccess.ReceiverOpt; 1002if (MayRequireTracking(eventAccess.ReceiverOpt, associatedField)) 1004n = eventAccess.ReceiverOpt; 1097receiver = eventAccess.ReceiverOpt; 1418if (!MayRequireTracking(eventAccess.ReceiverOpt, eventAccess.EventSymbol.AssociatedField) || IsAssigned(eventAccess.ReceiverOpt, out unassignedSlot)) 2613if ((object)associatedField != null && MayRequireTracking(@event.ReceiverOpt, associatedField)) 2753if (MayRequireTracking(node.ReceiverOpt, associatedField))
FlowAnalysis\NullableWalker.cs (2)
1972receiver = eventAccess.ReceiverOpt; 10750var updatedSymbol = VisitMemberAccess(node, node.ReceiverOpt, node.EventSymbol);
Generated\BoundNodes.xml.Generated.cs (5)
7400if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.IsUsableAsField || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10609this.Visit(node.ReceiverOpt); 11948BoundExpression? receiverOpt = (BoundExpression?)this.Visit(node.ReceiverOpt); 14469BoundExpression? receiverOpt = (BoundExpression?)this.Visit(node.ReceiverOpt); 16737new TreeDumperNode("receiverOpt", null, new TreeDumperNode[] { Visit(node.ReceiverOpt, null) }),
Lowering\DiagnosticsPass_ExpressionTrees.cs (3)
277bool hasBaseReceiver = node.ReceiverOpt != null && node.ReceiverOpt.Kind == BoundKind.BaseReference; 280CheckReceiverIfField(node.ReceiverOpt);
Lowering\DiagnosticsPass_Warnings.cs (2)
216(event1.EventSymbol.IsStatic || IsSameLocalOrField(event1.ReceiverOpt, event2.ReceiverOpt));
Lowering\LocalRewriter\LocalRewriter.cs (4)
1059Debug.Assert(eventAccess.ReceiverOpt is { }); 1060Debug.Assert(eventAccess.ReceiverOpt.Type is { }); 1061return !eventAccess.ReceiverOpt.Type.IsValueType || CanBePassedByReference(eventAccess.ReceiverOpt);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
124eventAccess.ReceiverOpt,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
723BoundExpression? receiverOpt = eventAccess.ReceiverOpt; 728return eventAccess.Update(TransformPropertyOrEventReceiver(eventAccess.EventSymbol, eventAccess.ReceiverOpt,
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
199BoundExpression? rewrittenReceiverOpt = VisitExpression(left.ReceiverOpt); 215BoundExpression? rewrittenReceiver = VisitExpression(node.ReceiverOpt);
Operations\CSharpOperationFactory.cs (2)
646IOperation? instance = CreateReceiverOperation(boundEventAccess.ReceiverOpt, boundEventAccess.EventSymbol); 650TypeParameterSymbol? constrainedToType = GetConstrainedToType(boundEventAccess.EventSymbol, boundEventAccess.ReceiverOpt);