43 references to CatchKeyword
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (3)
4724if (catchKeyword.Kind() != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 4731=> SyntaxFactory.CatchClause(SyntaxFactory.Token(SyntaxKind.CatchKeyword), declaration, filter, block); 4735=> SyntaxFactory.CatchClause(SyntaxFactory.Token(SyntaxKind.CatchKeyword), default, default, SyntaxFactory.Block());
_generated\1\Syntax.xml.Internal.Generated.cs (2)
31699if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 37126if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
Parser\LanguageParser.cs (11)
8366case SyntaxKind.CatchKeyword: 9391Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9404Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9418if (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9421while (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9462return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword; 9467Debug.Assert(this.CurrentToken.Kind == SyntaxKind.CatchKeyword); 9529or SyntaxKind.CatchKeyword 9538or SyntaxKind.CatchKeyword 9544or SyntaxKind.CatchKeyword 11191case SyntaxKind.CatchKeyword:
Syntax\SyntaxKindFacts.cs (2)
949return SyntaxKind.CatchKeyword; 1646case SyntaxKind.CatchKeyword:
Syntax\SyntaxNormalizer.cs (1)
410case SyntaxKind.CatchKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
430nextToken.Kind() is SyntaxKind.CatchKeyword or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
94if (currentToken.IsKind(SyntaxKind.CatchKeyword)) 291if (currentToken.IsKind(SyntaxKind.CatchKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1914token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) 2984if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\CatchKeywordRecommender.cs (1)
10internal sealed class CatchKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.CatchKeyword)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\ClassificationHelpers.cs (1)
75case SyntaxKind.CatchKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
430nextToken.Kind() is SyntaxKind.CatchKeyword or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
94if (currentToken.IsKind(SyntaxKind.CatchKeyword)) 291if (currentToken.IsKind(SyntaxKind.CatchKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1914token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) 2984if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\Legacy\CSharpCodeParser.cs (3)
2362if (At(CSharpSyntaxKind.CatchKeyword)) 2365Assert(CSharpSyntaxKind.CatchKeyword); 2386Assert(CSharpSyntaxKind.CatchKeyword);
Language\Legacy\NativeCSharpTokenizer.cs (1)
68CSharpSyntaxKind.CatchKeyword,
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
430nextToken.Kind() is SyntaxKind.CatchKeyword or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
94if (currentToken.IsKind(SyntaxKind.CatchKeyword)) 291if (currentToken.IsKind(SyntaxKind.CatchKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1914token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) 2984if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))