39 references to IsKeyword
Microsoft.CodeAnalysis.CSharp (18)
_generated\0\Syntax.xml.Main.Generated.cs (5)
2832case SyntaxKind.IsKeyword: 2867SyntaxKind.IsExpression => SyntaxKind.IsKeyword, 3743if (isKeyword.Kind() != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 3750=> SyntaxFactory.IsPatternExpression(expression, SyntaxFactory.Token(SyntaxKind.IsKeyword), pattern); 5553case SyntaxKind.IsKeyword:
_generated\1\Syntax.xml.Internal.Generated.cs (6)
29472case SyntaxKind.IsKeyword: 30626if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 32794case SyntaxKind.IsKeyword: 34894case SyntaxKind.IsKeyword: 36048if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 38216case SyntaxKind.IsKeyword:
Binder\Binder_Operators.cs (1)
4781Error(diagnostics, ErrorCode.ERR_BadUnaryOp, node, SyntaxFacts.GetText(SyntaxKind.IsKeyword), operand.Display);
Parser\LanguageParser.cs (3)
4195if (!(opKind == SyntaxKind.IsKeyword || 6363case SyntaxKind.IsKeyword: // e.g. `e is A<B> is bool` 13250case SyntaxKind.IsKeyword:
Syntax\SyntaxKindFacts.cs (3)
651case SyntaxKind.IsKeyword: 1003return SyntaxKind.IsKeyword; 1704case SyntaxKind.IsKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
59public static readonly SyntaxToken IsKeyword = Token(SyntaxKind.IsKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
346if (currentKind == SyntaxKind.IsKeyword || 350previousKind == SyntaxKind.IsKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1392if (leftToken.Kind() is SyntaxKind.CaseKeyword or SyntaxKind.IsKeyword) 1534binaryExpressionSyntax.OperatorToken.IsKind(SyntaxKind.IsKeyword) && 1927if (token.Kind() is SyntaxKind.IsKeyword or SyntaxKind.AsKeyword)
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\IsKeywordRecommender.cs (1)
10internal sealed class IsKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.IsKeyword)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
75(CSharp.SyntaxFacts.IsKeywordKind(nextToken.Kind()) && nextToken.Kind() is not SyntaxKind.AsKeyword and not SyntaxKind.IsKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
59public static readonly SyntaxToken IsKeyword = Token(SyntaxKind.IsKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
346if (currentKind == SyntaxKind.IsKeyword || 350previousKind == SyntaxKind.IsKeyword ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1392if (leftToken.Kind() is SyntaxKind.CaseKeyword or SyntaxKind.IsKeyword) 1534binaryExpressionSyntax.OperatorToken.IsKind(SyntaxKind.IsKeyword) && 1927if (token.Kind() is SyntaxKind.IsKeyword or SyntaxKind.AsKeyword)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
46CSharpSyntaxKind.IsKeyword,
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
59public static readonly SyntaxToken IsKeyword = Token(SyntaxKind.IsKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
346if (currentKind == SyntaxKind.IsKeyword || 350previousKind == SyntaxKind.IsKeyword ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1392if (leftToken.Kind() is SyntaxKind.CaseKeyword or SyntaxKind.IsKeyword) 1534binaryExpressionSyntax.OperatorToken.IsKind(SyntaxKind.IsKeyword) && 1927if (token.Kind() is SyntaxKind.IsKeyword or SyntaxKind.AsKeyword)