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