356 references to Event
ILLink.RoslynAnalyzer (1)
DataFlow\DynamicallyAccessedMembersBinder.cs (1)
415 case SymbolKind.Event:
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
56SymbolKind.Event);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
56SymbolKind.Event);
Microsoft.CodeAnalysis (6)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1130case SymbolKind.Event:
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
217singleResult = candidateMembers.FirstOrDefault(s => s.Kind == SymbolKind.Event);
DocumentationCommentId.cs (3)
741kind = SymbolKind.Event; 847case SymbolKind.Event: 1371if (symbol.Kind == SymbolKind.Event)
Symbols\SymbolKindExtensions.cs (1)
21case SymbolKind.Event:
Microsoft.CodeAnalysis.CodeStyle (18)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
771case SymbolKind.Event:
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
193compilationStartContext.RegisterSymbolAction(AnalyzeSymbolDeclaration, SymbolKind.Method, SymbolKind.Field, SymbolKind.Property, SymbolKind.Event); 856case SymbolKind.Event:
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
217singleResult = candidateMembers.FirstOrDefault(s => s.Kind == SymbolKind.Event);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
116if (symbol.Kind is SymbolKind.Event or SymbolKind.Property) 147if (symbol.Kind is not SymbolKind.Method and not SymbolKind.Property and not SymbolKind.Event) 175if (symbol.Kind == SymbolKind.Event)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
143case SymbolKind.Event:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
133private static readonly SymbolKindOrTypeKind _event = new(SymbolKind.Event); 422case SymbolKind.Event:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
18[SymbolKind.Method, SymbolKind.Property, SymbolKind.Event];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
78new SymbolKindOrTypeKind(SymbolKind.Event),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
49SymbolKind.Event => QualifyEventAccess,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
43SymbolKind.Event => HaveSameSignature((IEventSymbol)symbol1, (IEventSymbol)symbol2, caseSensitive), 163case SymbolKind.Event:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
119SymbolKind.Event => EventsAreEquivalent((IEventSymbol)x, (IEventSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
61SymbolKind.Event => CombineHashCodes((IEventSymbol)x, currentHash),
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (1)
44public override SymbolKind Kind => SymbolKind.Event;
Microsoft.CodeAnalysis.CSharp (114)
Binder\Binder.cs (2)
609case SymbolKind.Event: 646symbol.Kind == SymbolKind.Event ||
Binder\Binder.ValueChecks.cs (2)
1627&& symbol.Kind != SymbolKind.Event 1903Debug.Assert(member.Kind != SymbolKind.Event);
Binder\Binder_Expressions.cs (5)
1953if (symbol.Kind is not (SymbolKind.Event or SymbolKind.Property)) 2171case SymbolKind.Event: 8180case SymbolKind.Event: 8276if (symbol.Kind is not (SymbolKind.Event or SymbolKind.Property)) 8314case SymbolKind.Event:
Binder\Binder_Lookup.cs (4)
1556case SymbolKind.Event: 1715case SymbolKind.Event: 1733case SymbolKind.Event: // Spec says it doesn't matter whether it is field-like 1755case SymbolKind.Event:
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
557return (SourceEventSymbol)GetMemberSymbol(eventName, eventDeclarationSyntax.Span, container, SymbolKind.Event); 562Debug.Assert(kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event);
Binder\ContextualAttributeBinder.cs (1)
60case SymbolKind.Event:
Binder\Semantics\AccessCheck.cs (2)
74case SymbolKind.Event: 202case SymbolKind.Event:
Compilation\CSharpCompilation.cs (1)
4723case SymbolKind.Event:
Compilation\CSharpSemanticModel.cs (1)
5265case SymbolKind.Event: // for field-like events
Compiler\ClsComplianceChecker.cs (2)
428symbolKind == SymbolKind.Event || 727case SymbolKind.Event:
Compiler\DocumentationCommentCompiler.cs (2)
142symbol.Kind == SymbolKind.Event || 628case SymbolKind.Event:
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
944if (m.Kind == SymbolKind.Event)
Emitter\Model\PEModuleBuilder.cs (1)
414case SymbolKind.Event:
Emitter\NoPia\EmbeddedType.cs (1)
310case SymbolKind.Event:
Emitter\NoPia\EmbeddedTypesManager.cs (1)
517case SymbolKind.Event:
FlowAnalysis\DefiniteAssignment.cs (1)
288Debug.Assert(variableId.Symbol.Kind == SymbolKind.Field || variableId.Symbol.Kind == SymbolKind.Property || variableId.Symbol.Kind == SymbolKind.Event,
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
34SymbolKind.Event => true,
FlowAnalysis\EmptyStructTypeCache.cs (1)
207case SymbolKind.Event:
FlowAnalysis\NullableWalker.cs (5)
1084case SymbolKind.Event: 1118member.Kind != SymbolKind.Event) 1930case SymbolKind.Event: 2752Debug.Assert(member.Kind == SymbolKind.Field || member.Kind == SymbolKind.Property || member.Kind == SymbolKind.Event); 7208case SymbolKind.Event:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
917case SymbolKind.Event: 932case SymbolKind.Event:
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
163Debug.Assert(propertyOrEvent.Kind == SymbolKind.Property || propertyOrEvent.Kind == SymbolKind.Event); 461Debug.Assert(fieldOrEvent.Kind == SymbolKind.Field || fieldOrEvent.Kind == SymbolKind.Event);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
707case SymbolKind.Event:
Operations\CSharpOperationFactory.cs (1)
873case SymbolKind.Event:
Symbols\Attributes\AttributeData.cs (1)
700case SymbolKind.Event:
Symbols\BaseTypeAnalysis.cs (1)
191case SymbolKind.Event:
Symbols\EventSymbol.cs (1)
238return SymbolKind.Event;
Symbols\MemberSignatureComparer.cs (1)
857case SymbolKind.Event:
Symbols\MemberSymbolExtensions.cs (16)
41case SymbolKind.Event: 59case SymbolKind.Event: 73case SymbolKind.Event: 91case SymbolKind.Event: 106case SymbolKind.Event: 137case SymbolKind.Event: 229case SymbolKind.Event: 279case SymbolKind.Event: 333case SymbolKind.Event: 351case SymbolKind.Event: 541case SymbolKind.Event: 584case SymbolKind.Event: 600case SymbolKind.Event: 615case SymbolKind.Event: 634case SymbolKind.Event: 650case SymbolKind.Event:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
1162return GetMembers<EventSymbol>(this.GetMembers(), SymbolKind.Event); 1281Debug.Assert(SymbolKind.Property.ToSortOrder() < SymbolKind.Event.ToSortOrder()); 1282Debug.Assert(SymbolKind.Event.ToSortOrder() < SymbolKind.NamedType.ToSortOrder()); 1378Debug.Assert(field.AssociatedSymbol.Kind == SymbolKind.Event);
Symbols\MethodSymbolExtensions.cs (1)
113case SymbolKind.Event: // Events are not covered by CSemanticChecker::FindSymHiddenByMethPropAgg.
Symbols\NamedTypeSymbol.cs (1)
706case SymbolKind.Event:
Symbols\OverriddenOrHiddenMembersHelpers.cs (6)
86Debug.Assert(member.Kind == SymbolKind.Method || member.Kind == SymbolKind.Property || member.Kind == SymbolKind.Event); 106Debug.Assert(associatedPropertyOrEvent.Kind == SymbolKind.Event); 347if (hiddenByEvent.Kind == SymbolKind.Event) 876case SymbolKind.Event: 901case SymbolKind.Event: 919case SymbolKind.Event:
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1116if (retargetedMember.Kind == SymbolKind.Event)
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
322case SymbolKind.Event:
Symbols\Source\SourceAssemblySymbol.cs (1)
2732if ((object)associatedPropertyOrEvent != null && associatedPropertyOrEvent.Kind == SymbolKind.Event)
Symbols\Source\SourceEventSymbol.cs (1)
705if (interfaceMember.Kind == SymbolKind.Event && //quick check (necessary, not sufficient)
Symbols\Source\SourceMemberContainerSymbol.cs (5)
1530case SymbolKind.Event: 2329case SymbolKind.Event: 2392case SymbolKind.Event: 2692case SymbolKind.Event: 4084case SymbolKind.Event:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (10)
144case SymbolKind.Event: 203if (wasImplementingMemberFound && interfaceMemberKind == SymbolKind.Event) 426if (interfacePropertyOrEvent.Kind == SymbolKind.Event && implementingPropertyOrEvent.Kind == SymbolKind.Event && 610case SymbolKind.Event: 658sourceField.AssociatedSymbol.Kind != SymbolKind.Event); 753var overridingMemberIsEvent = overridingMember.Kind == SymbolKind.Event; 872var overridingMemberIsEvent = overridingMember.Kind == SymbolKind.Event; 1645case SymbolKind.Event: 1684case SymbolKind.Event:
Symbols\Source\SourceMemberFieldSymbol.cs (1)
463if ((object)associatedPropertyOrEvent != null && associatedPropertyOrEvent.Kind == SymbolKind.Event)
Symbols\Symbol.cs (4)
647case SymbolKind.Event: 1215case SymbolKind.Event: 1636case SymbolKind.Event: 1708case SymbolKind.Event:
Symbols\Symbol_Attributes.cs (1)
103case SymbolKind.Event:
Symbols\SymbolDistinguisher.cs (1)
61case SymbolKind.Event:
Symbols\SymbolExtensions.cs (3)
336case SymbolKind.Event: 510case SymbolKind.Event: 550SymbolKind.Event => ((EventSymbol)symbol).RequiresInstanceReceiver,
Symbols\SymbolKindExtensions.cs (1)
38case SymbolKind.Event:
Symbols\Tuples\TupleTypeSymbol.cs (2)
694case SymbolKind.Event: 1077case SymbolKind.Event:
Symbols\TypeSymbol.cs (6)
740case SymbolKind.Event: 806Debug.Assert(interfaceMember.Kind == SymbolKind.Method || interfaceMember.Kind == SymbolKind.Property || interfaceMember.Kind == SymbolKind.Event); 1410case SymbolKind.Event: 1768if (interfaceMember.Kind == SymbolKind.Event) 2016case SymbolKind.Event: 2410case SymbolKind.Event:
Symbols\TypeSymbolExtensions.cs (1)
1751case SymbolKind.Event:
Symbols\VarianceSafety.cs (1)
58case SymbolKind.Event:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
56if (symbol.Kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
245[InlineData("event System.EventHandler [|m|];", "event System.EventHandler M;", SymbolKind.Event, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
346if (symbol is not { Kind: SymbolKind.Event })
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (4)
180new SymbolKindOrTypeKind(SymbolKind.Event), 228new SymbolKindOrTypeKind(SymbolKind.Event), 344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })]
SymbolKey\SymbolKeyTestBase.cs (1)
169kinds.Add(SymbolKind.Event);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenTupleTest.cs (2)
16050Assert.Equal(SymbolKind.Event, m1E1.Kind); 16084Assert.Equal(SymbolKind.Event, m1E2.Kind);
CodeGen\EventTests.cs (1)
210Assert.Equal(SymbolKind.Event, @event.Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_Tuples.cs (1)
295case SymbolKind.Event:
Diagnostics\DiagnosticAnalyzerTests.cs (5)
516SymbolKind.Namespace, SymbolKind.NamedType, SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.Property); 2916TestSymbolStartAnalyzerCore(new SymbolStartAnalyzer(topLevelAction: false, SymbolKind.Event), 2990SymbolKind.Property, SymbolKind.Event, SymbolKind.Field, SymbolKind.Parameter }; 3084SymbolKind.Property, SymbolKind.Event, SymbolKind.Field, SymbolKind.Parameter }; 3144SymbolKind.Property, SymbolKind.Event, SymbolKind.Field, SymbolKind.Parameter };
Microsoft.CodeAnalysis.CSharp.Features (2)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
30if (expressionSymbol.IsKind(SymbolKind.Event) &&
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
56if (symbol.Kind is SymbolKind.Method or SymbolKind.Property or SymbolKind.Event)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
245[InlineData("event System.EventHandler [|m|];", "event System.EventHandler M;", SymbolKind.Event, Accessibility.Private)]
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\ColorColorTests.cs (3)
100SymbolKind.Event, "event E F.E", 256SymbolKind.Event, "event System.Action E.Event", 1251Assert.Equal(SymbolKind.Event, candidate.Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
433Assert.Equal(SymbolKind.Event, symbol.Kind); 502Assert.Equal(SymbolKind.Event, symbol.Kind); 4751Assert.Equal(SymbolKind.Event, eventSymbol.Kind);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
10723Assert.Equal(SymbolKind.Event, sortedCandidates[0].Kind);
DocumentationComments\DocumentationCommentIDTests.cs (1)
109Assert.Equal(SymbolKind.Event, symbol.Kind);
SymbolDisplay\SymbolDisplayTests.cs (2)
2309GetMembers("E").Where(m => m.Kind == SymbolKind.Event).Single(); 2362GetMembers("E").Where(m => m.Kind == SymbolKind.Event).Single();
Symbols\Metadata\PE\LoadingEvents.cs (4)
75Assert.Equal(SymbolKind.Event, instanceEvent.Kind); 84Assert.Equal(SymbolKind.Event, staticEvent.Kind); 334var outerInterfaceEvent = outerInterface.GetMembers().Single(m => m.Kind == SymbolKind.Event); 344var innerInterfaceEvent = innerInterface.GetMembers().Single(m => m.Kind == SymbolKind.Event);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (1)
95case SymbolKind.Event:
Symbols\Source\EventTests.cs (4)
83Assert.Equal(SymbolKind.Event, @event.Kind); 122Assert.Equal(SymbolKind.Event, @event.Kind); 160Assert.Equal(SymbolKind.Event, @event.Kind); 195Assert.Equal(SymbolKind.Event, @event.Kind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
759case SymbolKind.Event: 820case SymbolKind.Event:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
165case SymbolKind.Event:
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekHelpers.cs (1)
57case SymbolKind.Event:
Microsoft.CodeAnalysis.Features (25)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
360case SymbolKind.Event:
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
157else if (generatedMember.Kind == SymbolKind.Event)
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
73SymbolKind.Event => ((IEventSymbol)symbol).Type,
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
194if (symbol.MatchesKind(SymbolKind.Event, SymbolKind.Method))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
322SymbolKind.Event => GetDisplayName((IEventSymbol)symbol), 2442case SymbolKind.Event:
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
203return symbol.Kind is SymbolKind.Event or
ExtractInterface\AbstractExtractInterfaceService.cs (2)
378case SymbolKind.Event: 444if (m.Kind == SymbolKind.Event || m.IsOrdinaryMethod())
GoToBase\FindBaseHelpers.cs (1)
27if (symbol.Kind is SymbolKind.Property or SymbolKind.Method or SymbolKind.Event)
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
579|| declaredSymbol.IsKind(SymbolKind.Event))
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (2)
34where m.Kind is SymbolKind.Event or 48SymbolKind.Event => new WrappedEventSymbol((IEventSymbol)m, canImplementImplicitly, docCommentFormattingService),
MetadataAsSource\MetadataAsSourceFileService.cs (1)
288case SymbolKind.Event:
PullMemberUp\MemberAndDestinationValidator.cs (1)
47_ => member.IsKind(SymbolKind.Property) || member.IsKind(SymbolKind.Event) || member.IsKind(SymbolKind.Field),
Shared\Extensions\ISymbolExtensions_2.cs (1)
34case SymbolKind.Event:
Shared\Extensions\ISymbolExtensions_Sorting.cs (3)
186if (s1.Kind == SymbolKind.Event || s2.Kind == SymbolKind.Event) 190: s1.Kind == SymbolKind.Event ? -1 : 1;
Shared\Utilities\ExtractTypeHelpers.cs (1)
202case SymbolKind.Event:
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
36private static readonly ImmutableArray<SymbolKind> _symbolKinds = [SymbolKind.Event, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Property];
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
771case SymbolKind.Event:
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
193compilationStartContext.RegisterSymbolAction(AnalyzeSymbolDeclaration, SymbolKind.Method, SymbolKind.Field, SymbolKind.Property, SymbolKind.Event); 856case SymbolKind.Event:
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
217singleResult = candidateMembers.FirstOrDefault(s => s.Kind == SymbolKind.Event);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\CompilationExtensions.cs (1)
258case SymbolKind.Event:
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
72SymbolKind.Event,
Diagnostics\TrackingDiagnosticAnalyzer.cs (2)
84SymbolKind.Event, SymbolKind.Field, SymbolKind.Method, SymbolKind.NamedType, SymbolKind.Namespace, SymbolKind.Parameter, SymbolKind.Property 117new { SymbolKind = SymbolKind.Event, MethodKind = InvalidMethodKind, ReturnsVoid = false },
Microsoft.CodeAnalysis.VisualBasic (61)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
838If eventOrProperty Is Nothing OrElse eventOrProperty.Kind <> SymbolKind.Event Then
Binding\Binder_Delegates.vb (1)
943If sym.Kind = SymbolKind.Event Then
Binding\Binder_Expressions.vb (2)
2585Case SymbolKind.Field, SymbolKind.Method, SymbolKind.Property, SymbolKind.Event 3164Case SymbolKind.Event
Binding\Binder_Invocation.vb (1)
3127Case SymbolKind.Field, SymbolKind.Property, SymbolKind.Event
Binding\Binder_Lookup.vb (2)
1533FilterSymbolsInLookupResult(currentResult, SymbolKind.Event, leaveInsteadOfRemoving:=leaveEventsOnly.Value) 1758If leaveEventsOnly.HasValue AndAlso (newSymbol.Kind = SymbolKind.Event) <> leaveEventsOnly.Value Then
Binding\DocumentationCommentParamBinder.vb (1)
43Case SymbolKind.Event
Compilation\ClsComplianceChecker.vb (2)
290Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse symbol.Kind = SymbolKind.Field OrElse symbol.Kind = SymbolKind.Property OrElse symbol.Kind = SymbolKind.Event OrElse symbol.Kind = SymbolKind.Method) 310ElseIf symbol.Kind = SymbolKind.Event Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (2)
732Case SymbolKind.Event 780SymbolKind.Event,
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
101Case SymbolKind.Event
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
117Debug.Assert(symbol.Kind = SymbolKind.Event OrElse
Compilation\SemanticModel.vb (1)
3551Case SymbolKind.Event
Compilation\SyntaxTreeSemanticModel.vb (2)
736Case SymbolKind.Event 1065Case SymbolKind.Event
Emit\NamedTypeSymbolAdapter.vb (1)
908If member.Kind = SymbolKind.Event Then
Emit\NoPia\EmbeddedType.vb (1)
242Case SymbolKind.Event
Emit\NoPia\EmbeddedTypesManager.vb (1)
433Case SymbolKind.Event
Emit\PEModuleBuilder.vb (1)
249Case SymbolKind.Event
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
529Case SymbolKind.Event
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
160Case SymbolKind.Event
Semantics\AccessCheck.vb (1)
121Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event, SymbolKind.Field
Symbols\Attributes\AttributeData.vb (1)
560Case SymbolKind.Event
Symbols\EventSymbol.vb (1)
132Return SymbolKind.[Event]
Symbols\MemberSignatureComparer.vb (3)
59Case SymbolKind.Event 76Case SymbolKind.Event 87Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
605Return GetMembers(Of EventSymbol)(GetMembers(), SymbolKind.Event) 640Case SymbolKind.Event
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
1055If retargetedMember.Kind = SymbolKind.Event Then
Symbols\Source\ImplementsHelper.vb (7)
30Case SymbolKind.Event 124Dim implementingSymIsEvent = (implementingSym.Kind = SymbolKind.Event) 134Debug.Assert(implementedMember.Kind = SymbolKind.Event) 201If implementingSym.Kind = SymbolKind.Event Then 344If coClassContext AndAlso (implementingSym.Kind = SymbolKind.Event) <> (foundMember.Kind = SymbolKind.Event) Then 440Case SymbolKind.Event
Symbols\Source\OverrideHidingHelper.vb (2)
248If member.Kind = SymbolKind.Event Then 517Case SymbolKind.Event
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
451Case SymbolKind.Event 2856If candidates.Count = 1 AndAlso candidates(0).Kind = SymbolKind.Event Then
Symbols\Source\SourceMethodSymbol.vb (3)
1088container.FindMember(eventIdentifier.ValueText, SymbolKind.Event, eventIdentifier.Span, tree), 1128Return container.FindMember(eventIdentifier.ValueText, SymbolKind.Event, eventIdentifier.Span, tree) 1753If Me.IsAccessor() AndAlso Me.AssociatedSymbol.Kind = SymbolKind.Event Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2362If member.Kind = SymbolKind.Event AndAlso
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
447Case SymbolKind.Event
Symbols\SubstitutedNamedType.vb (2)
375Case SymbolKind.Event 485Case SymbolKind.Event
Symbols\Symbol.vb (1)
604SymbolKind.Event,
Symbols\Symbol_Attributes.vb (2)
64Case SymbolKind.Event 529Me.Kind = SymbolKind.Event AndAlso DirectCast(Me, SourceEventSymbol).AssociatedField IsNot Nothing Then
Symbols\SymbolExtensions.vb (5)
76Case SymbolKind.Event 196Case SymbolKind.Field, SymbolKind.Property, SymbolKind.Method, SymbolKind.Event 209Case SymbolKind.Method, SymbolKind.Property, SymbolKind.Event 293Case SymbolKind.Event 472Case SymbolKind.Event
Symbols\Tuples\TupleTypeSymbol.vb (2)
791Case SymbolKind.Event 891Case SymbolKind.[Event]
Symbols\TypeSymbol.vb (1)
698Case SymbolKind.Event
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
206If symbol.IsKind(SymbolKind.Method) OrElse symbol.IsKind(SymbolKind.Property) OrElse symbol.IsKind(SymbolKind.Event) Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests_Tuples.vb (1)
279Case SymbolKind.Event
Microsoft.CodeAnalysis.VisualBasic.Features (4)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
370Any(Function(x) x.MatchesKind(SymbolKind.Event) AndAlso x.Name = handlesClauseItem.EventMember.Identifier.ValueText) Then
Completion\CompletionProviders\OverrideCompletionProvider.vb (1)
184Return members.WhereAsArray(Function(m) Not m.IsKind(SymbolKind.Event))
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
287If symbol.Kind = SymbolKind.Event Then
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (1)
87Dim allowedEvents = events.WhereAsArray(Function(s) s.Kind = SymbolKind.Event AndAlso Equals(s.ContainingType, containingType)).
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
DeclaringSyntaxNodeTests.vb (2)
545fld.AssociatedSymbol.Kind = SymbolKind.Event) Then 581fld.AssociatedSymbol.Kind = SymbolKind.Event) Then
Semantics\GetExtendedSemanticInfoTests.vb (1)
1855Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
Semantics\GetSemanticInfoTests.vb (5)
2531Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind) 2787Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind) 2835Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind) 2888Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind) 2949Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
SymbolsTests\Metadata\PE\LoadingEvents.vb (4)
87Assert.Equal(SymbolKind.[Event], instanceEvent.Kind) 95Assert.Equal(SymbolKind.[Event], staticEvent.Kind) 236Dim outerInterfaceEvent = outerInterface.GetMembers().Where(Function(m) m.Kind = SymbolKind.[Event]).Single() 243Dim innerInterfaceEvent = innerInterface.GetMembers().Where(Function(m) m.Kind = SymbolKind.[Event]).Single()
SymbolsTests\Retargeting\RetargetingTests.vb (1)
2194Assert.Equal(SymbolKind.Event, RetargetEventItem.Kind)
SymbolsTests\Source\ComClassTests.vb (1)
68Case SymbolKind.Event
SymbolsTests\Source\EventTests.vb (3)
1613Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind) 1727Assert.Equal(SymbolKind.Event, mems(3).Kind) 1799Assert.Equal(SymbolKind.Event, semanticSummary.Symbol.Kind)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
115Case SymbolKind.Event
Recommendations\VisualBasicRecommendationServiceRunner.vb (3)
120.WhereAsArray(Function(s) s.Kind = SymbolKind.Event AndAlso Equals(s.ContainingType, containingType)) 363If s.Kind = SymbolKind.Event AndAlso Not _context.IsNameOfContext Then 368Return associatedSymbol.Kind <> SymbolKind.Event AndAlso associatedSymbol.Kind <> SymbolKind.Property
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
206If symbol.IsKind(SymbolKind.Method) OrElse symbol.IsKind(SymbolKind.Property) OrElse symbol.IsKind(SymbolKind.Event) Then
Microsoft.CodeAnalysis.Workspaces (24)
Editing\SyntaxGenerator.cs (2)
728case SymbolKind.Event: 825case SymbolKind.Event:
FindSymbols\Declarations\DeclarationFinder.cs (1)
122SymbolKind.Event or
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
715case SymbolKind.Event:
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
39SymbolKind.Event => true,
FindSymbols\SymbolFinder.cs (1)
134case SymbolKind.Event:
FindSymbols\SymbolFinder_Callers.cs (1)
81if (symbol.Kind is SymbolKind.Event or
Recommendations\AbstractRecommendationService.cs (1)
100case SymbolKind.Event:
Shared\Extensions\ISymbolExtensions.cs (1)
281case SymbolKind.Event:
Shared\Extensions\ITypeSymbolExtensions.cs (1)
49if (interfaceMember.Kind is not SymbolKind.Event and
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
116if (symbol.Kind is SymbolKind.Event or SymbolKind.Property) 147if (symbol.Kind is not SymbolKind.Method and not SymbolKind.Property and not SymbolKind.Event) 175if (symbol.Kind == SymbolKind.Event)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
143case SymbolKind.Event:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
133private static readonly SymbolKindOrTypeKind _event = new(SymbolKind.Event); 422case SymbolKind.Event:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
18[SymbolKind.Method, SymbolKind.Property, SymbolKind.Event];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
78new SymbolKindOrTypeKind(SymbolKind.Event),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
49SymbolKind.Event => QualifyEventAccess,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
43SymbolKind.Event => HaveSameSignature((IEventSymbol)symbol1, (IEventSymbol)symbol2, caseSensitive), 163case SymbolKind.Event:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
119SymbolKind.Event => EventsAreEquivalent((IEventSymbol)x, (IEventSymbol)y, equivalentTypesWithDifferingAssemblies),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
61SymbolKind.Event => CombineHashCodes((IEventSymbol)x, currentHash),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (1)
44public override SymbolKind Kind => SymbolKind.Event;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigParsing\NamingStyleParserTests.cs (1)
165symbolKind => Assert.Equal(new SymbolKindOrTypeKind(SymbolKind.Event), symbolKind),
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\MembersMustExistAnalyzer.cs (2)
62context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Method, SymbolKind.Event); 63context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Field, SymbolKind.Event);
Microsoft.Interop.ComInterfaceGenerator (1)
ComMethodInfo.cs (1)
55case { Kind: SymbolKind.Event }:
Microsoft.VisualStudio.LanguageServices (19)
CallHierarchy\CallHierarchyProvider.cs (2)
60SymbolKind.Event or 106SymbolKind.Event or
Implementation\ContainedLanguageRefactorNotifyService.cs (1)
81else if (symbol.Kind is SymbolKind.Event or
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
109=> symbol.Kind is SymbolKind.Event or
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
222case SymbolKind.Event:
Library\ObjectBrowser\Lists\MemberListItem.cs (1)
21case SymbolKind.Event:
Library\VsNavInfo\NavInfoFactory.cs (1)
49if (symbol.Kind is SymbolKind.Event or
Progression\GraphBuilder.cs (1)
287case SymbolKind.Event:
Progression\GraphNodeCreation.cs (1)
47case SymbolKind.Event:
Progression\GraphProvider.cs (6)
216if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field))) 226if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 256if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 283if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 294if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) && 306if (nodes.Any(n => IsAnySymbolKind(n, SymbolKind.Event, SymbolKind.Method, SymbolKind.Property) &&
Progression\SymbolContainment.cs (1)
60case SymbolKind.Event:
Venus\ContainedLanguageCodeSupport.cs (3)
401return member.Kind == SymbolKind.Event; 452else if (member.Kind == SymbolKind.Event) 497return semanticModel.LookupSymbols(typeLocation.SourceSpan.Start, objectType, nameOfEvent).SingleOrDefault(m => m.Kind == SymbolKind.Event);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
2992case SymbolKind.Event:
CodeModel\CSharpCodeModelService_Prototype.cs (1)
36case SymbolKind.Event:
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
95TestGlyph(StandardGlyphGroup.GlyphGroupEvent, SymbolKind.Event);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (1)
3618SymbolKind.Event,
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
48Case SymbolKind.Event
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
134case SymbolKind.Event: