2 instantiations of BoundEventAccess
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8772return new BoundEventAccess(node, receiver, eventSymbol, isUsableAsField, lookupResult, eventSymbol.Type, hasErrors: (hasErrors || hasError));
Generated\BoundNodes.xml.Generated.cs (1)
7402var 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)
692return CheckEventValueKind((BoundEventAccess)expr, valueKind, diagnostics); 1519private bool CheckFieldLikeEventRefEscape(SyntaxNode node, BoundEventAccess eventAccess, SafeContext escapeFrom, SafeContext escapeTo, BindingDiagnosticBag diagnostics) 1536private bool CheckEventValueKind(BoundEventAccess boundEvent, BindValueKind valueKind, BindingDiagnosticBag diagnostics) 3400var eventAccess = (BoundEventAccess)expr; 3726var 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)
1514((BoundEventAccess)op1).EventSymbol.IsWindowsRuntimeEvent) 1724private 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; 9945if (left.Kind == BoundKind.EventAccess && ((BoundEventAccess)left).EventSymbol.IsWindowsRuntimeEvent) 10748public override BoundNode? VisitEventAccess(BoundEventAccess node)
Generated\BoundNodes.xml.Generated.cs (10)
7398public BoundEventAccess Update(BoundExpression? receiverOpt, EventSymbol eventSymbol, bool isUsableAsField, LookupResultKind resultKind, TypeSymbol type) 7402var result = new BoundEventAccess(this.Syntax, receiverOpt, eventSymbol, isUsableAsField, resultKind, type, this.HasErrors); 9220return VisitEventAccess((BoundEventAccess)node, arg); 9498public virtual R VisitEventAccess(BoundEventAccess node, A arg) => this.DefaultVisit(node, arg); 9734public virtual BoundNode? VisitEventAccess(BoundEventAccess node) => this.DefaultVisit(node); 10607public override BoundNode? VisitEventAccess(BoundEventAccess node) 11946public override BoundNode? VisitEventAccess(BoundEventAccess node) 14466public override BoundNode? VisitEventAccess(BoundEventAccess node) 14470BoundEventAccess updatedNode; 16735public 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)