1 write to Ordinal
Microsoft.CodeAnalysis (1)
Operations\BasicBlock.cs (1)
41
Ordinal
= ordinal;
82 references to Ordinal
ILLink.RoslynAnalyzer (5)
DataFlow\ControlFlowGraphProxy.cs (1)
30
return base.ToString () + $"[{Block.
Ordinal
}]";
TrimAnalysis\TrimDataFlowAnalysis.cs (4)
114
TraceWrite ("block " + block.Block.
Ordinal
+ ": ");
125
TraceWrite (predProxy.Block.
Ordinal
+ " ");
185
var source = branch.Source.Block.
Ordinal
;
186
var target = branch.Destination?.Block.
Ordinal
;
Microsoft.CodeAnalysis (6)
Operations\ControlFlowBranch.cs (2)
72
result = CollectRegions(Destination.
Ordinal
, Source.EnclosingRegion).ToImmutableAndFree();
115
ArrayBuilder<ControlFlowRegion> builder = CollectRegions(Source.
Ordinal
, Destination.EnclosingRegion);
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (2)
271
int result = x.Source.
Ordinal
- y.Source.
Ordinal
;
Operations\ControlFlowRegion.cs (2)
34
/// Ordinal (<see cref="BasicBlock.
Ordinal
"/>) of the first <see cref="BasicBlock"/> within the region.
39
/// Ordinal (<see cref="BasicBlock.
Ordinal
"/>) of the last <see cref="BasicBlock"/> within the region.
Microsoft.CodeAnalysis.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (13)
83
toVisit.Add(firstBlock.
Ordinal
);
106
if (unreachableBlock.
Ordinal
>= firstBlockOrdinal && unreachableBlock.
Ordinal
<= lastBlockOrdinal)
128
if (current.
Ordinal
< firstBlockOrdinal || current.
Ordinal
> lastBlockOrdinal)
130
outOfRangeBlocksToVisit.Add(current.
Ordinal
);
134
if (current.
Ordinal
== current.EnclosingRegion.FirstBlockOrdinal)
177
current.
Ordinal
== lastBlockOrdinal)
185
if (current.
Ordinal
== lastBlockOrdinal)
229
if (StepThroughFinally(current.EnclosingRegion, branch.Destination.
Ordinal
, ref currentAnalsisData))
242
toVisit.Add(branch.Destination.
Ordinal
);
391
Debug.Assert(entryBlock.
Ordinal
== @catch.NestedRegions[0].FirstBlockOrdinal);
393
toVisit.Add(entryBlock.
Ordinal
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (3)
355
basicBlock.EnclosingRegion.FirstBlockOrdinal != basicBlock.
Ordinal
)
362
while (outermostEnclosingRegionStartingBlock.EnclosingRegion?.FirstBlockOrdinal == basicBlock.
Ordinal
)
403
foreach (var (symbol, write) in GetOrCreateSymbolWritesInBlockRange(containingTryCatchFinallyRegion.FirstBlockOrdinal, basicBlock.
Ordinal
- 1, cancellationToken))
Microsoft.CodeAnalysis.Test.Utilities (39)
Compilation\ControlFlowGraphVerifier.cs (26)
126
Assert.Equal(i, block.
Ordinal
);
173
enterRegions(block.EnclosingRegion, block.
Ordinal
);
195
Assert.True(previousPredecessorOrdinal < predecessor.
Ordinal
);
196
previousPredecessorOrdinal = predecessor.
Ordinal
;
197
Assert.Same(blocks[predecessor.
Ordinal
], predecessor);
251
Assert.Same(blocks[conditionalBranch.Destination.
Ordinal
], conditionalBranch.Destination);
290
Assert.Same(blocks[nextBranch.Destination.
Ordinal
], nextBranch.Destination);
296
Assert.Equal(block.EnclosingRegion.LastBlockOrdinal, block.
Ordinal
);
318
if (currentRegion.LastBlockOrdinal == block.
Ordinal
&& i != blocks.Length - 1)
320
leaveRegions(block.EnclosingRegion, block.
Ordinal
);
395
if (predecessor.Source.
Ordinal
>= i)
399
if (region.FirstBlockOrdinal != block.
Ordinal
)
464
while (region.LastBlockOrdinal == block.
Ordinal
)
486
for (int i = block.
Ordinal
; i > 0 && lastOperation == null; i--)
517
if (region.LastBlockOrdinal != block.
Ordinal
&& referencedIds.Contains(id))
522
IFlowCaptureReferenceOperation[] referencesAfter = getFlowCaptureReferenceOperationsInRegion(region, block.
Ordinal
+ 1).Where(r => r.Id.Equals(id)).ToArray();
541
foreach (IFlowCaptureOperation candidate in getFlowCaptureOperationsFromBlocksInRegion(region, block.
Ordinal
))
568
foreach (IFlowCaptureOperation candidate in getFlowCaptureOperationsFromBlocksInRegion(region, block.
Ordinal
))
602
foreach (IFlowCaptureOperation candidate in getFlowCaptureOperationsFromBlocksInRegion(region, block.
Ordinal
))
645
foreach (IFlowCaptureOperation candidate in getFlowCaptureOperationsFromBlocksInRegion(region, block.
Ordinal
))
688
foreach (IFlowCaptureOperation candidate in getFlowCaptureOperationsFromBlocksInRegion(region, block.
Ordinal
))
717
if (branch.Destination.
Ordinal
> branch.Source.
Ordinal
)
754
PooledHashSet<CaptureId> entryState = entryStates[block.
Ordinal
];
759
entryStates[block.
Ordinal
] = entryState;
1771
return $"B{block.
Ordinal
}{idSuffix}";
Compilation\FlowAnalysis\BasicBlockReachabilityDataFlowAnalyzer.cs (2)
63
_visited[basicBlock.
Ordinal
] = isReachable;
66
public override bool GetCurrentAnalysisData(BasicBlock basicBlock) => _visited[basicBlock.
Ordinal
];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (11)
83
toVisit.Add(firstBlock.
Ordinal
);
128
if (current.
Ordinal
< firstBlockOrdinal || current.
Ordinal
> lastBlockOrdinal)
130
outOfRangeBlocksToVisit.Add(current.
Ordinal
);
134
if (current.
Ordinal
== current.EnclosingRegion.FirstBlockOrdinal)
177
current.
Ordinal
== lastBlockOrdinal)
185
if (current.
Ordinal
== lastBlockOrdinal)
229
if (StepThroughFinally(current.EnclosingRegion, branch.Destination.
Ordinal
, ref currentAnalsisData))
242
toVisit.Add(branch.Destination.
Ordinal
);
391
Debug.Assert(entryBlock.
Ordinal
== @catch.NestedRegions[0].FirstBlockOrdinal);
393
toVisit.Add(entryBlock.
Ordinal
);
Microsoft.CodeAnalysis.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (13)
83
toVisit.Add(firstBlock.
Ordinal
);
106
if (unreachableBlock.
Ordinal
>= firstBlockOrdinal && unreachableBlock.
Ordinal
<= lastBlockOrdinal)
128
if (current.
Ordinal
< firstBlockOrdinal || current.
Ordinal
> lastBlockOrdinal)
130
outOfRangeBlocksToVisit.Add(current.
Ordinal
);
134
if (current.
Ordinal
== current.EnclosingRegion.FirstBlockOrdinal)
177
current.
Ordinal
== lastBlockOrdinal)
185
if (current.
Ordinal
== lastBlockOrdinal)
229
if (StepThroughFinally(current.EnclosingRegion, branch.Destination.
Ordinal
, ref currentAnalsisData))
242
toVisit.Add(branch.Destination.
Ordinal
);
391
Debug.Assert(entryBlock.
Ordinal
== @catch.NestedRegions[0].FirstBlockOrdinal);
393
toVisit.Add(entryBlock.
Ordinal
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (3)
355
basicBlock.EnclosingRegion.FirstBlockOrdinal != basicBlock.
Ordinal
)
362
while (outermostEnclosingRegionStartingBlock.EnclosingRegion?.FirstBlockOrdinal == basicBlock.
Ordinal
)
403
foreach (var (symbol, write) in GetOrCreateSymbolWritesInBlockRange(containingTryCatchFinallyRegion.FirstBlockOrdinal, basicBlock.
Ordinal
- 1, cancellationToken))