42 references to EnumKeyword
Microsoft.CodeAnalysis.CSharp (15)
Parser\LanguageParser.cs (8)
342
case SyntaxKind.
EnumKeyword
:
1394
nextToken.Kind is SyntaxKind.
EnumKeyword
or SyntaxKind.DelegateKeyword ||
1707
case SyntaxKind.
EnumKeyword
:
2245
SyntaxKind.
EnumKeyword
=>
2312
case SyntaxKind.
EnumKeyword
:
2361
case SyntaxKind.
EnumKeyword
:
5510
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
EnumKeyword
);
5512
var enumToken = this.EatToken(SyntaxKind.
EnumKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
726
AddKeyword(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)
828
return kind == SyntaxKind.
EnumKeyword
? SyntaxKind.EnumDeclaration : GetTypeDeclarationKind(kind);
999
return SyntaxKind.
EnumKeyword
;
1647
case SyntaxKind.
EnumKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
319
case SyntaxKind.
EnumKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (2)
60
return enumOrDelegateKeyword.Kind() is SyntaxKind.
EnumKeyword
or SyntaxKind.DelegateKeyword;
87
var 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)
60
return enumOrDelegateKeyword.Kind() is SyntaxKind.
EnumKeyword
or SyntaxKind.DelegateKeyword;
87
var 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);
2852
Assert.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));
13068
Assert.Equal(SyntaxKind.
EnumKeyword
, node.EnumKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (4)
17186
N(SyntaxKind.
EnumKeyword
);
17419
N(SyntaxKind.
EnumKeyword
);
17668
N(SyntaxKind.
EnumKeyword
);
17911
N(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)
1782
N(SyntaxKind.
EnumKeyword
);
1875
N(SyntaxKind.
EnumKeyword
);
Parsing\FileModifierParsingTests.cs (4)
46
[InlineData(SyntaxKind.
EnumKeyword
)]
111
N(SyntaxKind.
EnumKeyword
);
498
[InlineData(SyntaxKind.
EnumKeyword
)]
531
[InlineData(SyntaxKind.
EnumKeyword
)]
Parsing\MemberDeclarationParsingTests.cs (1)
12118
N(SyntaxKind.
EnumKeyword
);
Parsing\ScriptParsingTests.cs (1)
2433
N(SyntaxKind.
EnumKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
319
case SyntaxKind.
EnumKeyword
: