5 writes to BranchValue
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (5)
930
predecessor.
BranchValue
= value;
991
predecessor.
BranchValue
= block.BranchValue;
2982
previous.
BranchValue
= condition;
3854
current.
BranchValue
= Operation.SetParentOperation(returnedValue, null);
3953
current.
BranchValue
= Operation.SetParentOperation(exception, null);
19 references to BranchValue
Microsoft.CodeAnalysis (19)
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (3)
84
BranchValue
,
110
[MemberNotNullWhen(true, nameof(
BranchValue
))]
116
Debug.Assert(!result ||
BranchValue
!= null);
Operations\ControlFlowGraphBuilder.cs (15)
284
if (current.
BranchValue
.GetConstantValue() is { IsBoolean: true, BooleanValue: bool constant })
587
if (!block.HasStatements && block.
BranchValue
== null)
712
Debug.Assert(predecessor.
BranchValue
== null);
726
Debug.Assert((block.
BranchValue
!= null && !block.HasCondition) == (next.Kind == ControlFlowBranchSemantics.Return || next.Kind == ControlFlowBranchSemantics.Throw));
805
Debug.Assert(block.HasCondition || block.
BranchValue
== null);
844
IOperation? value = block.
BranchValue
;
879
predecessor.
BranchValue
!= null ||
929
Debug.Assert(predecessor.
BranchValue
== null);
985
Debug.Assert(predecessor.
BranchValue
== null);
991
predecessor.BranchValue = block.
BranchValue
;
1379
Debug.Assert(prevBlock.HasCondition || prevBlock.
BranchValue
== null);
2976
Debug.Assert(previous.
BranchValue
== null);
3852
Debug.Assert(current.
BranchValue
== null);
3949
Debug.Assert(current.
BranchValue
== null);
5716
Debug.Assert(current.
BranchValue
== null);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
393
AnonymousFunctionsMapBuilder.Instance.Visit(block.
BranchValue
, argument);