75 references to EventRemove
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
212and not MethodKind.EventRemove;
Microsoft.CodeAnalysis (1)
Symbols\IMethodSymbol.cs (1)
235/// If this method has <see cref="MethodKind"/> of <see cref="MethodKind.EventAdd"/> or <see cref="MethodKind.EventRemove"/>,
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
616=> symbol is IMethodSymbol { MethodKind: MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.EventRemove };
Microsoft.CodeAnalysis.CSharp (13)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
454case MethodKind.EventRemove:
Symbols\Metadata\PE\PEEventSymbol.cs (1)
126_removeMethod.SetAssociatedEvent(this, MethodKind.EventRemove);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
796Debug.Assert((methodKind == MethodKind.EventAdd) || (methodKind == MethodKind.EventRemove));
Symbols\MethodSymbol.cs (1)
614case MethodKind.EventRemove:
Symbols\MethodSymbolExtensions.cs (1)
136case MethodKind.EventRemove:
Symbols\PublicModel\MethodSymbol.cs (2)
51case MethodKind.EventRemove: 52return MethodKind.EventRemove;
Symbols\Source\SourceEventAccessorSymbol.cs (2)
36isAdder ? MethodKind.EventAdd : MethodKind.EventRemove, 127Debug.Assert(this.MethodKind == MethodKind.EventRemove);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4087case MethodKind.EventRemove:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
162case MethodKind.EventRemove: 1668case MethodKind.EventRemove:
Symbols\TypeSymbol.cs (1)
1572case MethodKind.EventRemove:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\EventTests.cs (1)
222Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\GetSemanticInfoTests.cs (1)
1201Assert.Equal(MethodKind.EventRemove, ((IMethodSymbol)parameterSymbol.ContainingSymbol).MethodKind);
Symbols\Metadata\PE\LoadingEvents.cs (1)
101case MethodKind.EventRemove:
Symbols\Source\EventTests.cs (4)
94Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind); 132Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind); 171Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind); 206Assert.Equal(MethodKind.EventRemove, removeMethod.MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (10)
25750Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 25845Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 26390Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 26652Assert.Equal(MethodKind.EventRemove, cM01Remove.MethodKind); 26986Assert.Equal(MethodKind.EventRemove, c1M01Remove.MethodKind); 27006Assert.Equal(MethodKind.EventRemove, c2M01Remove.MethodKind); 27147Assert.Equal(MethodKind.EventRemove, c1M01Remove.MethodKind); 27225Assert.Equal(MethodKind.EventRemove, c2M01Remove.MethodKind); 27258Assert.Equal(MethodKind.EventRemove, c3M02Remove.MethodKind); 27339Assert.Equal(MethodKind.EventRemove, c4M02Remove.MethodKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
576case MethodKind.EventRemove:
Microsoft.CodeAnalysis.Features (4)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
149case MethodKind.EventRemove:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
359MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.EventRemove => FeaturesResources.event_accessor,
RQName\RQNodeBuilder.cs (1)
203MethodKind.EventRemove or
Shared\Extensions\ISymbolExtensions_2.cs (1)
255case MethodKind.EventRemove:
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
123new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.EventRemove, ReturnsVoid = true },
Microsoft.CodeAnalysis.VisualBasic (23)
Binding\Binder_Utils.vb (2)
1532Case MethodKind.EventRemove 1653MethodKindEventRemove = CUInt(MethodKind.EventRemove) << MethodKindShift
Compilation\ClsComplianceChecker.vb (1)
232Case MethodKind.EventAdd, MethodKind.EventRemove
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
224MethodKind.EventRemove, 236symbol.MethodKind = MethodKind.EventRemove, 322MethodKind.EventRemove,
Symbols\Metadata\PE\PEEventSymbol.vb (1)
94Me._removeMethod.SetAssociatedEvent(Me, MethodKind.EventRemove)
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
1017Debug.Assert((methodKind = MethodKind.EventAdd) OrElse (methodKind = MethodKind.EventRemove) OrElse (methodKind = MethodKind.EventRaise))
Symbols\MethodKindExtensions.vb (1)
22Case MethodKind.EventRemove
Symbols\Source\CustomEventAccessorSymbol.vb (1)
220Debug.Assert(Me.MethodKind = MethodKind.EventRemove)
Symbols\Source\OverrideHidingHelper.vb (1)
500MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.EventRemove,
Symbols\Source\SourceEventSymbol.vb (2)
111Case MethodKind.EventRemove 404Case MethodKind.EventRemove
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
961Case MethodKind.EventAdd, MethodKind.EventRemove, MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceMethodSymbol.vb (3)
1816Case MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.EventRemove 1996MethodKind.EventRemove, 2288MethodKind.EventRemove,
Symbols\Source\SourceParameterSymbol.vb (1)
211MethodKind.EventRemove
Symbols\Source\SynthesizedEventAccessorSymbol.vb (3)
54If Me.MethodKind = MethodKind.EventRemove AndAlso m_propertyOrEvent.IsWindowsRuntimeEvent Then 84useSiteInfo = If(Me.MethodKind = MethodKind.EventRemove, Binder.GetUseSiteInfoForSpecialType(type), Nothing) 558Return MethodKind.EventRemove
Symbols\SubstitutedNamedType.vb (1)
467Case MethodKind.EventRemove
Symbols\Symbol_Attributes.vb (1)
86MethodKind.EventRemove,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\PE\LoadingEvents.vb (1)
108Case MethodKind.EventRemove
SymbolsTests\Source\EventTests.vb (1)
1736Assert.Equal(MethodKind.EventRemove, DirectCast(mems(4), MethodSymbol).MethodKind)
Microsoft.CodeAnalysis.Workspaces (3)
Recommendations\AbstractRecommendationService.cs (1)
90case MethodKind.EventRemove:
Shared\Extensions\ISymbolExtensions_2.cs (1)
18MethodKind.EventRemove or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
616=> symbol is IMethodSymbol { MethodKind: MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.EventRemove };
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
999MethodKind.EventRemove or 1497SyntaxKind.RemoveAccessorDeclaration => MethodKind.EventRemove, 1507MethodKind.EventRemove => SyntaxKind.RemoveAccessorDeclaration, 2206case MethodKind.EventRemove:
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (4)
1105Return MethodKind.EventRemove 1121Case MethodKind.EventRemove 1390methodSymbol.MethodKind = MethodKind.EventRemove OrElse 2562Case MethodKind.EventRemove