1 write to EnclosingRegion
Microsoft.CodeAnalysis (1)
Operations\BasicBlock.cs (1)
43
EnclosingRegion
= region;
51 references to EnclosingRegion
ILLink.RoslynAnalyzer (2)
DataFlow\ControlFlowGraphProxy.cs (2)
112
return TryGetTryOrCatchOrFilter (block.Block.
EnclosingRegion
, out tryOrCatchOrFilterRegion);
138
ControlFlowRegion? region = block.Block.
EnclosingRegion
;
Microsoft.CodeAnalysis (2)
Operations\ControlFlowBranch.cs (2)
72
result = CollectRegions(Destination.Ordinal, Source.
EnclosingRegion
).ToImmutableAndFree();
115
ArrayBuilder<ControlFlowRegion> builder = CollectRegions(Source.Ordinal, Destination.
EnclosingRegion
);
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
310
var currentRegion = block.
EnclosingRegion
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (7)
134
if (current.Ordinal == current.
EnclosingRegion
.FirstBlockOrdinal)
137
dispatchedExceptionsFromRegions.Remove(current.
EnclosingRegion
);
176
if (current.
EnclosingRegion
.Kind == ControlFlowRegionKind.Finally &&
179
continueDispatchAfterFinally[current.
EnclosingRegion
] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
194
DispatchException(current.
EnclosingRegion
);
222
StepThroughFinally(current.
EnclosingRegion
, destinationOrdinal: lastBlockOrdinal, ref currentAnalsisData);
229
if (StepThroughFinally(current.
EnclosingRegion
, branch.Destination.Ordinal, ref currentAnalsisData))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
169
if (basicBlock.
EnclosingRegion
.Kind == ControlFlowRegionKind.Catch &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
355
basicBlock.
EnclosingRegion
.FirstBlockOrdinal != basicBlock.Ordinal)
361
var outermostEnclosingRegionStartingBlock = basicBlock.
EnclosingRegion
;
Microsoft.CodeAnalysis.Test.Utilities (25)
Compilation\ControlFlowGraphVerifier.cs (18)
144
Assert.Same(currentRegion, block.
EnclosingRegion
);
162
Assert.Same(currentRegion, block.
EnclosingRegion
);
171
if (block.
EnclosingRegion
!= currentRegion)
173
enterRegions(block.
EnclosingRegion
, block.Ordinal);
296
Assert.Equal(block.
EnclosingRegion
.LastBlockOrdinal, block.Ordinal);
297
Assert.True(block.
EnclosingRegion
.Kind == ControlFlowRegionKind.Filter || block.
EnclosingRegion
.Kind == ControlFlowRegionKind.Finally);
320
leaveRegions(block.
EnclosingRegion
, block.Ordinal);
462
ControlFlowRegion region = block.
EnclosingRegion
;
732
ControlFlowRegion region = branch.Source.
EnclosingRegion
;
780
AssertTrueWithGraph(block.
EnclosingRegion
.CaptureIds.Contains(id), $"Flow capture initialization [{id}] should come from the containing region.", finalGraph);
786
if (isLongLivedCaptureReference(reference, block.
EnclosingRegion
))
796
if (block.
EnclosingRegion
.CaptureIds.Contains(id) || longLivedIds.Contains(id))
801
if (block.
EnclosingRegion
.EnclosingRegion.CaptureIds.Contains(id))
813
else if (block.
EnclosingRegion
.EnclosingRegion?.EnclosingRegion.CaptureIds.Contains(id) ?? false)
1590
ControlFlowRegion remainedIn1 = fromBlock.
EnclosingRegion
;
1601
ControlFlowRegion remainedIn2 = branch.Destination.
EnclosingRegion
;
1661
ControlFlowRegion region = block.
EnclosingRegion
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (7)
134
if (current.Ordinal == current.
EnclosingRegion
.FirstBlockOrdinal)
137
dispatchedExceptionsFromRegions.Remove(current.
EnclosingRegion
);
176
if (current.
EnclosingRegion
.Kind == ControlFlowRegionKind.Finally &&
179
continueDispatchAfterFinally[current.
EnclosingRegion
] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
194
DispatchException(current.
EnclosingRegion
);
222
StepThroughFinally(current.
EnclosingRegion
, destinationOrdinal: lastBlockOrdinal, ref currentAnalsisData);
229
if (StepThroughFinally(current.
EnclosingRegion
, branch.Destination.Ordinal, ref currentAnalsisData))
Microsoft.CodeAnalysis.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
310
var currentRegion = block.
EnclosingRegion
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (7)
134
if (current.Ordinal == current.
EnclosingRegion
.FirstBlockOrdinal)
137
dispatchedExceptionsFromRegions.Remove(current.
EnclosingRegion
);
176
if (current.
EnclosingRegion
.Kind == ControlFlowRegionKind.Finally &&
179
continueDispatchAfterFinally[current.
EnclosingRegion
] = branch.Semantics != ControlFlowBranchSemantics.Throw &&
194
DispatchException(current.
EnclosingRegion
);
222
StepThroughFinally(current.
EnclosingRegion
, destinationOrdinal: lastBlockOrdinal, ref currentAnalsisData);
229
if (StepThroughFinally(current.
EnclosingRegion
, branch.Destination.Ordinal, ref currentAnalsisData))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
169
if (basicBlock.
EnclosingRegion
.Kind == ControlFlowRegionKind.Catch &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
355
basicBlock.
EnclosingRegion
.FirstBlockOrdinal != basicBlock.Ordinal)
361
var outermostEnclosingRegionStartingBlock = basicBlock.
EnclosingRegion
;