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