35 references to EnumKeyword
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (8)
339case SyntaxKind.EnumKeyword: 1120nextToken.Kind is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword || 1433case SyntaxKind.EnumKeyword: 1960SyntaxKind.EnumKeyword => 1996case SyntaxKind.EnumKeyword: 2045case SyntaxKind.EnumKeyword: 5208Debug.Assert(this.CurrentToken.Kind == SyntaxKind.EnumKeyword); 5210var enumToken = this.EatToken(SyntaxKind.EnumKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
720AddKeyword(SyntaxKind.EnumKeyword);
Syntax\SyntaxFactory.cs (3)
2918=> SyntaxFactory.EnumDeclaration(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.EnumKeyword), identifier, baseList, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), members, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2922=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.EnumKeyword), identifier, null, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2926=> 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)
800return kind == SyntaxKind.EnumKeyword ? SyntaxKind.EnumDeclaration : GetTypeDeclarationKind(kind); 971return SyntaxKind.EnumKeyword; 1611case SyntaxKind.EnumKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
66return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword; 93var isEnumConstraint = enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
102case SyntaxKind.EnumKeyword:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
23: base(SyntaxKind.EnumKeyword)
CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
66return enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword; 93var isEnumConstraint = enumOrDelegateKeyword.Kind() is SyntaxKind.EnumKeyword;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Generated\Syntax.Test.xml.Generated.cs (4)
503=> 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); 2791Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.Kind); 10479=> 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)); 12767Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.Kind());
Parsing\DeclarationParsingTests.cs (4)
9469[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)] 9562[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)] 9598[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)] 9817[InlineDataAttribute(SyntaxKind.EnumDeclaration, SyntaxKind.EnumKeyword)]
Parsing\FileModifierParsingTests.cs (4)
46[InlineData(SyntaxKind.EnumKeyword)] 111N(SyntaxKind.EnumKeyword); 498[InlineData(SyntaxKind.EnumKeyword)] 531[InlineData(SyntaxKind.EnumKeyword)]
Parsing\ScriptParsingTests.cs (1)
2433N(SyntaxKind.EnumKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
102case SyntaxKind.EnumKeyword: