43 references to CatchKeyword
Microsoft.CodeAnalysis.CSharp (19)
_generated\0\Syntax.xml.Main.Generated.cs (3)
4762if (catchKeyword.Kind() != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 4769=> SyntaxFactory.CatchClause(SyntaxFactory.Token(SyntaxKind.CatchKeyword), declaration, filter, block); 4773=> SyntaxFactory.CatchClause(SyntaxFactory.Token(SyntaxKind.CatchKeyword), default, default, SyntaxFactory.Block());
_generated\1\Syntax.xml.Internal.Generated.cs (2)
31834if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 37256if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
Parser\LanguageParser.cs (11)
8371case SyntaxKind.CatchKeyword: 9414Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9427Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9441if (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9444while (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9485return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword; 9490Debug.Assert(this.CurrentToken.Kind == SyntaxKind.CatchKeyword); 9552or SyntaxKind.CatchKeyword 9561or SyntaxKind.CatchKeyword 9567or SyntaxKind.CatchKeyword 11215case SyntaxKind.CatchKeyword:
Syntax\SyntaxKindFacts.cs (2)
951return SyntaxKind.CatchKeyword; 1648case 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)) 2977if (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)) 2977if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\Legacy\CSharpCodeParser.cs (3)
2378if (At(CSharpSyntaxKind.CatchKeyword)) 2381Assert(CSharpSyntaxKind.CatchKeyword); 2402Assert(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)) 2977if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))