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