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