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