1 write to EventSymbol
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7383this.EventSymbol = eventSymbol;
44 references to EventSymbol
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder.ValueChecks.cs (3)
1544var eventSymbol = eventAccess.EventSymbol; 1568EventSymbol eventSymbol = boundEvent.EventSymbol; 3430var eventSymbol = eventAccess.EventSymbol;
Binder\Binder_Operators.cs (3)
264EventSymbol eventSymbol = left.EventSymbol; 2585if (!eventAccess.IsUsableAsField || eventAccess.EventSymbol.IsWindowsRuntimeEvent) 2589EventSymbol eventSymbol = eventAccess.EventSymbol;
Binder\Binder_Statements.cs (1)
1512((BoundEventAccess)op1).EventSymbol.IsWindowsRuntimeEvent)
BoundTree\BoundExpression.cs (1)
390get { return this.EventSymbol; }
FlowAnalysis\AbstractFlowPass.cs (2)
595VisitFieldAccessInternal(node1.ReceiverOpt, node1.EventSymbol.AssociatedField); 2293VisitFieldAccessInternal(node.ReceiverOpt, node.EventSymbol.AssociatedField);
FlowAnalysis\DataFlowsOutWalker.cs (1)
173FieldSymbol associatedField = eventAccess.EventSymbol.AssociatedField;
FlowAnalysis\DefiniteAssignment.cs (7)
810FieldSymbol associatedField = eventAccess.EventSymbol.AssociatedField; 993FieldSymbol associatedField = eventAccess.EventSymbol.AssociatedField; 1091var eventSymbol = eventAccess.EventSymbol; 1418if (!MayRequireTracking(eventAccess.ReceiverOpt, eventAccess.EventSymbol.AssociatedField) || IsAssigned(eventAccess.ReceiverOpt, out unassignedSlot)) 1423unassignedSlot = GetOrCreateSlot(eventAccess.EventSymbol.AssociatedField, unassignedSlot); 2612FieldSymbol associatedField = @event.EventSymbol.AssociatedField; 2749FieldSymbol associatedField = node.EventSymbol.AssociatedField;
FlowAnalysis\NullableWalker.cs (4)
1965var eventSymbol = eventAccess.EventSymbol; 9948if (left.Kind == BoundKind.EventAccess && ((BoundEventAccess)left).EventSymbol.IsWindowsRuntimeEvent) 10753var updatedSymbol = VisitMemberAccess(node, node.ReceiverOpt, node.EventSymbol); 10754SetUpdatedSymbol(node, node.EventSymbol, updatedSymbol);
Generated\BoundNodes.xml.Generated.cs (4)
7399if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.IsUsableAsField || resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11949return node.Update(receiverOpt, node.EventSymbol, node.IsUsableAsField, node.ResultKind, type); 14467EventSymbol eventSymbol = GetUpdatedSymbol(node, node.EventSymbol); 16737new TreeDumperNode("eventSymbol", node.EventSymbol, null),
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
278Binder.ReportDiagnosticsIfObsolete(_diagnostics, node.EventSymbol.AssociatedField, node.Syntax, hasBaseReceiver, _containingSymbol, _containingSymbol.ContainingType, BinderFlags.None);
Lowering\DiagnosticsPass_Warnings.cs (3)
215return event1.EventSymbol == event2.EventSymbol && 216(event1.EventSymbol.IsStatic || IsSameLocalOrField(event1.ReceiverOpt, event2.ReceiverOpt));
Lowering\LocalRewriter\LocalRewriter.cs (1)
1056if (eventAccess.EventSymbol.IsStatic)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (3)
46if (eventAccess.EventSymbol.IsWindowsRuntimeEvent) 119if (eventAccess.EventSymbol.IsWindowsRuntimeEvent) 122eventAccess.EventSymbol,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (5)
725if (eventAccess.EventSymbol.IsWindowsRuntimeEvent) 728return eventAccess.Update(TransformPropertyOrEventReceiver(eventAccess.EventSymbol, eventAccess.ReceiverOpt, 730eventAccess.EventSymbol, eventAccess.IsUsableAsField, eventAccess.ResultKind, eventAccess.Type); 733if (TransformCompoundAssignmentFieldOrEventAccessReceiver(eventAccess.EventSymbol, ref receiverOpt, stores, temps)) 735return MakeEventAccess(eventAccess.Syntax, receiverOpt, eventAccess.EventSymbol, eventAccess.ConstantValueOpt, eventAccess.ResultKind, eventAccess.Type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
195EventSymbol eventSymbol = left.EventSymbol; 216return MakeEventAccess(node.Syntax, rewrittenReceiver, node.EventSymbol, node.ConstantValueOpt, node.ResultKind, node.Type);
Operations\CSharpOperationFactory.cs (3)
645IEventSymbol @event = boundEventAccess.EventSymbol.GetPublicSymbol(); 646IOperation? instance = CreateReceiverOperation(boundEventAccess.ReceiverOpt, boundEventAccess.EventSymbol); 650TypeParameterSymbol? constrainedToType = GetConstrainedToType(boundEventAccess.EventSymbol, boundEventAccess.ReceiverOpt);