3 writes to _currentRegion
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
1344
_currentRegion
= region;
1371
_currentRegion
= _currentRegion.Enclosing;
1760
_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);
1307
Debug.Assert(
_currentRegion
!= null);
1327
_currentRegion
.ExtendToInclude(block);
1328
_regionMap.Add(block,
_currentRegion
);
1343
_currentRegion
?.Add(region);
1351
Debug.Assert(
_currentRegion
!= null);
1352
if (
_currentRegion
.IsEmpty)
1357
RegionBuilder enclosed =
_currentRegion
;
1371
_currentRegion =
_currentRegion
.Enclosing;
1373
_currentRegion
?.ExtendToInclude(enclosed.LastBlock);
1755
while (
_currentRegion
!= frame.RegionBuilderOpt)
1757
Debug.Assert(
_currentRegion
!= null);
1758
RegionBuilder toMerge =
_currentRegion
;
1766
_currentRegion
.AddCaptureIds(toMerge.CaptureIds);
1772
_currentRegion
.ExtendToInclude(toMerge.LastBlock);
1790
while (
_currentRegion
!= toLeave)
1792
Debug.Assert(
_currentRegion
!.IsStackSpillRegion);
1808
while (
_currentRegion
!= resultCaptureRegion)
1876
if (
_currentRegion
!= currentSpillRegion)
1930
while (
_currentRegion
!= currentSpillRegion)
2772
RegionBuilder? current =
_currentRegion
;
2776
Debug.Assert(current ==
_currentRegion
);
3649
Debug.Assert(
_currentRegion
== locals);
3782
Debug.Assert(
_currentRegion
== tryAndFinallyRegion);
4016
Debug.Assert(
_currentRegion
== usingRegion);
4115
Debug.Assert(
_currentRegion
== resourceRegion);
4173
Debug.Assert(
_currentRegion
== finallyRegion);
4504
Debug.Assert(regionForCollection ==
_currentRegion
);
4532
Debug.Assert(localsRegion ==
_currentRegion
);
4542
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.Try);
4559
Debug.Assert(
_currentRegion
.Kind == ControlFlowRegionKind.TryAndFinally);
4565
Debug.Assert(
_currentRegion
== enumeratorCaptureRegion);
5492
Debug.Assert(
_currentRegion
== switchRegion);