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