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