6 writes to Ordinal
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (2)
38
Ordinal
= -1;
307
Ordinal
= -1;
Operations\ControlFlowGraphBuilder.cs (4)
691
block.
Ordinal
= i;
1002
blocks[0].
Ordinal
= 0;
1003
blocks[count].
Ordinal
= count;
1315
block.
Ordinal
= _blocks.Count;
56 references to Ordinal
Microsoft.CodeAnalysis (56)
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (3)
86
Ordinal
,
236
BasicBlock block = blocks[
Ordinal
];
291
BasicBlock predecessor = blocks[predecessorBlockBuilder.
Ordinal
];
Operations\ControlFlowGraphBuilder.cs (41)
188
builder[blockBuilder.
Ordinal
].SetSuccessors(successor, conditionalSuccessor);
194
builder[blockBuilder.
Ordinal
].SetPredecessors(blockBuilder.ConvertPredecessorsToBranches(builder));
216
source: builder[source.
Ordinal
],
217
destination: branch.Destination != null ? builder[branch.Destination.
Ordinal
] : null,
258
if (current.
Ordinal
< firstBlockOrdinal || current.
Ordinal
> lastBlockOrdinal)
265
if (visited[current.
Ordinal
])
270
visited[current.
Ordinal
] = true;
295
if (current.
Ordinal
== lastBlockOrdinal && branch.Kind != ControlFlowBranchSemantics.Throw && branch.Kind != ControlFlowBranchSemantics.Rethrow)
346
int destinationOrdinal = destination.
Ordinal
;
478
Debug.Assert(entryBlock.
Ordinal
== @catch.NestedRegions[0].FirstBlockOrdinal);
634
int firstBlockToMove = subRegion.FirstBlock.
Ordinal
;
641
for (int i = firstBlockToMove; i < r.FirstBlock.
Ordinal
; i++)
647
firstBlockToMove = r.LastBlock.
Ordinal
+ 1;
657
for (int i = firstBlockToMove; i <= subRegion.LastBlock.
Ordinal
; i++)
699
predecessor.
Ordinal
< block.
Ordinal
&&
770
i = @try.FirstBlock.
Ordinal
- 1; // restart at the first block of removed .try region
810
if (predecessor.
Ordinal
!= i - 1 ||
850
Debug.Assert(implicitEntryRegion.LastBlock!.
Ordinal
>= next.Destination.
Ordinal
);
1041
Debug.Assert(region.FirstBlock.
Ordinal
>= 0);
1042
Debug.Assert(region.FirstBlock.
Ordinal
<= region.LastBlock.
Ordinal
);
1043
Debug.Assert(region.FirstBlock.
Ordinal
<= block.
Ordinal
);
1044
Debug.Assert(block.
Ordinal
<= region.LastBlock.
Ordinal
);
1048
BasicBlockBuilder newFirst = blocks[block.
Ordinal
+ 1];
1061
BasicBlockBuilder newLast = blocks[block.
Ordinal
- 1];
1073
Debug.Assert(region.FirstBlock.
Ordinal
<= region.LastBlock.
Ordinal
);
1077
Debug.Assert(blocks[block.
Ordinal
] == block);
1078
blocks.RemoveAt(block.
Ordinal
);
1196
if (labeled.
Ordinal
== -1)
1310
if (block.
Ordinal
!= -1)
3743
Debug.Assert(predecessors.All(p => filterAndHandlerRegion.Regions[0].FirstBlock!.
Ordinal
<= p.
Ordinal
&&
3744
filterAndHandlerRegion.Regions[0].LastBlock!.
Ordinal
>= p.
Ordinal
));
3867
if (labeled.
Ordinal
!= -1)
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (12)
204
Debug.Assert(toReplace.FirstBlock!.
Ordinal
<= replaceWith.First().FirstBlock!.
Ordinal
);
205
Debug.Assert(toReplace.LastBlock!.
Ordinal
>= replaceWith.Last().LastBlock!.
Ordinal
);
273
Debug.Assert(LastBlock!.
Ordinal
< block.
Ordinal
);
274
Debug.Assert(!HasRegions || Regions.Last().LastBlock!.
Ordinal
<= block.
Ordinal
);
337
var result = new ControlFlowRegion(Kind, FirstBlock.
Ordinal
, LastBlock.
Ordinal
, subRegions,
352
int firstBlockWithoutRegion = FirstBlock.
Ordinal
;
364
for (int i = firstBlockWithoutRegion; i <= LastBlock.
Ordinal
; i++)