3 writes to _currentRegion
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
1335_currentRegion = region; 1362_currentRegion = _currentRegion.Enclosing; 1745_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); 1740while (_currentRegion != frame.RegionBuilderOpt) 1742Debug.Assert(_currentRegion != null); 1743RegionBuilder toMerge = _currentRegion; 1751_currentRegion.AddCaptureIds(toMerge.CaptureIds); 1757_currentRegion.ExtendToInclude(toMerge.LastBlock); 1775while (_currentRegion != toLeave) 1777Debug.Assert(_currentRegion!.IsStackSpillRegion); 1793while (_currentRegion != resultCaptureRegion) 1860if (_currentRegion != currentSpillRegion) 1914while (_currentRegion != currentSpillRegion) 2745RegionBuilder? current = _currentRegion; 2749Debug.Assert(current == _currentRegion); 3622Debug.Assert(_currentRegion == locals); 3755Debug.Assert(_currentRegion == tryAndFinallyRegion); 3985Debug.Assert(_currentRegion == usingRegion); 4084Debug.Assert(_currentRegion == resourceRegion); 4133Debug.Assert(_currentRegion == finallyRegion); 4412Debug.Assert(regionForCollection == _currentRegion); 4440Debug.Assert(localsRegion == _currentRegion); 4450Debug.Assert(_currentRegion.Kind == ControlFlowRegionKind.Try); 4467Debug.Assert(_currentRegion.Kind == ControlFlowRegionKind.TryAndFinally); 4473Debug.Assert(_currentRegion == enumeratorCaptureRegion); 5384Debug.Assert(_currentRegion == switchRegion);