42 references to EventKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (5)
1534
currentTokenKind == SyntaxKind.
EventKeyword
||
2331
case SyntaxKind.
EventKeyword
:
2614
if (this.CurrentToken.Kind == SyntaxKind.
EventKeyword
)
3087
if (this.CurrentToken.Kind == SyntaxKind.
EventKeyword
)
4804
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
EventKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
243
AddKeyword(SyntaxKind.
EventKeyword
);
Syntax\SyntaxKindFacts.cs (3)
51
case SyntaxKind.
EventKeyword
:
961
return SyntaxKind.
EventKeyword
;
1609
case SyntaxKind.
EventKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
205
case SyntaxKind.
EventKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
733
syntaxTree.IsAfterKeyword(position, SyntaxKind.
EventKeyword
, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
Generated\Syntax.Test.xml.Generated.cs (8)
557
=> InternalSyntaxFactory.EventFieldDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
EventKeyword
), GenerateVariableDeclaration(), InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
587
=> InternalSyntaxFactory.EventDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
EventKeyword
), GenerateIdentifierName(), null, InternalSyntaxFactory.Identifier("Identifier"), null, null);
3024
Assert.Equal(SyntaxKind.
EventKeyword
, node.EventKeyword.Kind);
3184
Assert.Equal(SyntaxKind.
EventKeyword
, node.EventKeyword.Kind);
10773
=> SyntaxFactory.EventFieldDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
EventKeyword
), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10803
=> SyntaxFactory.EventDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
EventKeyword
), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(SyntaxToken));
13240
Assert.Equal(SyntaxKind.
EventKeyword
, node.EventKeyword.Kind());
13400
Assert.Equal(SyntaxKind.
EventKeyword
, node.EventKeyword.Kind());
Parsing\AsyncParsingTests.cs (5)
1077
N(SyntaxKind.
EventKeyword
);
1124
N(SyntaxKind.
EventKeyword
);
1170
N(SyntaxKind.
EventKeyword
);
1542
N(SyntaxKind.
EventKeyword
);
1602
N(SyntaxKind.
EventKeyword
);
Parsing\DeclarationParsingTests.cs (4)
6021
N(SyntaxKind.
EventKeyword
);
6081
N(SyntaxKind.
EventKeyword
);
6147
N(SyntaxKind.
EventKeyword
);
6220
N(SyntaxKind.
EventKeyword
);
Parsing\DeclarationScopeParsingTests.cs (3)
14384
N(SyntaxKind.
EventKeyword
);
14439
N(SyntaxKind.
EventKeyword
);
14507
N(SyntaxKind.
EventKeyword
);
Parsing\FieldKeywordParsingTests.cs (1)
620
N(SyntaxKind.
EventKeyword
);
Parsing\FileModifierParsingTests.cs (2)
922
N(SyntaxKind.
EventKeyword
);
1169
N(SyntaxKind.
EventKeyword
);
Parsing\MemberDeclarationParsingTests.cs (4)
10989
N(SyntaxKind.
EventKeyword
);
11163
N(SyntaxKind.
EventKeyword
);
11708
N(SyntaxKind.
EventKeyword
);
11740
N(SyntaxKind.
EventKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (1)
698
N(SyntaxKind.
EventKeyword
);
Syntax\SyntaxTests.cs (1)
265
case SyntaxKind.
EventKeyword
:
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
205
case SyntaxKind.
EventKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
733
syntaxTree.IsAfterKeyword(position, SyntaxKind.
EventKeyword
, cancellationToken) ||