72 references to ImplicitKeyword
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Crefs.cs (1)
271if (syntax.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword)
Binder\Semantics\Operators\OperatorFacts.cs (1)
160case SyntaxKind.ImplicitKeyword:
Parser\DocumentationCommentParser.cs (2)
947case SyntaxKind.ImplicitKeyword: 1142CurrentToken.Kind == SyntaxKind.ImplicitKeyword);
Parser\LanguageParser.cs (7)
1534(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 2343case SyntaxKind.ImplicitKeyword: 3251return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3538if (this.CurrentToken.Kind is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)) 3616var style = this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword 3780if (firstToken.Kind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && 3821if (this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
715return SyntaxKind.ImplicitKeyword;
Syntax\SyntaxKindFacts.cs (5)
20for (int i = (int)SyntaxKind.BoolKeyword; i <= (int)SyntaxKind.ImplicitKeyword; i++) 42return kind >= SyntaxKind.BoolKeyword && kind <= SyntaxKind.ImplicitKeyword; 1011return SyntaxKind.ImplicitKeyword; 1050case WellKnownMemberNames.ImplicitConversionName: return SyntaxKind.ImplicitKeyword; 1659case SyntaxKind.ImplicitKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
40public static readonly SyntaxToken ImplicitKeyword = Token(SyntaxKind.ImplicitKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
67SyntaxKind.ImplicitKeyword, 93SyntaxKind.ImplicitKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
217return x.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword ? -1 : 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 (4)
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (1)
31: base(SyntaxKind.ImplicitKeyword)
Completion\KeywordRecommenders\OperatorKeywordRecommender.cs (1)
25token.Kind() is SyntaxKind.ImplicitKeyword or
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
67SyntaxKind.ImplicitKeyword, 93SyntaxKind.ImplicitKeyword,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (41)
Generated\Syntax.Test.xml.Generated.cs (8)
569=> 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); 635=> InternalSyntaxFactory.ConversionOperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.ImplicitKeyword), InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, GenerateIdentifierName(), null); 3089Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 3384Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 10785=> 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)); 10851=> SyntaxFactory.ConversionOperatorMemberCref(SyntaxFactory.Token(SyntaxKind.ImplicitKeyword), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), default(CrefParameterListSyntax)); 13305Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind()); 13600Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind());
LexicalAndXml\CrefLexerTests.cs (3)
43AssertTokens("implicit", Token(SyntaxKind.ImplicitKeyword)); 52AssertTokens("&#105;mplicit", Token(SyntaxKind.ImplicitKeyword, "&#105;mplicit", "implicit")); 61AssertTokens("&#105;mplici&#116;", Token(SyntaxKind.ImplicitKeyword, "&#105;mplici&#116;", "implicit"));
Parsing\AsyncParsingTests.cs (2)
1655N(SyntaxKind.ImplicitKeyword); 1712N(SyntaxKind.ImplicitKeyword);
Parsing\CrefParsingTests.cs (6)
873N(SyntaxKind.ImplicitKeyword); 889N(SyntaxKind.ImplicitKeyword); 913N(SyntaxKind.ImplicitKeyword); 1033N(SyntaxKind.ImplicitKeyword); 1057N(SyntaxKind.ImplicitKeyword); 1089N(SyntaxKind.ImplicitKeyword);
Parsing\DeclarationParsingTests.cs (1)
5557Assert.Equal(SyntaxKind.ImplicitKeyword, ms.ImplicitOrExplicitKeyword.Kind());
Parsing\MemberDeclarationParsingTests.cs (21)
332N(SyntaxKind.ImplicitKeyword); 1611N(SyntaxKind.ImplicitKeyword); 1672N(SyntaxKind.ImplicitKeyword); 6300N(SyntaxKind.ImplicitKeyword); 6551N(SyntaxKind.ImplicitKeyword); 6706N(SyntaxKind.ImplicitKeyword); 6818N(SyntaxKind.ImplicitKeyword); 6931N(SyntaxKind.ImplicitKeyword); 7140N(SyntaxKind.ImplicitKeyword); 7348N(SyntaxKind.ImplicitKeyword); 7511N(SyntaxKind.ImplicitKeyword); 7631N(SyntaxKind.ImplicitKeyword); 7752N(SyntaxKind.ImplicitKeyword); 7885N(SyntaxKind.ImplicitKeyword); 9903[InlineData("implicit", SyntaxKind.ImplicitKeyword)] 9945[InlineData("implicit", SyntaxKind.ImplicitKeyword)] 10121[InlineData("implicit", SyntaxKind.ImplicitKeyword)] 11559N(SyntaxKind.ImplicitKeyword); 11677N(SyntaxKind.ImplicitKeyword); 19157N(SyntaxKind.ImplicitKeyword); 19229N(SyntaxKind.ImplicitKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
40public static readonly SyntaxToken ImplicitKeyword = Token(SyntaxKind.ImplicitKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
217return x.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword ? -1 : 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.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1280SyntaxKind.ImplicitKeyword,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
835return (conversionOperator.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword ? "implicit " : "explicit ")