2 instantiations of BoundEventAccess
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8772
return new
BoundEventAccess
(node, receiver, eventSymbol, isUsableAsField, lookupResult, eventSymbol.Type, hasErrors: (hasErrors || hasError));
Generated\BoundNodes.xml.Generated.cs (1)
7402
var 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)
692
return CheckEventValueKind((
BoundEventAccess
)expr, valueKind, diagnostics);
1519
private bool CheckFieldLikeEventRefEscape(SyntaxNode node,
BoundEventAccess
eventAccess, SafeContext escapeFrom, SafeContext escapeTo, BindingDiagnosticBag diagnostics)
1536
private bool CheckEventValueKind(
BoundEventAccess
boundEvent, BindValueKind valueKind, BindingDiagnosticBag diagnostics)
3400
var
eventAccess = (
BoundEventAccess
)expr;
3726
var
eventAccess = (
BoundEventAccess
)expr;
Binder\Binder_Operators.cs (5)
40
return BindEventAssignment(node, (
BoundEventAccess
)left, right, kindOperator, diagnostics);
99
if (left.Kind == BoundKind.EventAccess && !CheckEventValueKind((
BoundEventAccess
)left, BindValueKind.Assignable, diagnostics))
258
private BoundExpression BindEventAssignment(AssignmentExpressionSyntax node,
BoundEventAccess
left, BoundExpression right, BinaryOperatorKind opKind, BindingDiagnosticBag diagnostics)
2584
BoundEventAccess
eventAccess = (
BoundEventAccess
)expr;
Binder\Binder_Statements.cs (2)
1514
((
BoundEventAccess
)op1).EventSymbol.IsWindowsRuntimeEvent)
1724
private static SyntaxNode GetEventName(
BoundEventAccess
expr)
FlowAnalysis\AbstractFlowPass.cs (3)
594
BoundEventAccess
node1 = (
BoundEventAccess
)node;
2291
public override BoundNode VisitEventAccess(
BoundEventAccess
node)
FlowAnalysis\DataFlowsOutWalker.cs (2)
172
var
eventAccess = (
BoundEventAccess
)node;
FlowAnalysis\DefiniteAssignment.cs (11)
809
var
eventAccess = (
BoundEventAccess
)n;
992
var
eventAccess = (
BoundEventAccess
)n;
1090
var
eventAccess = (
BoundEventAccess
)expr;
1417
var
eventAccess = (
BoundEventAccess
)node;
2611
var
@event = (
BoundEventAccess
)expr;
2744
public override BoundNode VisitEventAccess(
BoundEventAccess
node)
FlowAnalysis\NullableWalker.cs (4)
1964
var
eventAccess = (
BoundEventAccess
)expr;
9945
if (left.Kind == BoundKind.EventAccess && ((
BoundEventAccess
)left).EventSymbol.IsWindowsRuntimeEvent)
10748
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
Generated\BoundNodes.xml.Generated.cs (10)
7398
public
BoundEventAccess
Update(BoundExpression? receiverOpt, EventSymbol eventSymbol, bool isUsableAsField, LookupResultKind resultKind, TypeSymbol type)
7402
var
result = new BoundEventAccess(this.Syntax, receiverOpt, eventSymbol, isUsableAsField, resultKind, type, this.HasErrors);
9220
return VisitEventAccess((
BoundEventAccess
)node, arg);
9498
public virtual R VisitEventAccess(
BoundEventAccess
node, A arg) => this.DefaultVisit(node, arg);
9734
public virtual BoundNode? VisitEventAccess(
BoundEventAccess
node) => this.DefaultVisit(node);
10607
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
11946
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
14466
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
14470
BoundEventAccess
updatedNode;
16735
public override TreeDumperNode VisitEventAccess(
BoundEventAccess
node, object? arg) => new TreeDumperNode("eventAccess", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
271
public override BoundNode VisitEventAccess(
BoundEventAccess
node)
Lowering\DiagnosticsPass_Warnings.cs (4)
213
var
event1 = (
BoundEventAccess
)expr1;
214
var
event2 = (
BoundEventAccess
)expr2;
Lowering\LocalRewriter\LocalRewriter.cs (2)
1053
var
eventAccess = (
BoundEventAccess
)expr;
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (4)
45
BoundEventAccess
eventAccess = (
BoundEventAccess
)left;
117
var
eventAccess = (
BoundEventAccess
)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
721
var
eventAccess = (
BoundEventAccess
)originalLHS;
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
191
private BoundExpression VisitWindowsRuntimeEventFieldAssignmentOperator(SyntaxNode syntax,
BoundEventAccess
left, BoundExpression rewrittenRight)
209
public override BoundNode VisitEventAccess(
BoundEventAccess
node)
Operations\CSharpOperationFactory.cs (2)
52
return CreateBoundEventAccessOperation((
BoundEventAccess
)boundNode);
643
private IEventReferenceOperation CreateBoundEventAccessOperation(
BoundEventAccess
boundEventAccess)