3 writes to _currentRegion
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
1336
_currentRegion
= region;
1363
_currentRegion
= _currentRegion.Enclosing;
1752
_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);
1299
Debug.Assert(
_currentRegion
!= null);
1319
_currentRegion
.ExtendToInclude(block);
1320
_regionMap.Add(block,
_currentRegion
);
1335
_currentRegion
?.Add(region);
1343
Debug.Assert(
_currentRegion
!= null);
1344
if (
_currentRegion
.IsEmpty)
1349
RegionBuilder enclosed =
_currentRegion
;
1363
_currentRegion =
_currentRegion
.Enclosing;
1365
_currentRegion
?.ExtendToInclude(enclosed.LastBlock);
1747
while (
_currentRegion
!= frame.RegionBuilderOpt)
1749
Debug.Assert(
_currentRegion
!= null);
1750
RegionBuilder toMerge =
_currentRegion
;
1758
_currentRegion
.AddCaptureIds(toMerge.CaptureIds);
1764
_currentRegion
.ExtendToInclude(toMerge.LastBlock);
1782
while (
_currentRegion
!= toLeave)
1784
Debug.Assert(
_currentRegion
!.IsStackSpillRegion);
1800
while (
_currentRegion
!= resultCaptureRegion)
1868
if (
_currentRegion
!= currentSpillRegion)
1922
while (
_currentRegion
!= currentSpillRegion)
2764
RegionBuilder? current =
_currentRegion
;
2768
Debug.Assert(current ==
_currentRegion
);
3641
Debug.Assert(
_currentRegion
== locals);
3774
Debug.Assert(
_currentRegion
== tryAndFinallyRegion);
4007
Debug.Assert(
_currentRegion
== usingRegion);
4106
Debug.Assert(
_currentRegion
== resourceRegion);
4164
Debug.Assert(
_currentRegion
== finallyRegion);
4495
Debug.Assert(regionForCollection ==
_currentRegion
);
4523
Debug.Assert(localsRegion ==
_currentRegion
);
4533
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.Try);
4550
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.TryAndFinally);
4556
Debug.Assert(
_currentRegion
== enumeratorCaptureRegion);
5483
Debug.Assert(
_currentRegion
== switchRegion);