22 references to CatchBlocks
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\Binder_Statements.vb (1)
4716Dim catchBlocks As ImmutableArray(Of BoundCatchBlock) = BindCatchBlocks(node.CatchBlocks, diagnostics)
Binding\LocalBinderBuilder.vb (1)
264For Each catchBlock In node.CatchBlocks
Generated\Syntax.xml.Main.Generated.vb (1)
3052Dim newCatchBlocks = VisitList(node.CatchBlocks)
Generated\Syntax.xml.Syntax.Generated.vb (6)
15372return Update(tryStatement, Me.Statements, Me.CatchBlocks, Me.FinallyBlock, Me.EndTryStatement) 15394return Update(Me.TryStatement, statements, Me.CatchBlocks, Me.FinallyBlock, Me.EndTryStatement) 15425Return Me.WithCatchBlocks(Me.CatchBlocks.AddRange(items)) 15446return Update(Me.TryStatement, Me.Statements, Me.CatchBlocks, finallyBlock, Me.EndTryStatement) 15469return Update(Me.TryStatement, Me.Statements, Me.CatchBlocks, Me.FinallyBlock, endTryStatement) 15535If tryStatement IsNot Me.TryStatement OrElse statements <> Me.Statements OrElse catchBlocks <> Me.CatchBlocks OrElse finallyBlock IsNot Me.FinallyBlock OrElse endTryStatement IsNot Me.EndTryStatement Then
Semantics\StatementSyntaxWalker.vb (1)
166VisitList(node.CatchBlocks)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
96parts.AddRange(node.CatchBlocks.Select(Function(catchBlock) catchBlock.CatchStatement))
Microsoft.CodeAnalysis.VisualBasic.Features (9)
Completion\KeywordRecommenders\Statements\FinallyKeywordRecommender.vb (3)
39If tryBlock.CatchBlocks.Count = 0 Then 43If TextSpan.FromBounds(tryBlock.CatchBlocks.Last().SpanStart, tryBlock.EndTryStatement.SpanStart).Contains(context.Position) Then 54If parent.IsKind(SyntaxKind.CatchBlock) AndAlso tryBlock.CatchBlocks.Contains(DirectCast(parent, CatchBlockSyntax)) Then
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (4)
2589SyntaxFactory.AreEquivalent(oldTryBlock.CatchBlocks, newTryBlock.CatchBlocks) 2611If tryBlock.CatchBlocks.Count = 0 Then 2616Return TextSpan.FromBounds(tryBlock.CatchBlocks.First().SpanStart, tryBlock.EndTryStatement.Span.End)
Highlighting\KeywordHighlighters\TryBlockHighlighter.vb (1)
37For Each catchBlock In .CatchBlocks
IntroduceUsingStatement\VisualBasicIntroduceUsingStatementCodeRefactoringProvider.vb (1)
26Return tryStatement.CatchBlocks.Count > 0
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
FlowAnalysis\TryLockUsingStatementTests.vb (1)
1642statement = tryBlock.CatchBlocks(0).CatchStatement
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.vb (1)
19689Dim withObj = objectUnderTest.WithTryStatement(objectUnderTest.TryStatement).WithStatements(objectUnderTest.Statements).WithCatchBlocks(objectUnderTest.CatchBlocks).WithFinallyBlock(objectUnderTest.FinallyBlock).WithEndTryStatement(objectUnderTest.EndTryStatement)