1 write to NestedRegions
Microsoft.CodeAnalysis (1)
Operations\ControlFlowRegion.cs (1)
81NestedRegions = nestedRegions.NullToEmpty();
74 references to NestedRegions
ILLink.RoslynAnalyzer (3)
DataFlow\ControlFlowGraphProxy.cs (3)
167 foreach (var nested in enclosingRegion.NestedRegions) { 190 foreach (var nested in tryRegion.Region.EnclosingRegion!.NestedRegions) { 198 foreach (var filter in nested.NestedRegions) {
Microsoft.CodeAnalysis (29)
Operations\ControlFlowBranch.cs (1)
149builder.Add(leavingRegions[i + 1].NestedRegions.Last());
Operations\ControlFlowGraphBuilder.cs (13)
354Debug.Assert(enclosing.NestedRegions[0] == region); 355Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 356if (!stepThroughSingleFinally(enclosing.NestedRegions[1])) 413Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 414Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 415if (!stepThroughSingleFinally(enclosing.NestedRegions[1])) 423Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 439int index = tryAndCatch.NestedRegions.IndexOf(enclosing, startIndex: 1); 463Debug.Assert(startAt <= tryAndCatch.NestedRegions.Length); 465for (int i = startAt; i < tryAndCatch.NestedRegions.Length; i++) 467ControlFlowRegion @catch = tryAndCatch.NestedRegions[i]; 477Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter); 478Debug.Assert(entryBlock.Ordinal == @catch.NestedRegions[0].FirstBlockOrdinal);
Operations\ControlFlowRegion.cs (15)
84foreach (ControlFlowRegion r in NestedRegions) 96Debug.Assert(NestedRegions.Length == 2); 97Debug.Assert(NestedRegions[0].Kind == (kind == ControlFlowRegionKind.TryAndFinally ? ControlFlowRegionKind.Try : ControlFlowRegionKind.Filter)); 98Debug.Assert(NestedRegions[1].Kind == (kind == ControlFlowRegionKind.TryAndFinally ? ControlFlowRegionKind.Finally : ControlFlowRegionKind.Catch)); 99Debug.Assert(NestedRegions[0].FirstBlockOrdinal == firstBlockOrdinal); 100Debug.Assert(NestedRegions[1].LastBlockOrdinal == lastBlockOrdinal); 101Debug.Assert(NestedRegions[0].LastBlockOrdinal + 1 == NestedRegions[1].FirstBlockOrdinal); 105Debug.Assert(NestedRegions.Length >= 2); 106Debug.Assert(NestedRegions[0].Kind == ControlFlowRegionKind.Try); 107Debug.Assert(NestedRegions[0].FirstBlockOrdinal == firstBlockOrdinal); 108previousLast = NestedRegions[0].LastBlockOrdinal; 110for (int i = 1; i < NestedRegions.Length; i++) 112ControlFlowRegion r = NestedRegions[i]; 132foreach (ControlFlowRegion r in NestedRegions)
Microsoft.CodeAnalysis.CodeStyle (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (13)
262Debug.Assert(enclosing.NestedRegions[0] == region); 263Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 264if (!StepThroughSingleFinally(enclosing.NestedRegions[1], ref currentAnalysisData)) 325Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 326Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 328if (!StepThroughSingleFinally(enclosing.NestedRegions[1], ref currentAnalysisData)) 337Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 352var index = tryAndCatch.NestedRegions.IndexOf(enclosing, startIndex: 1); 376Debug.Assert(startAt <= tryAndCatch.NestedRegions.Length); 378for (var i = startAt; i < tryAndCatch.NestedRegions.Length; i++) 380var @catch = tryAndCatch.NestedRegions[i]; 390Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter); 391Debug.Assert(entryBlock.Ordinal == @catch.NestedRegions[0].FirstBlockOrdinal);
Microsoft.CodeAnalysis.Test.Utilities (16)
Compilation\ControlFlowGraphVerifier.cs (3)
738Debug.Assert(region.EnclosingRegion.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 739adjustAndGetEntryState(entryStates, blocks[region.EnclosingRegion.NestedRegions[1].FirstBlockOrdinal], state); 1357foreach (ControlFlowRegion r in region.NestedRegions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (13)
262Debug.Assert(enclosing.NestedRegions[0] == region); 263Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 264if (!StepThroughSingleFinally(enclosing.NestedRegions[1], ref currentAnalysisData)) 325Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 326Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 328if (!StepThroughSingleFinally(enclosing.NestedRegions[1], ref currentAnalysisData)) 337Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 352var index = tryAndCatch.NestedRegions.IndexOf(enclosing, startIndex: 1); 376Debug.Assert(startAt <= tryAndCatch.NestedRegions.Length); 378for (var i = startAt; i < tryAndCatch.NestedRegions.Length; i++) 380var @catch = tryAndCatch.NestedRegions[i]; 390Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter); 391Debug.Assert(entryBlock.Ordinal == @catch.NestedRegions[0].FirstBlockOrdinal);
Microsoft.CodeAnalysis.Workspaces (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (13)
262Debug.Assert(enclosing.NestedRegions[0] == region); 263Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 264if (!StepThroughSingleFinally(enclosing.NestedRegions[1], ref currentAnalysisData)) 325Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 326Debug.Assert(enclosing.NestedRegions[1].Kind == ControlFlowRegionKind.Finally); 328if (!StepThroughSingleFinally(enclosing.NestedRegions[1], ref currentAnalysisData)) 337Debug.Assert(enclosing.NestedRegions[0] == fromRegion); 352var index = tryAndCatch.NestedRegions.IndexOf(enclosing, startIndex: 1); 376Debug.Assert(startAt <= tryAndCatch.NestedRegions.Length); 378for (var i = startAt; i < tryAndCatch.NestedRegions.Length; i++) 380var @catch = tryAndCatch.NestedRegions[i]; 390Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter); 391Debug.Assert(entryBlock.Ordinal == @catch.NestedRegions[0].FirstBlockOrdinal);