1 write to Branch
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\AbstractFlowPass.cs (1)
405
this.
Branch
= branch;
34 references to Branch
Microsoft.CodeAnalysis.CSharp (34)
FlowAnalysis\AbstractFlowPass.cs (3)
797
NoteBranch(pending, pending.
Branch
, target);
1859
if (pend.
Branch
== null)
1864
if (pend.
Branch
.Kind != BoundKind.YieldReturnStatement)
FlowAnalysis\AbstractFlowPass_LocalFunctions.cs (1)
123
BoundNode branch = pending.
Branch
;
FlowAnalysis\AlwaysAssignedWalker.cs (4)
84
if (IsInside && pending.
Branch
!= null && !RegionContains(pending.
Branch
.Syntax.Span))
136
if (branch.
Branch
!= null && RegionContains(branch.
Branch
.Syntax.Span) && !_labelsInside.Contains(branch.Label))
FlowAnalysis\ControlFlowPass.cs (8)
209
if (pending.
Branch
is null)
214
switch (pending.
Branch
.Kind)
218
var leave = pending.
Branch
;
220
Diagnostics.Add(ErrorCode.ERR_LabelNotFound, loc, ((BoundGotoStatement)pending.
Branch
).Label.Name);
226
var leave = pending.
Branch
;
302
if (branch.
Branch
== null) continue; // a tracked exception
303
var location = new SourceLocation(branch.
Branch
.Syntax.GetFirstToken());
304
switch (branch.
Branch
.Kind)
FlowAnalysis\DefiniteAssignment.cs (5)
386
LeaveParameters(methodParameters, returnBranch.
Branch
.Syntax, null);
387
if ((object)methodThisParameter != null) LeaveParameter(methodThisParameter, returnBranch.
Branch
.Syntax, null);
421
var pendingBranch = pending.
Branch
;
2449
if (pending.
Branch
.Kind == BoundKind.ReturnStatement)
2452
LeaveParameters(node.Symbol.Parameters, pending.
Branch
.Syntax, null);
FlowAnalysis\ExitPointsWalker.cs (9)
124
if (pending.
Branch
== null || !RegionContains(pending.
Branch
.Syntax.Span)) continue;
125
switch (pending.
Branch
.Kind)
128
if (_labelsInside.Contains(((BoundGotoStatement)pending.
Branch
).Label)) continue;
131
if (_labelsInside.Contains(((BoundBreakStatement)pending.
Branch
).Label)) continue;
134
if (_labelsInside.Contains(((BoundContinueStatement)pending.
Branch
).Label)) continue;
143
case BoundKind.ForEachStatement when ((BoundForEachStatement)pending.
Branch
).AwaitOpt != null:
148
throw ExceptionUtilities.UnexpectedValue(pending.
Branch
.Kind);
150
_branchesOutOf.Add((StatementSyntax)pending.
Branch
.Syntax);
FlowAnalysis\NullableWalker.cs (4)
609
enforceMemberNotNull(syntaxOpt: pendingReturn.
Branch
.Syntax, pendingReturn.State);
611
if (pendingReturn.
Branch
is BoundReturnStatement returnStatement)
3300
enforceMemberNotNull(syntax: pendingReturn.
Branch
?.Syntax, pendingReturn.State);
3303
if (pendingReturn.
Branch
is BoundReturnStatement returnStatement)