1 write to BranchValue
Microsoft.CodeAnalysis (1)
Operations\BasicBlock.cs (1)
39
BranchValue
= branchValue;
34 references to BranchValue
ILLink.RoslynAnalyzer (4)
DataFlow\BasicBlockExtensions.cs (2)
20
if (basicBlock.
BranchValue
!= null) {
21
foreach (var operation in basicBlock.
BranchValue
.DescendantsAndSelf ()) {
DataFlow\LocalDataFlowVisitor.cs (1)
86
IOperation? branchValueOperation = block.Block.
BranchValue
;
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
117
} else if (block.Block.
BranchValue
is IOperation branchOp) {
Microsoft.CodeAnalysis (6)
Operations\BasicBlock.cs (2)
13
/// Optional <see cref="
BranchValue
"/>, if non-null, is evaluated after the <see cref="Operations"/>.
89
/// on the <see cref="ConditionKind"/> and <see cref="
BranchValue
"/>.
Operations\ControlFlowConditionKind.cs (4)
20
/// with a non-null <see cref="BasicBlock.
BranchValue
"/> and <see cref="BasicBlock.ConditionalSuccessor"/>.
21
/// If <see cref="BasicBlock.
BranchValue
"/> evaluates to <code>false</code>,
28
/// with a non-null <see cref="BasicBlock.
BranchValue
"/> and <see cref="BasicBlock.ConditionalSuccessor"/>.
29
/// If <see cref="BasicBlock.
BranchValue
"/> evaluates to <code>true</code>,
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\BasicBlockExtensions.cs (2)
22
if (basicBlock.
BranchValue
!= null)
24
foreach (var operation in basicBlock.
BranchValue
.DescendantsAndSelf())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
149
if (current.
BranchValue
.ConstantValue.HasValue && current.
BranchValue
.ConstantValue.Value is bool constant)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
155
var operations = SpecializedCollections.SingletonEnumerable(basicBlock.
BranchValue
);
Microsoft.CodeAnalysis.Test.Utilities (14)
Compilation\ControlFlowGraphVerifier.cs (12)
139
Assert.Null(block.
BranchValue
);
160
Assert.Null(block.
BranchValue
);
262
IOperation value = block.
BranchValue
;
280
Assert.Null(block.
BranchValue
);
301
IOperation value = block.ConditionKind == ControlFlowConditionKind.None ? block.
BranchValue
: null;
424
if (block.
BranchValue
!= null)
426
assertCaptureReferences(currentState, block.
BranchValue
, block, block.Operations.Length, longLivedIds, referencedIds, finalGraph);
488
lastOperation = blocks[i].
BranchValue
?? blocks[i].Operations.LastOrDefault();
1332
if (block.
BranchValue
!= null)
1334
foreach (IFlowCaptureReferenceOperation reference in block.
BranchValue
.DescendantsAndSelf().OfType<IFlowCaptureReferenceOperation>())
1656
if (block.
BranchValue
!= null)
1658
recordReferences(block.
BranchValue
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
149
if (current.
BranchValue
.ConstantValue.HasValue && current.
BranchValue
.ConstantValue.Value is bool constant)
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\BasicBlockExtensions.cs (2)
22
if (basicBlock.
BranchValue
!= null)
24
foreach (var operation in basicBlock.
BranchValue
.DescendantsAndSelf())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
149
if (current.
BranchValue
.ConstantValue.HasValue && current.
BranchValue
.ConstantValue.Value is bool constant)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
155
var operations = SpecializedCollections.SingletonEnumerable(basicBlock.
BranchValue
);