87 references to EventRemove
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
212
and 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.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
612
=> symbol is IMethodSymbol { MethodKind: MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.
EventRemove
};
Microsoft.CodeAnalysis.CSharp (14)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
454
case MethodKind.
EventRemove
:
Symbols\Metadata\PE\PEEventSymbol.cs (1)
126
_removeMethod.SetAssociatedEvent(this, MethodKind.
EventRemove
);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
796
Debug.Assert((methodKind == MethodKind.EventAdd) || (methodKind == MethodKind.
EventRemove
));
Symbols\MethodSymbol.cs (1)
614
case MethodKind.
EventRemove
:
Symbols\MethodSymbolExtensions.cs (1)
136
case MethodKind.
EventRemove
:
Symbols\PublicModel\MethodSymbol.cs (2)
51
case MethodKind.
EventRemove
:
52
return MethodKind.
EventRemove
;
Symbols\Source\SourceEventAccessorSymbol.cs (2)
36
isAdder ? MethodKind.EventAdd : MethodKind.
EventRemove
,
127
Debug.Assert(this.MethodKind == MethodKind.
EventRemove
);
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4580
case MethodKind.
EventRemove
:
4621
case MethodKind.
EventRemove
:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
162
case MethodKind.
EventRemove
:
1668
case MethodKind.
EventRemove
:
Symbols\TypeSymbol.cs (1)
1582
case MethodKind.
EventRemove
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\EventTests.cs (1)
222
Assert.Equal(MethodKind.
EventRemove
, removeMethod.MethodKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\GetSemanticInfoTests.cs (1)
1201
Assert.Equal(MethodKind.
EventRemove
, ((IMethodSymbol)parameterSymbol.ContainingSymbol).MethodKind);
Symbols\Metadata\PE\LoadingEvents.cs (1)
101
case MethodKind.
EventRemove
:
Symbols\Source\EventTests.cs (4)
94
Assert.Equal(MethodKind.
EventRemove
, removeMethod.MethodKind);
132
Assert.Equal(MethodKind.
EventRemove
, removeMethod.MethodKind);
171
Assert.Equal(MethodKind.
EventRemove
, removeMethod.MethodKind);
206
Assert.Equal(MethodKind.
EventRemove
, removeMethod.MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (10)
25732
Assert.Equal(MethodKind.
EventRemove
, cM01Remove.MethodKind);
25827
Assert.Equal(MethodKind.
EventRemove
, cM01Remove.MethodKind);
26372
Assert.Equal(MethodKind.
EventRemove
, cM01Remove.MethodKind);
26634
Assert.Equal(MethodKind.
EventRemove
, cM01Remove.MethodKind);
26968
Assert.Equal(MethodKind.
EventRemove
, c1M01Remove.MethodKind);
26988
Assert.Equal(MethodKind.
EventRemove
, c2M01Remove.MethodKind);
27129
Assert.Equal(MethodKind.
EventRemove
, c1M01Remove.MethodKind);
27207
Assert.Equal(MethodKind.
EventRemove
, c2M01Remove.MethodKind);
27240
Assert.Equal(MethodKind.
EventRemove
, c3M02Remove.MethodKind);
27321
Assert.Equal(MethodKind.
EventRemove
, c4M02Remove.MethodKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
576
case MethodKind.
EventRemove
:
Microsoft.CodeAnalysis.Features (4)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
149
case MethodKind.
EventRemove
:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
353
MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.
EventRemove
=> FeaturesResources.event_accessor,
RQName\RQNodeBuilder.cs (1)
203
MethodKind.
EventRemove
or
Shared\Extensions\ISymbolExtensions_2.cs (1)
256
case MethodKind.
EventRemove
:
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
DeclarePublicApiAnalyzer.Impl.cs (1)
69
= ImmutableArray.Create(MethodKind.EventAdd, MethodKind.
EventRemove
);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
123
new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.
EventRemove
, ReturnsVoid = true },
Microsoft.CodeAnalysis.VisualBasic (23)
Binding\Binder_Utils.vb (2)
1532
Case MethodKind.
EventRemove
1653
MethodKindEventRemove = CUInt(MethodKind.
EventRemove
) << MethodKindShift
Compilation\ClsComplianceChecker.vb (1)
232
Case MethodKind.EventAdd, MethodKind.
EventRemove
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
224
MethodKind.
EventRemove
,
236
symbol.MethodKind = MethodKind.
EventRemove
,
322
MethodKind.
EventRemove
,
Symbols\Metadata\PE\PEEventSymbol.vb (1)
94
Me._removeMethod.SetAssociatedEvent(Me, MethodKind.
EventRemove
)
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
1017
Debug.Assert((methodKind = MethodKind.EventAdd) OrElse (methodKind = MethodKind.
EventRemove
) OrElse (methodKind = MethodKind.EventRaise))
Symbols\MethodKindExtensions.vb (1)
22
Case MethodKind.
EventRemove
Symbols\Source\CustomEventAccessorSymbol.vb (1)
220
Debug.Assert(Me.MethodKind = MethodKind.
EventRemove
)
Symbols\Source\OverrideHidingHelper.vb (1)
500
MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.
EventRemove
,
Symbols\Source\SourceEventSymbol.vb (2)
111
Case MethodKind.
EventRemove
404
Case MethodKind.
EventRemove
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
962
Case MethodKind.EventAdd, MethodKind.
EventRemove
, MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceMethodSymbol.vb (3)
1816
Case MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.
EventRemove
1996
MethodKind.
EventRemove
,
2288
MethodKind.
EventRemove
,
Symbols\Source\SourceParameterSymbol.vb (1)
211
MethodKind.
EventRemove
Symbols\Source\SynthesizedEventAccessorSymbol.vb (3)
54
If Me.MethodKind = MethodKind.
EventRemove
AndAlso m_propertyOrEvent.IsWindowsRuntimeEvent Then
84
useSiteInfo = If(Me.MethodKind = MethodKind.
EventRemove
, Binder.GetUseSiteInfoForSpecialType(type), Nothing)
558
Return MethodKind.
EventRemove
Symbols\SubstitutedNamedType.vb (1)
473
Case MethodKind.
EventRemove
Symbols\Symbol_Attributes.vb (1)
86
MethodKind.
EventRemove
,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\PE\LoadingEvents.vb (1)
108
Case MethodKind.
EventRemove
SymbolsTests\Source\EventTests.vb (1)
1736
Assert.Equal(MethodKind.
EventRemove
, DirectCast(mems(4), MethodSymbol).MethodKind)
Microsoft.CodeAnalysis.Workspaces (3)
Recommendations\AbstractRecommendationService.cs (1)
90
case MethodKind.
EventRemove
:
Shared\Extensions\ISymbolExtensions_2.cs (1)
18
MethodKind.
EventRemove
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
612
=> symbol is IMethodSymbol { MethodKind: MethodKind.EventAdd or MethodKind.EventRaise or MethodKind.
EventRemove
};
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
999
MethodKind.
EventRemove
or
1497
SyntaxKind.RemoveAccessorDeclaration => MethodKind.
EventRemove
,
1507
MethodKind.
EventRemove
=> SyntaxKind.RemoveAccessorDeclaration,
2206
case MethodKind.
EventRemove
:
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (4)
1105
Return MethodKind.
EventRemove
1121
Case MethodKind.
EventRemove
1390
methodSymbol.MethodKind = MethodKind.
EventRemove
OrElse
2562
Case MethodKind.
EventRemove
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
455
MethodKind.
EventRemove
;