87 references to EventDeclaration
Microsoft.CodeAnalysis.CSharp (15)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
297case SyntaxKind.EventDeclaration: 497case SyntaxKind.EventDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (2)
1583case SyntaxKind.EventDeclaration: 1644case SyntaxKind.EventDeclaration:
Declarations\DeclarationTreeBuilder.cs (3)
1109case SyntaxKind.EventDeclaration: 1174case SyntaxKind.EventDeclaration: 1235case SyntaxKind.EventDeclaration:
Parser\LanguageParser.cs (2)
553or SyntaxKind.EventDeclaration 2392case SyntaxKind.EventDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
169case SyntaxKind.EventDeclaration:
Symbols\Source\SourceEventSymbol.cs (1)
147case SyntaxKind.EventDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5118case SyntaxKind.EventDeclaration:
Syntax\SyntaxExtensions.cs (1)
247case SyntaxKind.EventDeclaration:
Syntax\SyntaxFacts.cs (1)
184case EventDeclaration:
Syntax\SyntaxKindFacts.cs (1)
368case SyntaxKind.EventDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
49case SyntaxKind.EventDeclaration: 154case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
256or SyntaxKind.EventDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
578or SyntaxKind.EventDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
85case SyntaxKind.EventDeclaration: 185case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1278case SyntaxKind.EventDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
131SyntaxKind.EventDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
802case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
23{ SyntaxKind.EventDeclaration, 6 }, 123case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
36if (eventDeclaration.Kind() == SyntaxKind.EventDeclaration)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1008}, SyntaxKind.PropertyDeclaration, SyntaxKind.IndexerDeclaration, SyntaxKind.EventDeclaration, SyntaxKind.MethodDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (10)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
67case SyntaxKind.EventDeclaration:
EditAndContinue\BreakpointSpans.cs (1)
372case SyntaxKind.EventDeclaration:
EditAndContinue\SyntaxComparer.cs (2)
638case SyntaxKind.EventDeclaration: 1470case SyntaxKind.EventDeclaration:
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
45SyntaxKind.EventDeclaration or
LineSeparators\CSharpLineSeparatorService.cs (1)
82case SyntaxKind.EventDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
158case SyntaxKind.EventDeclaration:
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
131SyntaxKind.EventDeclaration);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
169case SyntaxKind.EventDeclaration:
Structure\Providers\EventDeclarationStructureProvider.cs (1)
39&& (!nextSibling.IsNode || nextSibling.Kind() is SyntaxKind.EventDeclaration or SyntaxKind.EventFieldDeclaration);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
1068=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.EnumDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.MethodDeclaration, SyntaxKind.PropertyDeclaration, SyntaxKind.FieldDeclaration, SyntaxKind.EventDeclaration); 1099case SyntaxKind.EventDeclaration:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Parsing\AsyncParsingTests.cs (2)
1539N(SyntaxKind.EventDeclaration); 1600N(SyntaxKind.EventDeclaration);
Parsing\DeclarationParsingTests.cs (9)
4503Assert.Equal(isEvent ? SyntaxKind.EventDeclaration : SyntaxKind.PropertyDeclaration, cs.Members[0].Kind()); 4559Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4755Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4809Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 4892Assert.Equal(SyntaxKind.EventDeclaration, cs.Members[0].Kind()); 6019N(SyntaxKind.EventDeclaration); 6079N(SyntaxKind.EventDeclaration); 6145N(SyntaxKind.EventDeclaration); 6218N(SyntaxKind.EventDeclaration);
Parsing\DeclarationScopeParsingTests.cs (2)
14437N(SyntaxKind.EventDeclaration); 14505N(SyntaxKind.EventDeclaration);
Parsing\FieldKeywordParsingTests.cs (1)
618N(SyntaxKind.EventDeclaration);
Parsing\MemberDeclarationParsingTests.cs (1)
11706N(SyntaxKind.EventDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (1)
696N(SyntaxKind.EventDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
572AsModifierList(accessibility, modifiers, SyntaxKind.EventDeclaration), 633SyntaxKind.EventDeclaration => ((EventDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 663case SyntaxKind.EventDeclaration: 849case SyntaxKind.EventDeclaration: 1580case SyntaxKind.EventDeclaration: 1978case SyntaxKind.EventDeclaration: 2013SyntaxKind.EventDeclaration => ((EventDeclarationSyntax)declaration).WithType((TypeSyntax)type), 2571SyntaxKind.EventDeclaration => true, 2599case SyntaxKind.EventDeclaration:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
322case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
49case SyntaxKind.EventDeclaration: 154case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
256or SyntaxKind.EventDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
578or SyntaxKind.EventDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
85case SyntaxKind.EventDeclaration: 185case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1278case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
802case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
23{ SyntaxKind.EventDeclaration, 6 }, 123case SyntaxKind.EventDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
36if (eventDeclaration.Kind() == SyntaxKind.EventDeclaration)
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
84context.RegisterSyntaxNodeAction(AnalyzeEvent, SyntaxKind.EventDeclaration);
Microsoft.VisualStudio.LanguageServices.CSharp (9)
CodeModel\CSharpCodeModelService.cs (6)
101case SyntaxKind.EventDeclaration: 189case SyntaxKind.EventDeclaration: 568case SyntaxKind.EventDeclaration: 620case SyntaxKind.EventDeclaration: 823case SyntaxKind.EventDeclaration: 899case SyntaxKind.EventDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
58case SyntaxKind.EventDeclaration: 109case SyntaxKind.EventDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
244case SyntaxKind.EventDeclaration: