35 references to EnumKeyword
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (8)
339
case SyntaxKind.
EnumKeyword
:
1120
nextToken.Kind is SyntaxKind.
EnumKeyword
or SyntaxKind.DelegateKeyword ||
1433
case SyntaxKind.
EnumKeyword
:
1960
SyntaxKind.
EnumKeyword
=>
1996
case SyntaxKind.
EnumKeyword
:
2045
case SyntaxKind.
EnumKeyword
:
5208
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
EnumKeyword
);
5210
var enumToken = this.EatToken(SyntaxKind.
EnumKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
720
AddKeyword(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)
800
return kind == SyntaxKind.
EnumKeyword
? SyntaxKind.EnumDeclaration : GetTypeDeclarationKind(kind);
971
return SyntaxKind.
EnumKeyword
;
1611
case SyntaxKind.
EnumKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
66
return enumOrDelegateKeyword.Kind() is SyntaxKind.
EnumKeyword
or SyntaxKind.DelegateKeyword;
93
var isEnumConstraint = enumOrDelegateKeyword.Kind() is SyntaxKind.
EnumKeyword
;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
102
case SyntaxKind.
EnumKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
23
: base(SyntaxKind.
EnumKeyword
)
CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
66
return enumOrDelegateKeyword.Kind() is SyntaxKind.
EnumKeyword
or SyntaxKind.DelegateKeyword;
93
var 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);
2791
Assert.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));
12767
Assert.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
)]
111
N(SyntaxKind.
EnumKeyword
);
498
[InlineData(SyntaxKind.
EnumKeyword
)]
531
[InlineData(SyntaxKind.
EnumKeyword
)]
Parsing\ScriptParsingTests.cs (1)
2433
N(SyntaxKind.
EnumKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
102
case SyntaxKind.
EnumKeyword
: