5 writes to BranchValue
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (5)
922
predecessor.
BranchValue
= value;
983
predecessor.
BranchValue
= block.BranchValue;
2972
previous.
BranchValue
= condition;
3844
current.
BranchValue
= Operation.SetParentOperation(returnedValue, null);
3943
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)
276
if (current.
BranchValue
.GetConstantValue() is { IsBoolean: true, BooleanValue: bool constant })
579
if (!block.HasStatements && block.
BranchValue
== null)
704
Debug.Assert(predecessor.
BranchValue
== null);
718
Debug.Assert((block.
BranchValue
!= null && !block.HasCondition) == (next.Kind == ControlFlowBranchSemantics.Return || next.Kind == ControlFlowBranchSemantics.Throw));
797
Debug.Assert(block.HasCondition || block.
BranchValue
== null);
836
IOperation? value = block.
BranchValue
;
871
predecessor.
BranchValue
!= null ||
921
Debug.Assert(predecessor.
BranchValue
== null);
977
Debug.Assert(predecessor.
BranchValue
== null);
983
predecessor.BranchValue = block.
BranchValue
;
1370
Debug.Assert(prevBlock.HasCondition || prevBlock.
BranchValue
== null);
2966
Debug.Assert(previous.
BranchValue
== null);
3842
Debug.Assert(current.
BranchValue
== null);
3939
Debug.Assert(current.
BranchValue
== null);
5705
Debug.Assert(current.
BranchValue
== null);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
393
AnonymousFunctionsMapBuilder.Instance.Visit(block.
BranchValue
, argument);