1 write to Branch
Microsoft.CodeAnalysis.VisualBasic (1)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
108
Me.
Branch
= branch
27 references to Branch
Microsoft.CodeAnalysis.VisualBasic (27)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (5)
92
Select Case
Branch
.Kind
94
Return CType(
Branch
, BoundConditionalGoto).Label
96
Return CType(
Branch
, BoundGotoStatement).Label
98
Return CType(
Branch
, BoundExitStatement).Label
100
Return CType(
Branch
, BoundContinueStatement).Label
Analysis\FlowAnalysis\AbstractFlowPass.vb (8)
390
Select Case pending.
Branch
.Kind
392
Dim exitStmt = TryCast(pending.
Branch
, BoundExitStatement)
416
Select Case pending.
Branch
.Kind
420
Dim continueStmt = TryCast(pending.
Branch
, BoundContinueStatement)
472
NoteBranch(pending, pending.
Branch
, target)
493
Dim label As LabelSymbol = GetBranchTargetLabel(pending.
Branch
, False)
595
Dim branchStatement As BoundStatement = branch.
Branch
2033
Dim unionBranchWithFinallyState As Boolean = pend.
Branch
.Kind <> BoundKind.YieldStatement
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (3)
75
If IsInsideRegion(branch.
Branch
.Syntax.Span) AndAlso Not _labelsInside.Contains(branch.Label) Then
92
If IsInside AndAlso pending.
Branch
IsNot Nothing AndAlso Not IsInsideRegion(pending.
Branch
.Syntax.Span) Then
Analysis\FlowAnalysis\ControlFlowPass.vb (4)
140
if branch.
Branch
.Kind = BoundKind.YieldStatement
141
Me.diagnostics.Add(ERRID.ERR_BadYieldInTryHandler, branch.
Branch
.Syntax.GetLocation)
158
Dim syntax = branch.
Branch
.Syntax
162
If branch.
Branch
.Kind = BoundKind.YieldStatement
Analysis\FlowAnalysis\ExitPointsWalker.vb (7)
102
If IsInsideRegion(pending.
Branch
.Syntax.Span) Then
103
Select Case pending.
Branch
.Kind
105
If _labelsInside.Contains((TryCast((pending.
Branch
), BoundGotoStatement)).Label) Then
109
If _labelsInside.Contains((TryCast((pending.
Branch
), BoundExitStatement)).Label) Then
113
If _labelsInside.Contains((TryCast((pending.
Branch
), BoundContinueStatement)).Label) Then
120
Throw ExceptionUtilities.UnexpectedValue(pending.
Branch
.Kind) ' there are no other branch statements
122
_branchesOutOf.Add(DirectCast(pending.
Branch
.Syntax, StatementSyntax))