73 references to ExplicitKeyword
Microsoft.CodeAnalysis.CSharp (20)
Parser\DocumentationCommentParser.cs (2)
946case SyntaxKind.ExplicitKeyword: 1207Debug.Assert(CurrentToken.Kind == SyntaxKind.ExplicitKeyword ||
Parser\LanguageParser.cs (8)
1542(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 2399case SyntaxKind.ExplicitKeyword: 3397return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3691if (this.CurrentToken.Kind is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)) 3769var style = this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword 3771: this.EatToken(SyntaxKind.ExplicitKeyword); 3933if (firstToken.Kind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && 3974if (this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
720return SyntaxKind.ExplicitKeyword;
Syntax.xml.Internal.Generated.cs (4)
32291case SyntaxKind.ExplicitKeyword: break; 32813case SyntaxKind.ExplicitKeyword: break; 37658case SyntaxKind.ExplicitKeyword: break; 38180case SyntaxKind.ExplicitKeyword: break;
Syntax.xml.Main.Generated.cs (2)
5488case SyntaxKind.ExplicitKeyword: break; 5966case SyntaxKind.ExplicitKeyword: break;
Syntax\SyntaxKindFacts.cs (3)
1040return SyntaxKind.ExplicitKeyword; 1073return SyntaxKind.ExplicitKeyword; 1732case SyntaxKind.ExplicitKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
34public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1187token.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\CheckedKeywordRecommender.cs (1)
53if (previousToken.Kind() == SyntaxKind.ExplicitKeyword)
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (1)
12internal sealed class ExplicitKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.ExplicitKeyword)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
20token.Kind() is SyntaxKind.ImplicitKeyword or SyntaxKind.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)
1757N(SyntaxKind.ExplicitKeyword); 1815N(SyntaxKind.ExplicitKeyword);
Parsing\CrefParsingTests.cs (10)
1929N(SyntaxKind.ExplicitKeyword); 1957N(SyntaxKind.ExplicitKeyword); 1993N(SyntaxKind.ExplicitKeyword); 2112N(SyntaxKind.ExplicitKeyword); 2148N(SyntaxKind.ExplicitKeyword); 2192N(SyntaxKind.ExplicitKeyword); 3063N(SyntaxKind.ExplicitKeyword); 3092N(SyntaxKind.ExplicitKeyword); 3123N(SyntaxKind.ExplicitKeyword); 3152N(SyntaxKind.ExplicitKeyword);
Parsing\DeclarationParsingTests.cs (1)
5659Assert.Equal(SyntaxKind.ExplicitKeyword, ms.ImplicitOrExplicitKeyword.Kind());
Parsing\MemberDeclarationParsingTests.cs (27)
6403M(SyntaxKind.ExplicitKeyword); 6470M(SyntaxKind.ExplicitKeyword); 6654N(SyntaxKind.ExplicitKeyword); 6771N(SyntaxKind.ExplicitKeyword); 6871N(SyntaxKind.ExplicitKeyword); 7030N(SyntaxKind.ExplicitKeyword); 7247N(SyntaxKind.ExplicitKeyword); 7455N(SyntaxKind.ExplicitKeyword); 7580N(SyntaxKind.ExplicitKeyword); 7688N(SyntaxKind.ExplicitKeyword); 7826N(SyntaxKind.ExplicitKeyword); 7953N(SyntaxKind.ExplicitKeyword); 8007N(SyntaxKind.ExplicitKeyword); 8061N(SyntaxKind.ExplicitKeyword); 8115N(SyntaxKind.ExplicitKeyword); 8174N(SyntaxKind.ExplicitKeyword); 8223N(SyntaxKind.ExplicitKeyword); 8288N(SyntaxKind.ExplicitKeyword); 8340N(SyntaxKind.ExplicitKeyword); 8398N(SyntaxKind.ExplicitKeyword); 8454N(SyntaxKind.ExplicitKeyword); 8503N(SyntaxKind.ExplicitKeyword); 8557N(SyntaxKind.ExplicitKeyword); 8636N(SyntaxKind.ExplicitKeyword); 9907[InlineData("explicit", SyntaxKind.ExplicitKeyword)] 9949[InlineData("explicit", SyntaxKind.ExplicitKeyword)] 10125[InlineData("explicit", SyntaxKind.ExplicitKeyword)]
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
34public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1187token.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
34public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1187token.GetPreviousToken(includeSkipped: true).Kind() is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)