4 overrides of AddMethod
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
334public override MethodSymbol AddMethod
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
57public override MethodSymbol? AddMethod
Symbols\Source\SourceEventSymbol.cs (1)
85public abstract override MethodSymbol? AddMethod { get; }
Symbols\SubstitutedEventSymbol.cs (1)
59public override MethodSymbol? AddMethod
22 references to AddMethod
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Lookup.cs (1)
1559method1 = @event.AddMethod;
Binder\Binder_Operators.cs (1)
284MethodSymbol method = isAddition ? eventSymbol.AddMethod : eventSymbol.RemoveMethod;
Compilation\CSharpSemanticModel.cs (1)
3499var methodSymbol = eventAssignment.IsAddition ? eventSymbol.AddMethod : eventSymbol.RemoveMethod;
Emitter\Model\EventSymbolAdapter.cs (2)
31var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); 51var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter();
Emitter\NoPia\EmbeddedTypesManager.cs (1)
572var addMethod = @event.AdaptedEventSymbol.AddMethod?.GetCciAdapter();
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
56MethodSymbol? method = node.IsAddition ? node.Event.AddMethod : node.Event.RemoveMethod; 146methodOpt: eventSymbol.AddMethod,
Symbols\EventSymbol.cs (1)
162MethodSymbol? accessor = AddMethod ?? RemoveMethod;
Symbols\MemberSymbolExtensions.cs (2)
139return isImplementableAndNotPublic(eventSymbol.AddMethod) || isImplementableAndNotPublic(eventSymbol.RemoveMethod); 497MethodSymbol addMethod = @event.AddMethod;
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
352MethodSymbol correspondingAccessor = accessorIsAdder ? eventHiddenByEvent.AddMethod : eventHiddenByEvent.RemoveMethod;
Symbols\PublicModel\EventSymbol.cs (1)
44return _underlying.AddMethod.GetPublicSymbol();
Symbols\Retargeting\RetargetingEventSymbol.cs (2)
61return (object?)_underlyingEvent.AddMethod == null 63: this.RetargetingTranslator.Retarget(_underlyingEvent.AddMethod);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
324checkAccessorIsAccessibleIfImplementable(eventSymbol.AddMethod);
Symbols\Source\SourceEventAccessorSymbol.cs (1)
60MethodSymbol implementedAccessor = isAdder ? explicitlyImplementedEventOpt.AddMethod : explicitlyImplementedEventOpt.RemoveMethod;
Symbols\Source\SourceEventSymbol.cs (1)
771CheckExplicitImplementationAccessor(AddMethod, explicitlyImplementedEvent.AddMethod, explicitlyImplementedEvent, diagnostics);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3940var locationFrom = (Symbol?)(isAdder ? propertySymbol.AddMethod : propertySymbol.RemoveMethod) ?? propertySymbol;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
612var addMethod = @event.AddMethod;
Symbols\SubstitutedEventSymbol.cs (1)
63MethodSymbol? originalAddMethod = OriginalDefinition.AddMethod;
Symbols\TypeSymbol.cs (1)
1413interfaceAccessor1 = interfaceEvent.AddMethod;