1 write to Event
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6206
this.
Event
= @event;
24 references to Event
Microsoft.CodeAnalysis.CSharp (24)
Compilation\CSharpSemanticModel.cs (3)
3498
var eventSymbol = eventAssignment.
Event
;
3515
parentOperator.
Event
.Equals(accessSymbol, TypeCompareKind.AllNullableIgnoreOptions):
3519
symbols = OneOrMany.Create<Symbol>(parentOperator.
Event
);
FlowAnalysis\NullableWalker.cs (2)
11687
var @event = node.
Event
;
11694
SetUpdatedSymbol(node, node.
Event
, @event);
Generated\BoundNodes.xml.Generated.cs (4)
6225
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(@event, this.
Event
) || isAddition != this.IsAddition || isDynamic != this.IsDynamic || receiverOpt != this.ReceiverOpt || argument != this.Argument || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11749
return node.Update(node.
Event
, node.IsAddition, node.IsDynamic, receiverOpt, argument, type);
13950
EventSymbol @event = GetUpdatedSymbol(node, node.
Event
);
16405
new TreeDumperNode("@event", node.
Event
, null),
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
292
Binder.ReportDiagnosticsIfObsolete(_diagnostics, node.
Event
, ((AssignmentExpressionSyntax)node.Syntax).Left, hasBaseReceiver, _containingSymbol, _containingSymbol.ContainingType, BinderFlags.None);
Lowering\LocalRewriter\LocalRewriter_Event.cs (11)
24
if (rewrittenReceiverOpt != null && node.
Event
.ContainingAssembly.IsLinked && node.
Event
.ContainingType.IsInterfaceType())
26
var @interface = node.
Event
.ContainingType;
48
if (node.
Event
.IsWindowsRuntimeEvent)
51
return RewriteWindowsRuntimeEventAssignmentOperator(node.Syntax, node.
Event
, kind, rewrittenReceiverOpt, rewrittenArgument);
56
MethodSymbol? method = node.IsAddition ? node.
Event
.AddMethod : node.
Event
.RemoveMethod;
310
BoundExpression eventInfo = _factory.New(ctor, _factory.Typeof(node.
Event
.ContainingType, ctor.Parameters[0].Type), _factory.Literal(node.
Event
.MetadataName));
325
module.EmbeddedTypesManagerOpt.EmbedEventIfNeedTo(node.
Event
.GetCciAdapter(), node.Syntax, _diagnostics.DiagnosticBag, isUsedForComAwareEventBinding: true);
333
return new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray.Create<Symbol?>(node.
Event
),
Operations\CSharpOperationFactory_Methods.cs (3)
132
IEventSymbol @event = boundEventAssignmentOperator.
Event
.GetPublicSymbol();
133
IOperation? instance = CreateReceiverOperation(boundEventAssignmentOperator.ReceiverOpt, boundEventAssignmentOperator.
Event
);
136
TypeParameterSymbol? constrainedToType = GetConstrainedToType(boundEventAssignmentOperator.
Event
, boundEventAssignmentOperator.ReceiverOpt);