65 references to ExplicitKeyword
Microsoft.CodeAnalysis.CSharp (14)
Parser\DocumentationCommentParser.cs (2)
946case SyntaxKind.ExplicitKeyword: 1141Debug.Assert(CurrentToken.Kind == SyntaxKind.ExplicitKeyword ||
Parser\LanguageParser.cs (8)
1535(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 2345case SyntaxKind.ExplicitKeyword: 3252return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3539if (this.CurrentToken.Kind is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)) 3617var style = this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword 3619: this.EatToken(SyntaxKind.ExplicitKeyword); 3781if (firstToken.Kind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && 3822if (this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
719return SyntaxKind.ExplicitKeyword;
Syntax\SyntaxKindFacts.cs (3)
1013return SyntaxKind.ExplicitKeyword; 1044return SyntaxKind.ExplicitKeyword; 1661case SyntaxKind.ExplicitKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
31public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1186token.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\CheckedKeywordRecommender.cs (1)
58if (previousToken.Kind() == SyntaxKind.ExplicitKeyword)
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (1)
31: base(SyntaxKind.ExplicitKeyword)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
26SyntaxKind.ExplicitKeyword;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (44)
LexicalAndXml\CrefLexerTests.cs (4)
42AssertTokens("explicit", Token(SyntaxKind.ExplicitKeyword)); 51AssertTokens("explicit", Token(SyntaxKind.ExplicitKeyword, "explicit", "explicit")); 60AssertTokens("explicit", Token(SyntaxKind.ExplicitKeyword, "explicit", "explicit")); 384Token(SyntaxKind.ExplicitKeyword),
Parsing\AsyncParsingTests.cs (2)
1766N(SyntaxKind.ExplicitKeyword); 1824N(SyntaxKind.ExplicitKeyword);
Parsing\CrefParsingTests.cs (10)
930N(SyntaxKind.ExplicitKeyword); 958N(SyntaxKind.ExplicitKeyword); 994N(SyntaxKind.ExplicitKeyword); 1113N(SyntaxKind.ExplicitKeyword); 1149N(SyntaxKind.ExplicitKeyword); 1193N(SyntaxKind.ExplicitKeyword); 2064N(SyntaxKind.ExplicitKeyword); 2093N(SyntaxKind.ExplicitKeyword); 2124N(SyntaxKind.ExplicitKeyword); 2153N(SyntaxKind.ExplicitKeyword);
Parsing\DeclarationParsingTests.cs (1)
5605Assert.Equal(SyntaxKind.ExplicitKeyword, ms.ImplicitOrExplicitKeyword.Kind());
Parsing\MemberDeclarationParsingTests.cs (27)
6400M(SyntaxKind.ExplicitKeyword); 6467M(SyntaxKind.ExplicitKeyword); 6651N(SyntaxKind.ExplicitKeyword); 6768N(SyntaxKind.ExplicitKeyword); 6868N(SyntaxKind.ExplicitKeyword); 7027N(SyntaxKind.ExplicitKeyword); 7244N(SyntaxKind.ExplicitKeyword); 7452N(SyntaxKind.ExplicitKeyword); 7577N(SyntaxKind.ExplicitKeyword); 7685N(SyntaxKind.ExplicitKeyword); 7823N(SyntaxKind.ExplicitKeyword); 7950N(SyntaxKind.ExplicitKeyword); 8004N(SyntaxKind.ExplicitKeyword); 8058N(SyntaxKind.ExplicitKeyword); 8112N(SyntaxKind.ExplicitKeyword); 8171N(SyntaxKind.ExplicitKeyword); 8220N(SyntaxKind.ExplicitKeyword); 8285N(SyntaxKind.ExplicitKeyword); 8337N(SyntaxKind.ExplicitKeyword); 8395N(SyntaxKind.ExplicitKeyword); 8451N(SyntaxKind.ExplicitKeyword); 8500N(SyntaxKind.ExplicitKeyword); 8554N(SyntaxKind.ExplicitKeyword); 8633N(SyntaxKind.ExplicitKeyword); 9904[InlineData("explicit", SyntaxKind.ExplicitKeyword)] 9946[InlineData("explicit", SyntaxKind.ExplicitKeyword)] 10122[InlineData("explicit", SyntaxKind.ExplicitKeyword)]
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
31public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1186token.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)