38 references to CatchKeyword
Microsoft.CodeAnalysis.CSharp (14)
Parser\LanguageParser.cs (11)
7937case SyntaxKind.CatchKeyword: 8884Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 8897Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 8911if (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 8914while (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 8955return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword; 8960Debug.Assert(this.CurrentToken.Kind == SyntaxKind.CatchKeyword); 9022or SyntaxKind.CatchKeyword 9031or SyntaxKind.CatchKeyword 9037or SyntaxKind.CatchKeyword 10612case SyntaxKind.CatchKeyword:
Syntax\SyntaxKindFacts.cs (2)
919return SyntaxKind.CatchKeyword; 1563case SyntaxKind.CatchKeyword:
Syntax\SyntaxNormalizer.cs (1)
394case SyntaxKind.CatchKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
430nextToken.Kind() is SyntaxKind.CatchKeyword or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
94if (currentToken.IsKind(SyntaxKind.CatchKeyword)) 288if (currentToken.IsKind(SyntaxKind.CatchKeyword))
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1906token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) 2974if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\CatchKeywordRecommender.cs (1)
13: base(SyntaxKind.CatchKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Generated\Syntax.Test.xml.Generated.cs (4)
452=> InternalSyntaxFactory.CatchClause(InternalSyntaxFactory.Token(SyntaxKind.CatchKeyword), null, null, GenerateBlock()); 2542Assert.Equal(SyntaxKind.CatchKeyword, node.CatchKeyword.Kind); 10668=> SyntaxFactory.CatchClause(SyntaxFactory.Token(SyntaxKind.CatchKeyword), default(CatchDeclarationSyntax), default(CatchFilterClauseSyntax), GenerateBlock()); 12758Assert.Equal(SyntaxKind.CatchKeyword, node.CatchKeyword.Kind());
Parsing\DeclarationScopeParsingTests.cs (3)
14726N(SyntaxKind.CatchKeyword); 14802N(SyntaxKind.CatchKeyword); 14888N(SyntaxKind.CatchKeyword);
Parsing\FieldKeywordParsingTests.cs (1)
1878N(SyntaxKind.CatchKeyword);
Parsing\StatementAttributeParsingTests.cs (2)
3069N(SyntaxKind.CatchKeyword); 3142N(SyntaxKind.CatchKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\ClassificationHelpers.cs (1)
73case SyntaxKind.CatchKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
430nextToken.Kind() is SyntaxKind.CatchKeyword or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
94if (currentToken.IsKind(SyntaxKind.CatchKeyword)) 288if (currentToken.IsKind(SyntaxKind.CatchKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
155previousKind == SyntaxKind.ForKeyword || previousKind == SyntaxKind.ForEachKeyword || previousKind == SyntaxKind.CatchKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1906token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) 2974if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword))