1 write to Branch
Microsoft.CodeAnalysis.VisualBasic (1)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
108
Me.
Branch
= branch
26 references to Branch
Microsoft.CodeAnalysis.VisualBasic (26)
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 (7)
399
Select Case pending.
Branch
.Kind
401
Dim exitStmt = TryCast(pending.
Branch
, BoundExitStatement)
425
Select Case pending.
Branch
.Kind
429
Dim continueStmt = TryCast(pending.
Branch
, BoundContinueStatement)
481
NoteBranch(pending, pending.
Branch
, target)
502
Dim label As LabelSymbol = GetBranchTargetLabel(pending.
Branch
, False)
604
Dim branchStatement As BoundStatement = branch.
Branch
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))