3 writes to _currentRegion
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
1335
_currentRegion
= region;
1362
_currentRegion
= _currentRegion.Enclosing;
1745
_currentRegion
= toMerge.Enclosing;
35 references to _currentRegion
Microsoft.CodeAnalysis (35)
Operations\ControlFlowGraphBuilder.cs (35)
77
Debug.Assert(
_currentRegion
!= null);
78
return
_currentRegion
;
145
Debug.Assert(builder.
_currentRegion
== null);
1298
Debug.Assert(
_currentRegion
!= null);
1318
_currentRegion
.ExtendToInclude(block);
1319
_regionMap.Add(block,
_currentRegion
);
1334
_currentRegion
?.Add(region);
1342
Debug.Assert(
_currentRegion
!= null);
1343
if (
_currentRegion
.IsEmpty)
1348
RegionBuilder enclosed =
_currentRegion
;
1362
_currentRegion =
_currentRegion
.Enclosing;
1364
_currentRegion
?.ExtendToInclude(enclosed.LastBlock);
1740
while (
_currentRegion
!= frame.RegionBuilderOpt)
1742
Debug.Assert(
_currentRegion
!= null);
1743
RegionBuilder toMerge =
_currentRegion
;
1751
_currentRegion
.AddCaptureIds(toMerge.CaptureIds);
1757
_currentRegion
.ExtendToInclude(toMerge.LastBlock);
1775
while (
_currentRegion
!= toLeave)
1777
Debug.Assert(
_currentRegion
!.IsStackSpillRegion);
1793
while (
_currentRegion
!= resultCaptureRegion)
1860
if (
_currentRegion
!= currentSpillRegion)
1914
while (
_currentRegion
!= currentSpillRegion)
2745
RegionBuilder? current =
_currentRegion
;
2749
Debug.Assert(current ==
_currentRegion
);
3622
Debug.Assert(
_currentRegion
== locals);
3755
Debug.Assert(
_currentRegion
== tryAndFinallyRegion);
3985
Debug.Assert(
_currentRegion
== usingRegion);
4084
Debug.Assert(
_currentRegion
== resourceRegion);
4133
Debug.Assert(
_currentRegion
== finallyRegion);
4412
Debug.Assert(regionForCollection ==
_currentRegion
);
4440
Debug.Assert(localsRegion ==
_currentRegion
);
4450
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.Try);
4467
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.TryAndFinally);
4473
Debug.Assert(
_currentRegion
== enumeratorCaptureRegion);
5384
Debug.Assert(
_currentRegion
== switchRegion);