65 references to ImplicitKeyword
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Crefs.cs (1)
271
if (syntax.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.
ImplicitKeyword
)
Binder\Semantics\Operators\OperatorFacts.cs (1)
160
case SyntaxKind.
ImplicitKeyword
:
Parser\DocumentationCommentParser.cs (2)
952
case SyntaxKind.
ImplicitKeyword
:
1147
CurrentToken.Kind == SyntaxKind.
ImplicitKeyword
);
Parser\LanguageParser.cs (6)
1261
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.
ImplicitKeyword
&& PeekToken(1).Kind == SyntaxKind.OperatorKeyword))
2028
case SyntaxKind.
ImplicitKeyword
:
2937
return this.CurrentToken.Kind is SyntaxKind.
ImplicitKeyword
or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword;
3224
if (this.CurrentToken.Kind is not (SyntaxKind.
ImplicitKeyword
or SyntaxKind.ExplicitKeyword))
3302
var style = this.CurrentToken.Kind is SyntaxKind.
ImplicitKeyword
or SyntaxKind.ExplicitKeyword
3478
if (this.CurrentToken.Kind is SyntaxKind.
ImplicitKeyword
or SyntaxKind.ExplicitKeyword)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
725
return SyntaxKind.
ImplicitKeyword
;
Syntax\SyntaxKindFacts.cs (5)
18
for (int i = (int)SyntaxKind.BoolKeyword; i <= (int)SyntaxKind.
ImplicitKeyword
; i++)
39
return kind >= SyntaxKind.BoolKeyword && kind <= SyntaxKind.
ImplicitKeyword
;
983
return SyntaxKind.
ImplicitKeyword
;
1022
case WellKnownMemberNames.ImplicitConversionName: return SyntaxKind.
ImplicitKeyword
;
1623
case SyntaxKind.
ImplicitKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConversionGenerator.cs (1)
56
? SyntaxFactory.Token(SyntaxKind.
ImplicitKeyword
)
CSharpDeclarationComparer.cs (1)
217
return x.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.
ImplicitKeyword
? -1 : 1;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1163
if (token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
ImplicitKeyword
) ||
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (1)
31
: base(SyntaxKind.
ImplicitKeyword
)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
25
token.Kind() is SyntaxKind.
ImplicitKeyword
or
GenerateMember\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
72
SyntaxKind.
ImplicitKeyword
,
98
SyntaxKind.
ImplicitKeyword
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
Generated\Syntax.Test.xml.Generated.cs (8)
551
=> InternalSyntaxFactory.ConversionOperatorDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
ImplicitKeyword
), null, InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, GenerateIdentifierName(), GenerateParameterList(), null, null, null);
617
=> InternalSyntaxFactory.ConversionOperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.
ImplicitKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, GenerateIdentifierName(), null);
3006
Assert.Equal(SyntaxKind.
ImplicitKeyword
, node.ImplicitOrExplicitKeyword.Kind);
3301
Assert.Equal(SyntaxKind.
ImplicitKeyword
, node.ImplicitOrExplicitKeyword.Kind);
10527
=> SyntaxFactory.ConversionOperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
ImplicitKeyword
), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10593
=> SyntaxFactory.ConversionOperatorMemberCref(SyntaxFactory.Token(SyntaxKind.
ImplicitKeyword
), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), default(CrefParameterListSyntax));
12982
Assert.Equal(SyntaxKind.
ImplicitKeyword
, node.ImplicitOrExplicitKeyword.Kind());
13277
Assert.Equal(SyntaxKind.
ImplicitKeyword
, node.ImplicitOrExplicitKeyword.Kind());
LexicalAndXml\CrefLexerTests.cs (3)
43
AssertTokens("implicit", Token(SyntaxKind.
ImplicitKeyword
));
52
AssertTokens("implicit", Token(SyntaxKind.
ImplicitKeyword
, "implicit", "implicit"));
61
AssertTokens("implicit", Token(SyntaxKind.
ImplicitKeyword
, "implicit", "implicit"));
Parsing\AsyncParsingTests.cs (1)
1655
N(SyntaxKind.
ImplicitKeyword
);
Parsing\CrefParsingTests.cs (6)
873
N(SyntaxKind.
ImplicitKeyword
);
889
N(SyntaxKind.
ImplicitKeyword
);
913
N(SyntaxKind.
ImplicitKeyword
);
1033
N(SyntaxKind.
ImplicitKeyword
);
1057
N(SyntaxKind.
ImplicitKeyword
);
1089
N(SyntaxKind.
ImplicitKeyword
);
Parsing\DeclarationParsingTests.cs (1)
5557
Assert.Equal(SyntaxKind.
ImplicitKeyword
, ms.ImplicitOrExplicitKeyword.Kind());
Parsing\MemberDeclarationParsingTests.cs (17)
332
N(SyntaxKind.
ImplicitKeyword
);
1617
N(SyntaxKind.
ImplicitKeyword
);
1678
N(SyntaxKind.
ImplicitKeyword
);
6309
N(SyntaxKind.
ImplicitKeyword
);
6560
N(SyntaxKind.
ImplicitKeyword
);
6715
N(SyntaxKind.
ImplicitKeyword
);
6827
N(SyntaxKind.
ImplicitKeyword
);
6940
N(SyntaxKind.
ImplicitKeyword
);
7149
N(SyntaxKind.
ImplicitKeyword
);
7357
N(SyntaxKind.
ImplicitKeyword
);
7520
N(SyntaxKind.
ImplicitKeyword
);
7640
N(SyntaxKind.
ImplicitKeyword
);
7761
N(SyntaxKind.
ImplicitKeyword
);
7895
N(SyntaxKind.
ImplicitKeyword
);
9914
[InlineData("implicit", SyntaxKind.
ImplicitKeyword
)]
9956
[InlineData("implicit", SyntaxKind.
ImplicitKeyword
)]
10132
[InlineData("implicit", SyntaxKind.
ImplicitKeyword
)]
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
294
OperatorKind.ImplicitConversion => SyntaxKind.
ImplicitKeyword
,
ConversionGenerator.cs (1)
56
? SyntaxFactory.Token(SyntaxKind.
ImplicitKeyword
)
CSharpDeclarationComparer.cs (1)
217
return x.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.
ImplicitKeyword
? -1 : 1;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1163
if (token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.
ImplicitKeyword
) ||
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1271
SyntaxKind.
ImplicitKeyword
,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
838
return (conversionOperator.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.
ImplicitKeyword
? "implicit " : "explicit ")