39 references to IsKeyword
Microsoft.CodeAnalysis.CSharp (18)
_generated\0\Syntax.xml.Main.Generated.cs (5)
2820case SyntaxKind.IsKeyword: 2855SyntaxKind.IsExpression => SyntaxKind.IsKeyword, 3715if (isKeyword.Kind() != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 3722=> SyntaxFactory.IsPatternExpression(expression, SyntaxFactory.Token(SyntaxKind.IsKeyword), pattern); 5515case SyntaxKind.IsKeyword:
_generated\1\Syntax.xml.Internal.Generated.cs (6)
29332case SyntaxKind.IsKeyword: 30471if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 32659case SyntaxKind.IsKeyword: 34759case SyntaxKind.IsKeyword: 35898if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 38086case SyntaxKind.IsKeyword:
Binder\Binder_Operators.cs (1)
4805Error(diagnostics, ErrorCode.ERR_BadUnaryOp, node, SyntaxFacts.GetText(SyntaxKind.IsKeyword), operand.Display);
Parser\LanguageParser.cs (3)
4190if (!(opKind == SyntaxKind.IsKeyword || 6358case SyntaxKind.IsKeyword: // e.g. `e is A<B> is bool` 13214case SyntaxKind.IsKeyword:
Syntax\SyntaxKindFacts.cs (3)
649case SyntaxKind.IsKeyword: 1001return SyntaxKind.IsKeyword; 1702case 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)