65 references to ImplicitKeyword
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Crefs.cs (1)
271if (syntax.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword)
Binder\Semantics\Operators\OperatorFacts.cs (1)
160case SyntaxKind.ImplicitKeyword:
Parser\DocumentationCommentParser.cs (2)
952case SyntaxKind.ImplicitKeyword: 1147CurrentToken.Kind == SyntaxKind.ImplicitKeyword);
Parser\LanguageParser.cs (6)
1261(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 2028case SyntaxKind.ImplicitKeyword: 2937return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3224if (this.CurrentToken.Kind is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)) 3302var style = this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword 3478if (this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
725return SyntaxKind.ImplicitKeyword;
Syntax\SyntaxKindFacts.cs (5)
18for (int i = (int)SyntaxKind.BoolKeyword; i <= (int)SyntaxKind.ImplicitKeyword; i++) 39return kind >= SyntaxKind.BoolKeyword && kind <= SyntaxKind.ImplicitKeyword; 983return SyntaxKind.ImplicitKeyword; 1022case WellKnownMemberNames.ImplicitConversionName: return SyntaxKind.ImplicitKeyword; 1623case SyntaxKind.ImplicitKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConversionGenerator.cs (1)
56? SyntaxFactory.Token(SyntaxKind.ImplicitKeyword)
CSharpDeclarationComparer.cs (1)
217return x.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword ? -1 : 1;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1163if (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)
25token.Kind() is SyntaxKind.ImplicitKeyword or
GenerateMember\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
72SyntaxKind.ImplicitKeyword, 98SyntaxKind.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); 3006Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 3301Assert.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)); 12982Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind()); 13277Assert.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 (1)
1655N(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 (17)
332N(SyntaxKind.ImplicitKeyword); 1617N(SyntaxKind.ImplicitKeyword); 1678N(SyntaxKind.ImplicitKeyword); 6309N(SyntaxKind.ImplicitKeyword); 6560N(SyntaxKind.ImplicitKeyword); 6715N(SyntaxKind.ImplicitKeyword); 6827N(SyntaxKind.ImplicitKeyword); 6940N(SyntaxKind.ImplicitKeyword); 7149N(SyntaxKind.ImplicitKeyword); 7357N(SyntaxKind.ImplicitKeyword); 7520N(SyntaxKind.ImplicitKeyword); 7640N(SyntaxKind.ImplicitKeyword); 7761N(SyntaxKind.ImplicitKeyword); 7895N(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)
294OperatorKind.ImplicitConversion => SyntaxKind.ImplicitKeyword,
ConversionGenerator.cs (1)
56? SyntaxFactory.Token(SyntaxKind.ImplicitKeyword)
CSharpDeclarationComparer.cs (1)
217return x.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword ? -1 : 1;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1163if (token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.ImplicitKeyword) ||
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1271SyntaxKind.ImplicitKeyword,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
838return (conversionOperator.ImplicitOrExplicitKeyword.Kind() == SyntaxKind.ImplicitKeyword ? "implicit " : "explicit ")