26 references to AsKeyword
Microsoft.CodeAnalysis.CSharp (5)
Parser\LanguageParser.cs (2)
5960case SyntaxKind.AsKeyword: // e.g. `e is A<B> as bool` 12636case SyntaxKind.AsKeyword:
Syntax\SyntaxKindFacts.cs (3)
625case SyntaxKind.AsKeyword: 973return SyntaxKind.AsKeyword; 1621case SyntaxKind.AsKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
340currentKind == SyntaxKind.AsKeyword || 344previousKind == SyntaxKind.AsKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1919if (token.Kind() is SyntaxKind.IsKeyword or SyntaxKind.AsKeyword)
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\AsKeywordRecommender.cs (1)
13: base(SyntaxKind.AsKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Parsing\ExpressionParsingTests.cs (1)
662TestBinary(SyntaxKind.AsKeyword);
Parsing\FunctionPointerTests.cs (1)
1893N(SyntaxKind.AsKeyword);
Parsing\LambdaAttributeParsingTests.cs (5)
1462N(SyntaxKind.AsKeyword); 2528N(SyntaxKind.AsKeyword); 2565N(SyntaxKind.AsKeyword); 2610N(SyntaxKind.AsKeyword); 2649N(SyntaxKind.AsKeyword);
Parsing\NullableParsingTests.cs (5)
504N(SyntaxKind.AsKeyword); 531N(SyntaxKind.AsKeyword); 573N(SyntaxKind.AsKeyword); 611N(SyntaxKind.AsKeyword); 650N(SyntaxKind.AsKeyword);
Parsing\PatternParsingTests.cs (1)
417N(SyntaxKind.AsKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
75(CSharp.SyntaxFacts.IsKeywordKind(nextToken.Kind()) && nextToken.Kind() is not SyntaxKind.AsKeyword and not SyntaxKind.IsKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (2)
340currentKind == SyntaxKind.AsKeyword || 344previousKind == SyntaxKind.AsKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1919if (token.Kind() is SyntaxKind.IsKeyword or SyntaxKind.AsKeyword)