36 references to Try
ILLink.RoslynAnalyzer (3)
DataFlow\ControlFlowGraphProxy.cs (3)
39
ControlFlowRegionKind.
Try
=> RegionKind.Try,
126
if (region.Kind is ControlFlowRegionKind.
Try
or ControlFlowRegionKind.Catch or ControlFlowRegionKind.Filter) {
171
if (nested.Kind == ControlFlowRegionKind.
Try
)
Microsoft.CodeAnalysis (24)
Operations\ControlFlowBranch.cs (1)
142
if (leavingRegions[i].Kind == ControlFlowRegionKind.
Try
&& leavingRegions[i + 1].Kind == ControlFlowRegionKind.TryAndFinally)
Operations\ControlFlowGraphBuilder.cs (14)
352
if (region.Kind == ControlFlowRegionKind.
Try
&& enclosing.Kind == ControlFlowRegionKind.TryAndFinally)
408
if (fromRegion.Kind == ControlFlowRegionKind.
Try
)
543
case ControlFlowRegionKind.
Try
:
763
Debug.Assert(@try.Kind == ControlFlowRegionKind.
Try
);
3668
EnterRegion(new RegionBuilder(ControlFlowRegionKind.
Try
));
3675
EnterRegion(new RegionBuilder(ControlFlowRegionKind.
Try
));
3678
Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.
Try
);
3761
Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.
Try
);
4088
EnterRegion(new RegionBuilder(ControlFlowRegionKind.
Try
));
4092
Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.
Try
);
4360
EnterRegion(new RegionBuilder(ControlFlowRegionKind.
Try
));
4394
Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.
Try
);
4500
EnterRegion(new RegionBuilder(ControlFlowRegionKind.
Try
));
4531
Debug.Assert(_currentRegion.Kind == ControlFlowRegionKind.
Try
);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (3)
153
Debug.Assert(lastKind == ControlFlowRegionKind.
Try
);
165
Debug.Assert(lastKind == ControlFlowRegionKind.
Try
);
177
Debug.Assert(lastKind != ControlFlowRegionKind.
Try
);
Operations\ControlFlowRegion.cs (3)
97
Debug.Assert(NestedRegions[0].Kind == (kind == ControlFlowRegionKind.TryAndFinally ? ControlFlowRegionKind.
Try
: ControlFlowRegionKind.Filter));
106
Debug.Assert(NestedRegions[0].Kind == ControlFlowRegionKind.
Try
);
124
case ControlFlowRegionKind.
Try
:
Operations\ControlFlowRegionKind.cs (3)
49
/// Region representing a union of a <see cref="
Try
"/> and all corresponding catch <see cref="Catch"/>
60
/// Region representing a union of a <see cref="
Try
"/> and corresponding finally <see cref="Finally"/>
64
/// at the same time is mapped to a <see cref="TryAndFinally"/> region with <see cref="TryAndCatch"/> region inside its <see cref="
Try
"/> region.
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
260
if (region.Kind == ControlFlowRegionKind.
Try
&& enclosing.Kind == ControlFlowRegionKind.TryAndFinally)
320
if (fromRegion.Kind == ControlFlowRegionKind.
Try
)
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\ControlFlowGraphVerifier.cs (3)
736
if (region.Kind == ControlFlowRegionKind.
Try
&& region.EnclosingRegion.Kind == ControlFlowRegionKind.TryAndFinally)
1440
case ControlFlowRegionKind.
Try
:
1533
case ControlFlowRegionKind.
Try
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
260
if (region.Kind == ControlFlowRegionKind.
Try
&& enclosing.Kind == ControlFlowRegionKind.TryAndFinally)
320
if (fromRegion.Kind == ControlFlowRegionKind.
Try
)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
260
if (region.Kind == ControlFlowRegionKind.
Try
&& enclosing.Kind == ControlFlowRegionKind.TryAndFinally)
320
if (fromRegion.Kind == ControlFlowRegionKind.
Try
)