2 instantiations of BoundEventAccess
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8769
return new
BoundEventAccess
(node, receiver, eventSymbol, isUsableAsField, lookupResult, eventSymbol.Type, hasErrors: (hasErrors || hasError));
Generated\BoundNodes.xml.Generated.cs (1)
7401
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)
715
return CheckEventValueKind((
BoundEventAccess
)expr, valueKind, diagnostics);
1542
private bool CheckFieldLikeEventRefEscape(SyntaxNode node,
BoundEventAccess
eventAccess, uint escapeFrom, uint escapeTo, BindingDiagnosticBag diagnostics)
1559
private bool CheckEventValueKind(
BoundEventAccess
boundEvent, BindValueKind valueKind, BindingDiagnosticBag diagnostics)
3423
var
eventAccess = (
BoundEventAccess
)expr;
3749
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)
1512
((
BoundEventAccess
)op1).EventSymbol.IsWindowsRuntimeEvent)
1721
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;
9948
if (left.Kind == BoundKind.EventAccess && ((
BoundEventAccess
)left).EventSymbol.IsWindowsRuntimeEvent)
10751
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
Generated\BoundNodes.xml.Generated.cs (10)
7397
public
BoundEventAccess
Update(BoundExpression? receiverOpt, EventSymbol eventSymbol, bool isUsableAsField, LookupResultKind resultKind, TypeSymbol type)
7401
var
result = new BoundEventAccess(this.Syntax, receiverOpt, eventSymbol, isUsableAsField, resultKind, type, this.HasErrors);
9219
return VisitEventAccess((
BoundEventAccess
)node, arg);
9497
public virtual R VisitEventAccess(
BoundEventAccess
node, A arg) => this.DefaultVisit(node, arg);
9733
public virtual BoundNode? VisitEventAccess(
BoundEventAccess
node) => this.DefaultVisit(node);
10606
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
11945
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
14465
public override BoundNode? VisitEventAccess(
BoundEventAccess
node)
14469
BoundEventAccess
updatedNode;
16734
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)