87 references to EventDeclaration
Microsoft.CodeAnalysis.CSharp (13)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
290case SyntaxKind.EventDeclaration: 480case SyntaxKind.EventDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (2)
1589case SyntaxKind.EventDeclaration: 1650case SyntaxKind.EventDeclaration:
CSharpDeclarationComputer.cs (1)
169case SyntaxKind.EventDeclaration:
Declarations\DeclarationTreeBuilder.cs (2)
958case SyntaxKind.EventDeclaration: 1027case SyntaxKind.EventDeclaration:
Parser\LanguageParser.cs (1)
2077case SyntaxKind.EventDeclaration:
Symbols\Source\SourceEventSymbol.cs (1)
139case SyntaxKind.EventDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4849case SyntaxKind.EventDeclaration:
Syntax\SyntaxExtensions.cs (1)
247case SyntaxKind.EventDeclaration:
Syntax\SyntaxFacts.cs (1)
184case EventDeclaration:
Syntax\SyntaxKindFacts.cs (1)
340case SyntaxKind.EventDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CSharpAccessibilityFacts.cs (2)
85case SyntaxKind.EventDeclaration: 185case SyntaxKind.EventDeclaration:
CSharpSyntaxFacts.cs (1)
1272case SyntaxKind.EventDeclaration:
MemberDeclarationSyntaxExtensions.cs (2)
49case SyntaxKind.EventDeclaration: 154case SyntaxKind.EventDeclaration:
SemanticModelExtensions.cs (1)
255type.IsParentKind(SyntaxKind.EventDeclaration) ||
SpacingFormattingRule.cs (1)
576if (node.IsKind(SyntaxKind.FieldDeclaration) || node.IsKind(SyntaxKind.EventDeclaration) ||
SyntaxNodeExtensions.cs (1)
421case SyntaxKind.EventDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
CSharpCodeGenerationService.cs (1)
806case SyntaxKind.EventDeclaration:
CSharpDeclarationComparer.cs (2)
23{ SyntaxKind.EventDeclaration, 6 }, 123case SyntaxKind.EventDeclaration:
CSharpDeclareAsNullableCodeFixProvider.cs (1)
152SyntaxKind.EventDeclaration);
EventGenerator.cs (1)
34if (eventDeclaration.Kind() == SyntaxKind.EventDeclaration)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
1071=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.EnumDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.MethodDeclaration, SyntaxKind.PropertyDeclaration, SyntaxKind.FieldDeclaration, SyntaxKind.EventDeclaration); 1102case SyntaxKind.EventDeclaration:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
947}, SyntaxKind.PropertyDeclaration, SyntaxKind.IndexerDeclaration, SyntaxKind.EventDeclaration, SyntaxKind.MethodDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (13)
CSharpDeclarationComputer.cs (1)
169case SyntaxKind.EventDeclaration:
CSharpDeclareAsNullableCodeFixProvider.cs (1)
152SyntaxKind.EventDeclaration);
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
69case SyntaxKind.EventDeclaration:
EditAndContinue\BreakpointSpans.cs (1)
266case SyntaxKind.EventDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1180SyntaxKind.EventDeclaration)) 1673case SyntaxKind.EventDeclaration: 2037case SyntaxKind.EventDeclaration:
EditAndContinue\SyntaxComparer.cs (2)
629case SyntaxKind.EventDeclaration: 1461case SyntaxKind.EventDeclaration:
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
46SyntaxKind.EventDeclaration or
LineSeparators\CSharpLineSeparatorService.cs (1)
83case SyntaxKind.EventDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
158case SyntaxKind.EventDeclaration:
Structure\Providers\EventDeclarationStructureProvider.cs (1)
39&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.EventDeclaration) || nextSibling.IsKind(SyntaxKind.EventFieldDeclaration));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
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)
14848N(SyntaxKind.EventDeclaration); 14916N(SyntaxKind.EventDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (1)
696N(SyntaxKind.EventDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (22)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
552AsModifierList(accessibility, modifiers, SyntaxKind.EventDeclaration), 613SyntaxKind.EventDeclaration => ((EventDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 643case SyntaxKind.EventDeclaration: 813case SyntaxKind.EventDeclaration: 1574case SyntaxKind.EventDeclaration: 1963case SyntaxKind.EventDeclaration: 1998SyntaxKind.EventDeclaration => ((EventDeclarationSyntax)declaration).WithType((TypeSyntax)type), 2568SyntaxKind.EventDeclaration => true, 2599case SyntaxKind.EventDeclaration:
CSharpAccessibilityFacts.cs (2)
85case SyntaxKind.EventDeclaration: 185case SyntaxKind.EventDeclaration:
CSharpCodeGenerationService.cs (1)
806case SyntaxKind.EventDeclaration:
CSharpDeclarationComparer.cs (2)
23{ SyntaxKind.EventDeclaration, 6 }, 123case SyntaxKind.EventDeclaration:
CSharpSyntaxFacts.cs (1)
1272case SyntaxKind.EventDeclaration:
EventGenerator.cs (1)
34if (eventDeclaration.Kind() == SyntaxKind.EventDeclaration)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
323case SyntaxKind.EventDeclaration:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
421case SyntaxKind.EventDeclaration:
MemberDeclarationSyntaxExtensions.cs (2)
49case SyntaxKind.EventDeclaration: 154case SyntaxKind.EventDeclaration:
SemanticModelExtensions.cs (1)
255type.IsParentKind(SyntaxKind.EventDeclaration) ||
SpacingFormattingRule.cs (1)
576if (node.IsKind(SyntaxKind.FieldDeclaration) || node.IsKind(SyntaxKind.EventDeclaration) ||
Microsoft.VisualStudio.LanguageServices.CSharp (9)
CodeModel\CSharpCodeModelService.cs (6)
100case SyntaxKind.EventDeclaration: 188case SyntaxKind.EventDeclaration: 571case SyntaxKind.EventDeclaration: 623case SyntaxKind.EventDeclaration: 826case SyntaxKind.EventDeclaration: 902case SyntaxKind.EventDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
59case SyntaxKind.EventDeclaration: 110case SyntaxKind.EventDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
245case SyntaxKind.EventDeclaration: