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