3 writes to _currentRegion
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
1335
_currentRegion
= region;
1362
_currentRegion
= _currentRegion.Enclosing;
1751
_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);
1746
while (
_currentRegion
!= frame.RegionBuilderOpt)
1748
Debug.Assert(
_currentRegion
!= null);
1749
RegionBuilder toMerge =
_currentRegion
;
1757
_currentRegion
.AddCaptureIds(toMerge.CaptureIds);
1763
_currentRegion
.ExtendToInclude(toMerge.LastBlock);
1781
while (
_currentRegion
!= toLeave)
1783
Debug.Assert(
_currentRegion
!.IsStackSpillRegion);
1799
while (
_currentRegion
!= resultCaptureRegion)
1866
if (
_currentRegion
!= currentSpillRegion)
1920
while (
_currentRegion
!= currentSpillRegion)
2762
RegionBuilder? current =
_currentRegion
;
2766
Debug.Assert(current ==
_currentRegion
);
3639
Debug.Assert(
_currentRegion
== locals);
3772
Debug.Assert(
_currentRegion
== tryAndFinallyRegion);
4005
Debug.Assert(
_currentRegion
== usingRegion);
4104
Debug.Assert(
_currentRegion
== resourceRegion);
4162
Debug.Assert(
_currentRegion
== finallyRegion);
4493
Debug.Assert(regionForCollection ==
_currentRegion
);
4521
Debug.Assert(localsRegion ==
_currentRegion
);
4531
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.Try);
4548
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.TryAndFinally);
4554
Debug.Assert(
_currentRegion
== enumeratorCaptureRegion);
5481
Debug.Assert(
_currentRegion
== switchRegion);