2 instantiations of BoundEventAccess
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8769return new BoundEventAccess(node, receiver, eventSymbol, isUsableAsField, lookupResult, eventSymbol.Type, hasErrors: (hasErrors || hasError));
Generated\BoundNodes.xml.Generated.cs (1)
7401var result = new BoundEventAccess(this.Syntax, receiverOpt, eventSymbol, isUsableAsField, resultKind, type, this.HasErrors);
61 references to BoundEventAccess
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder.ValueChecks.cs (7)
715return CheckEventValueKind((BoundEventAccess)expr, valueKind, diagnostics); 1542private bool CheckFieldLikeEventRefEscape(SyntaxNode node, BoundEventAccess eventAccess, uint escapeFrom, uint escapeTo, BindingDiagnosticBag diagnostics) 1559private bool CheckEventValueKind(BoundEventAccess boundEvent, BindValueKind valueKind, BindingDiagnosticBag diagnostics) 3423var eventAccess = (BoundEventAccess)expr; 3749var eventAccess = (BoundEventAccess)expr;
Binder\Binder_Operators.cs (5)
40return BindEventAssignment(node, (BoundEventAccess)left, right, kindOperator, diagnostics); 99if (left.Kind == BoundKind.EventAccess && !CheckEventValueKind((BoundEventAccess)left, BindValueKind.Assignable, diagnostics)) 258private BoundExpression BindEventAssignment(AssignmentExpressionSyntax node, BoundEventAccess left, BoundExpression right, BinaryOperatorKind opKind, BindingDiagnosticBag diagnostics) 2584BoundEventAccess eventAccess = (BoundEventAccess)expr;
Binder\Binder_Statements.cs (2)
1512((BoundEventAccess)op1).EventSymbol.IsWindowsRuntimeEvent) 1721private static SyntaxNode GetEventName(BoundEventAccess expr)
FlowAnalysis\AbstractFlowPass.cs (3)
594BoundEventAccess node1 = (BoundEventAccess)node; 2291public override BoundNode VisitEventAccess(BoundEventAccess node)
FlowAnalysis\DataFlowsOutWalker.cs (2)
172var eventAccess = (BoundEventAccess)node;
FlowAnalysis\DefiniteAssignment.cs (11)
809var eventAccess = (BoundEventAccess)n; 992var eventAccess = (BoundEventAccess)n; 1090var eventAccess = (BoundEventAccess)expr; 1417var eventAccess = (BoundEventAccess)node; 2611var @event = (BoundEventAccess)expr; 2744public override BoundNode VisitEventAccess(BoundEventAccess node)
FlowAnalysis\NullableWalker.cs (4)
1964var eventAccess = (BoundEventAccess)expr; 9948if (left.Kind == BoundKind.EventAccess && ((BoundEventAccess)left).EventSymbol.IsWindowsRuntimeEvent) 10751public override BoundNode? VisitEventAccess(BoundEventAccess node)
Generated\BoundNodes.xml.Generated.cs (10)
7397public BoundEventAccess Update(BoundExpression? receiverOpt, EventSymbol eventSymbol, bool isUsableAsField, LookupResultKind resultKind, TypeSymbol type) 7401var result = new BoundEventAccess(this.Syntax, receiverOpt, eventSymbol, isUsableAsField, resultKind, type, this.HasErrors); 9219return VisitEventAccess((BoundEventAccess)node, arg); 9497public virtual R VisitEventAccess(BoundEventAccess node, A arg) => this.DefaultVisit(node, arg); 9733public virtual BoundNode? VisitEventAccess(BoundEventAccess node) => this.DefaultVisit(node); 10606public override BoundNode? VisitEventAccess(BoundEventAccess node) 11945public override BoundNode? VisitEventAccess(BoundEventAccess node) 14465public override BoundNode? VisitEventAccess(BoundEventAccess node) 14469BoundEventAccess updatedNode; 16734public override TreeDumperNode VisitEventAccess(BoundEventAccess node, object? arg) => new TreeDumperNode("eventAccess", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
271public override BoundNode VisitEventAccess(BoundEventAccess node)
Lowering\DiagnosticsPass_Warnings.cs (4)
213var event1 = (BoundEventAccess)expr1; 214var event2 = (BoundEventAccess)expr2;
Lowering\LocalRewriter\LocalRewriter.cs (2)
1053var eventAccess = (BoundEventAccess)expr;
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (4)
45BoundEventAccess eventAccess = (BoundEventAccess)left; 117var eventAccess = (BoundEventAccess)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
721var eventAccess = (BoundEventAccess)originalLHS;
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
191private BoundExpression VisitWindowsRuntimeEventFieldAssignmentOperator(SyntaxNode syntax, BoundEventAccess left, BoundExpression rewrittenRight) 209public override BoundNode VisitEventAccess(BoundEventAccess node)
Operations\CSharpOperationFactory.cs (2)
52return CreateBoundEventAccessOperation((BoundEventAccess)boundNode); 643private IEventReferenceOperation CreateBoundEventAccessOperation(BoundEventAccess boundEventAccess)