5 writes to FirstBlock
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (2)
1049
region.
FirstBlock
= newFirst;
1054
enclosing.
FirstBlock
= newFirst;
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (3)
262
FirstBlock
= block;
267
FirstBlock
= Regions.First().FirstBlock;
286
FirstBlock
= null;
35 references to FirstBlock
Microsoft.CodeAnalysis (35)
Operations\ControlFlowGraphBuilder.cs (24)
553
if (subRegion.Kind == ControlFlowRegionKind.LocalLifetime && subRegion.
FirstBlock
== region.
FirstBlock
&& subRegion.LastBlock == region.LastBlock)
574
!subRegion.HasRegions && subRegion.
FirstBlock
== subRegion.LastBlock)
576
Debug.Assert(subRegion.
FirstBlock
!= null);
577
BasicBlockBuilder block = subRegion.
FirstBlock
;
634
int firstBlockToMove = subRegion.
FirstBlock
.Ordinal;
641
for (int i = firstBlockToMove; i < r.
FirstBlock
.Ordinal; i++)
746
if (currentRegion.
FirstBlock
== currentRegion.LastBlock)
748
Debug.Assert(currentRegion.
FirstBlock
== block);
769
Debug.Assert(@try.
FirstBlock
!= null);
770
i = @try.
FirstBlock
.Ordinal - 1; // restart at the first block of removed .try region
1018
if (currentRegion.
FirstBlock
!= block)
1041
Debug.Assert(region.
FirstBlock
.Ordinal >= 0);
1042
Debug.Assert(region.
FirstBlock
.Ordinal <= region.LastBlock.Ordinal);
1043
Debug.Assert(region.
FirstBlock
.Ordinal <= block.Ordinal);
1046
if (region.
FirstBlock
== block)
1052
while (enclosing != null && enclosing.
FirstBlock
== block)
1073
Debug.Assert(region.
FirstBlock
.Ordinal <= region.LastBlock.Ordinal);
3713
Debug.Assert(!filterRegion.
FirstBlock
.HasPredecessors);
3739
if (handlerRegion.
FirstBlock
.HasPredecessors)
3742
handlerRegion.
FirstBlock
.GetPredecessors(predecessors);
3743
Debug.Assert(predecessors.All(p => filterAndHandlerRegion.Regions[0].
FirstBlock
!.Ordinal <= p.Ordinal &&
3751
Debug.Assert(!handlerRegion.
FirstBlock
.HasPredecessors);
3776
Debug.Assert(!finallyRegion.
FirstBlock
.HasPredecessors);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (11)
40
[MemberNotNullWhen(false, nameof(
FirstBlock
), nameof(LastBlock))]
45
Debug.Assert((
FirstBlock
== null) == (LastBlock == null));
47
return
FirstBlock
== null;
204
Debug.Assert(toReplace.
FirstBlock
!.Ordinal <= replaceWith.First().
FirstBlock
!.Ordinal);
247
[MemberNotNull(nameof(
FirstBlock
), nameof(LastBlock))]
256
if (
FirstBlock
== null)
267
FirstBlock = Regions.First().
FirstBlock
;
268
Debug.Assert(
FirstBlock
!= null);
337
var result = new ControlFlowRegion(Kind,
FirstBlock
.Ordinal, LastBlock.Ordinal, subRegions,
352
int firstBlockWithoutRegion =
FirstBlock
.Ordinal;