42 references to EnumKeyword
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (8)
342case SyntaxKind.EnumKeyword: 1394nextToken.Kind is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword || 1707case SyntaxKind.EnumKeyword: 2245SyntaxKind.EnumKeyword => 2312case SyntaxKind.EnumKeyword: 2361case SyntaxKind.EnumKeyword: 5510Debug.Assert(this.CurrentToken.Kind == SyntaxKind.EnumKeyword); 5512var enumToken = this.EatToken(SyntaxKind.EnumKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
726AddKeyword(SyntaxKind.EnumKeyword);
Syntax\SyntaxFactory.cs (3)
2930=> SyntaxFactory.EnumDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.EnumKeyword), identifier, baseList, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), members, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2934=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.EnumKeyword), identifier, null, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2938=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier(identifier), null, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
Syntax\SyntaxKindFacts.cs (3)
828return kind == SyntaxKind.EnumKeyword ? SyntaxKind.EnumDeclaration : GetTypeDeclarationKind(kind); 999return SyntaxKind.EnumKeyword; 1647case SyntaxKind.EnumKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
319case SyntaxKind.EnumKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
60return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword; 87var isEnumConstraint = enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword;
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
23: base(SyntaxKind.EnumKeyword)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
60return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword; 87var isEnumConstraint = enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (20)
Generated\Syntax.Test.xml.Generated.cs (4)
515=> InternalSyntaxFactory.EnumDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.EnumKeyword), InternalSyntaxFactory.Identifier("Identifier"), null, null, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.EnumMemberDeclarationSyntax>(), null, null); 2852Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.Kind); 10731=> SyntaxFactory.EnumDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier("Identifier"), default(BaseListSyntax), default(SyntaxToken), new SeparatedSyntaxList<EnumMemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 13068Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (4)
17186N(SyntaxKind.EnumKeyword); 17419N(SyntaxKind.EnumKeyword); 17668N(SyntaxKind.EnumKeyword); 17911N(SyntaxKind.EnumKeyword);
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)
1782N(SyntaxKind.EnumKeyword); 1875N(SyntaxKind.EnumKeyword);
Parsing\FileModifierParsingTests.cs (4)
46[InlineData(SyntaxKind.EnumKeyword)] 111N(SyntaxKind.EnumKeyword); 498[InlineData(SyntaxKind.EnumKeyword)] 531[InlineData(SyntaxKind.EnumKeyword)]
Parsing\MemberDeclarationParsingTests.cs (1)
12118N(SyntaxKind.EnumKeyword);
Parsing\ScriptParsingTests.cs (1)
2433N(SyntaxKind.EnumKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
319case SyntaxKind.EnumKeyword: