21 references to Catches
Microsoft.CodeAnalysis.CSharp (12)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1954
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.TryKeyword), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"), VisitList(node.
Catches
), (FinallyClauseSyntax?)Visit(node.Finally));
_generated\2\Syntax.xml.Syntax.Generated.cs (6)
9047
if (attributeLists != this.AttributeLists || tryKeyword != this.TryKeyword || block != this.Block || catches != this.
Catches
|| @finally != this.Finally)
9058
public new TryStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.TryKeyword, this.Block, this.
Catches
, this.Finally);
9059
public TryStatementSyntax WithTryKeyword(SyntaxToken tryKeyword) => Update(this.AttributeLists, tryKeyword, this.Block, this.
Catches
, this.Finally);
9060
public TryStatementSyntax WithBlock(BlockSyntax block) => Update(this.AttributeLists, this.TryKeyword, block, this.
Catches
, this.Finally);
9062
public TryStatementSyntax WithFinally(FinallyClauseSyntax? @finally) => Update(this.AttributeLists, this.TryKeyword, this.Block, this.
Catches
, @finally);
9068
public TryStatementSyntax AddCatches(params CatchClauseSyntax[] items) => WithCatches(this.
Catches
.AddRange(items));
Binder\Binder_Statements.cs (2)
3270
var catchBlocks = BindCatchBlocks(node.
Catches
, diagnostics);
3427
: (filter.Parent.Parent is TryStatementSyntax s && s.
Catches
.Count == 1 && s.Finally == null)
Binder\LocalBinderFactory.cs (2)
853
if (node.
Catches
.Any())
866
foreach (CatchClauseSyntax c in node.
Catches
)
Syntax\LookupPosition.cs (1)
426
CatchClauseSyntax? lastCatch = tryStmt.
Catches
.LastOrDefault();
Microsoft.CodeAnalysis.CSharp.Features (9)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
287
foreach (var catchClause in tryStatement.
Catches
)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
202
foreach (var catchClause in tryStatement.
Catches
)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
2663
&& SyntaxFactory.AreEquivalent(oldTryStatement.
Catches
, newTryStatement.
Catches
);
2697
if (tryStatement.
Catches
is not [var firstCatch, ..])
2707
: tryStatement.
Catches
.Last().Span.End);
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (1)
32
foreach (var catchDeclaration in tryStatement.
Catches
)
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
36
=> tryStatement.
Catches
.Count > 0;
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
74
foreach (var catchClause in tryStatement.
Catches
)