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