18 references to CatchKeyword
Microsoft.CodeAnalysis.CSharp (8)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1957=> node.Update(VisitToken(node.CatchKeyword), (CatchDeclarationSyntax?)Visit(node.Declaration), (CatchFilterClauseSyntax?)Visit(node.Filter), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
9119if (catchKeyword != this.CatchKeyword || declaration != this.Declaration || filter != this.Filter || block != this.Block) 9130public CatchClauseSyntax WithDeclaration(CatchDeclarationSyntax? declaration) => Update(this.CatchKeyword, declaration, this.Filter, this.Block); 9131public CatchClauseSyntax WithFilter(CatchFilterClauseSyntax? filter) => Update(this.CatchKeyword, this.Declaration, filter, this.Block); 9132public CatchClauseSyntax WithBlock(BlockSyntax block) => Update(this.CatchKeyword, this.Declaration, this.Filter, block);
Binder\Binder_Statements.cs (2)
3290diagnostics.Add(ErrorCode.ERR_TooManyCatches, catchSyntax.CatchKeyword.GetLocation()); 3385Error(diagnostics, ErrorCode.WRN_UnreachableGeneralCatch, node.CatchKeyword);
CodeGen\EmitStatement.cs (1)
1094spSpan = syntax.CatchKeyword.Span;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (2)
234if (catchClause is { CatchKeyword.IsMissing: false, Block: not null } && !catchClause.Block.CloseBraceToken.IsMissing) 236AddSuppressWrappingIfOnSingleLineOperation(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\BreakpointSpans.cs (2)
945return CreateSpan(catchClause.CatchKeyword, catchClause.Declaration.CloseParenToken); 949return CreateSpan(catchClause.CatchKeyword);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1783return ((CatchClauseSyntax)node).CatchKeyword.Span;
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (1)
34highlights.Add(catchDeclaration.CatchKeyword.Span);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (2)
234if (catchClause is { CatchKeyword.IsMissing: false, Block: not null } && !catchClause.Block.CloseBraceToken.IsMissing) 236AddSuppressWrappingIfOnSingleLineOperation(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (2)
234if (catchClause is { CatchKeyword.IsMissing: false, Block: not null } && !catchClause.Block.CloseBraceToken.IsMissing) 236AddSuppressWrappingIfOnSingleLineOperation(list, catchClause.CatchKeyword, catchClause.Block.CloseBraceToken);