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