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)
77Debug.Assert(_currentRegion != null); 78return _currentRegion; 145Debug.Assert(builder._currentRegion == null); 1298Debug.Assert(_currentRegion != null); 1318_currentRegion.ExtendToInclude(block); 1319_regionMap.Add(block, _currentRegion); 1334_currentRegion?.Add(region); 1342Debug.Assert(_currentRegion != null); 1343if (_currentRegion.IsEmpty) 1348RegionBuilder enclosed = _currentRegion; 1362_currentRegion = _currentRegion.Enclosing; 1364_currentRegion?.ExtendToInclude(enclosed.LastBlock); 1746while (_currentRegion != frame.RegionBuilderOpt) 1748Debug.Assert(_currentRegion != null); 1749RegionBuilder toMerge = _currentRegion; 1757_currentRegion.AddCaptureIds(toMerge.CaptureIds); 1763_currentRegion.ExtendToInclude(toMerge.LastBlock); 1781while (_currentRegion != toLeave) 1783Debug.Assert(_currentRegion!.IsStackSpillRegion); 1799while (_currentRegion != resultCaptureRegion) 1866if (_currentRegion != currentSpillRegion) 1920while (_currentRegion != currentSpillRegion) 2762RegionBuilder? current = _currentRegion; 2766Debug.Assert(current == _currentRegion); 3639Debug.Assert(_currentRegion == locals); 3772Debug.Assert(_currentRegion == tryAndFinallyRegion); 4005Debug.Assert(_currentRegion == usingRegion); 4104Debug.Assert(_currentRegion == resourceRegion); 4162Debug.Assert(_currentRegion == finallyRegion); 4493Debug.Assert(regionForCollection == _currentRegion); 4521Debug.Assert(localsRegion == _currentRegion); 4531Debug.Assert(_currentRegion.Kind == ControlFlowRegionKind.Try); 4548Debug.Assert(_currentRegion.Kind == ControlFlowRegionKind.TryAndFinally); 4554Debug.Assert(_currentRegion == enumeratorCaptureRegion); 5481Debug.Assert(_currentRegion == switchRegion);