94 references to EnumDeclaration
Microsoft.CodeAnalysis.CSharp (14)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
710var container = ((NamespaceOrTypeSymbol)outer.ContainingMemberOrLambda).GetSourceTypeMember(parent.Identifier.ValueText, 0, SyntaxKind.EnumDeclaration, parent);
Compilation\SyntaxTreeSemanticModel.cs (1)
1656case SyntaxKind.EnumDeclaration:
Declarations\DeclarationKind.cs (1)
41case SyntaxKind.EnumDeclaration: return DeclarationKind.Enum;
Declarations\DeclarationTreeBuilder.cs (1)
1089case SyntaxKind.EnumDeclaration:
Declarations\MergedTypeDeclaration.cs (1)
88case SyntaxKind.EnumDeclaration:
Parser\LanguageParser.cs (2)
792case SyntaxKind.EnumDeclaration: 2407case SyntaxKind.EnumDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
137case SyntaxKind.EnumDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3535case SyntaxKind.EnumDeclaration:
Symbols\Source\SourceNamedTypeSymbol.cs (2)
113case SyntaxKind.EnumDeclaration: 171case SyntaxKind.EnumDeclaration:
Syntax\SyntaxKindFacts.cs (2)
383case SyntaxKind.EnumDeclaration: 828return kind == SyntaxKind.EnumKeyword ? SyntaxKind.EnumDeclaration : GetTypeDeclarationKind(kind);
Syntax\SyntaxNormalizer.cs (1)
666!token.Parent.IsKind(SyntaxKind.EnumDeclaration))
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
71SyntaxKind.EnumDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
33case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
210token.Parent.IsKind(SyntaxKind.EnumDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
35case SyntaxKind.EnumDeclaration: 165case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
160public int EnumDeclaration => (int)SyntaxKind.EnumDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
234SyntaxKind.EnumDeclaration => CodeGenerationDestination.EnumType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
27{ SyntaxKind.EnumDeclaration, 10 }, 132case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
166case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2997targetToken.Parent.IsParentKind(SyntaxKind.EnumDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
76SyntaxKind.EnumDeclaration,
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\KeywordRecommenders\FieldKeywordRecommender.cs (1)
22SyntaxKind.EnumDeclaration,
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
48SyntaxKind.EnumDeclaration;
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
59case SyntaxKind.EnumDeclaration:
EditAndContinue\SyntaxComparer.cs (2)
606case SyntaxKind.EnumDeclaration: 1432case SyntaxKind.EnumDeclaration:
GenerateType\CSharpGenerateTypeService.cs (1)
169nameOrMemberAccessExpression.Parent.Parent.IsParentKind(SyntaxKind.EnumDeclaration))
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
171case SyntaxKind.EnumDeclaration:
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
71SyntaxKind.EnumDeclaration;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
137case SyntaxKind.EnumDeclaration:
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); 1104case SyntaxKind.EnumDeclaration:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (27)
Parsing\CollectionExpressionParsingTests.cs (4)
17183N(SyntaxKind.EnumDeclaration); 17416N(SyntaxKind.EnumDeclaration); 17665N(SyntaxKind.EnumDeclaration); 17908N(SyntaxKind.EnumDeclaration);
Parsing\DeclarationParsingTests.cs (4)
9374[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)] 9467[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)] 9503[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)] 9722[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)]
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (2)
1779N(SyntaxKind.EnumDeclaration); 1872N(SyntaxKind.EnumDeclaration);
Parsing\FileModifierParsingTests.cs (1)
108N(SyntaxKind.EnumDeclaration);
Parsing\MemberDeclarationParsingTests.cs (1)
12116N(SyntaxKind.EnumDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (14)
2670Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2684Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2698Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2712Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2726Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2740Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2754Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2769Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2784Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2798Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2812Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2826Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2841Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind()); 2856Assert.Equal(SyntaxKind.EnumDeclaration, file.Members[0].Kind());
Parsing\ScriptParsingTests.cs (1)
2419N(SyntaxKind.EnumDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
Classification\ClassificationHelpers.cs (1)
338SyntaxKind.EnumDeclaration => ClassificationTypeNames.EnumName,
CodeGeneration\CSharpSyntaxGenerator.cs (3)
145case SyntaxKind.EnumDeclaration: 889AsModifierList(accessibility, modifiers, SyntaxKind.EnumDeclaration), 1544case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
33case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
210token.Parent.IsKind(SyntaxKind.EnumDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
35case SyntaxKind.EnumDeclaration: 165case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
160public int EnumDeclaration => (int)SyntaxKind.EnumDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
234SyntaxKind.EnumDeclaration => CodeGenerationDestination.EnumType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
27{ SyntaxKind.EnumDeclaration, 10 }, 132case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
166case SyntaxKind.EnumDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2997targetToken.Parent.IsParentKind(SyntaxKind.EnumDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
76SyntaxKind.EnumDeclaration,
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
82context.RegisterSyntaxNodeAction(AnalyzeEnum, SyntaxKind.EnumDeclaration);
Microsoft.VisualStudio.LanguageServices.CSharp (13)
CodeModel\CSharpCodeModelService.cs (9)
99case SyntaxKind.EnumDeclaration: 231case SyntaxKind.EnumDeclaration: 550case SyntaxKind.EnumDeclaration: 604case SyntaxKind.EnumDeclaration: 806case SyntaxKind.EnumDeclaration: 887case SyntaxKind.EnumDeclaration: 1161if (member.Parent is (kind: SyntaxKind.InterfaceDeclaration or SyntaxKind.EnumDeclaration)) 3501case SyntaxKind.EnumDeclaration: 3529or SyntaxKind.EnumDeclaration
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
48case SyntaxKind.EnumDeclaration: 99case SyntaxKind.EnumDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
181case SyntaxKind.EnumDeclaration:
Progression\CSharpProgressionLanguageService.cs (1)
67SyntaxKind.EnumDeclaration or
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
272case SyntaxKind.EnumDeclaration: