5 writes to LastBlock
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (2)
1062
region.
LastBlock
= newLast;
1067
enclosing.
LastBlock
= newLast;
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (3)
263
LastBlock
= block;
277
LastBlock
= block;
287
LastBlock
= null;
33 references to LastBlock
Microsoft.CodeAnalysis (33)
Operations\ControlFlowGraphBuilder.cs (21)
553
if (subRegion.Kind == ControlFlowRegionKind.LocalLifetime && subRegion.FirstBlock == region.FirstBlock && subRegion.
LastBlock
== region.
LastBlock
)
574
!subRegion.HasRegions && subRegion.FirstBlock == subRegion.
LastBlock
)
647
firstBlockToMove = r.
LastBlock
.Ordinal + 1;
657
for (int i = firstBlockToMove; i <= subRegion.
LastBlock
.Ordinal; i++)
732
Debug.Assert(block == currentRegion.
LastBlock
);
746
if (currentRegion.FirstBlock == currentRegion.
LastBlock
)
850
Debug.Assert(implicitEntryRegion.
LastBlock
!.Ordinal >= next.Destination.Ordinal);
1042
Debug.Assert(region.FirstBlock.Ordinal <= region.
LastBlock
.Ordinal);
1044
Debug.Assert(block.Ordinal <= region.
LastBlock
.Ordinal);
1059
else if (region.
LastBlock
== block)
1065
while (enclosing != null && enclosing.
LastBlock
== block)
1073
Debug.Assert(region.FirstBlock.Ordinal <= region.
LastBlock
.Ordinal);
1363
Debug.Assert(enclosed.
LastBlock
!= null);
1364
_currentRegion?.ExtendToInclude(enclosed.
LastBlock
);
1763
_currentRegion.ExtendToInclude(toMerge.
LastBlock
);
3712
Debug.Assert(filterRegion.
LastBlock
.FallThrough.Destination == null);
3738
Debug.Assert(filterAndHandlerRegion.Regions![0].
LastBlock
!.FallThrough.Destination == null);
3744
filterAndHandlerRegion.Regions[0].
LastBlock
!.Ordinal >= p.Ordinal));
3775
Debug.Assert(finallyRegion.
LastBlock
.FallThrough.Destination == null);
3780
Debug.Assert(tryAndFinallyRegion?.Regions![1].
LastBlock
!.FallThrough.Destination == null);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (12)
40
[MemberNotNullWhen(false, nameof(FirstBlock), nameof(
LastBlock
))]
45
Debug.Assert((FirstBlock == null) == (
LastBlock
== null));
205
Debug.Assert(toReplace.
LastBlock
!.Ordinal >= replaceWith.Last().
LastBlock
!.Ordinal);
247
[MemberNotNull(nameof(FirstBlock), nameof(
LastBlock
))]
254
Regions!.Last().
LastBlock
== block);
258
Debug.Assert(
LastBlock
== null);
269
Debug.Assert(Regions.Count == 1 && Regions.First().
LastBlock
== block);
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,
364
for (int i = firstBlockWithoutRegion; i <=
LastBlock
.Ordinal; i++)