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