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)
142if (leavingRegions[i].Kind == ControlFlowRegionKind.Try && leavingRegions[i + 1].Kind == ControlFlowRegionKind.TryAndFinally)
Operations\ControlFlowGraphBuilder.cs (14)
352if (region.Kind == ControlFlowRegionKind.Try && enclosing.Kind == ControlFlowRegionKind.TryAndFinally) 408if (fromRegion.Kind == ControlFlowRegionKind.Try) 543case ControlFlowRegionKind.Try: 763Debug.Assert(@try.Kind == ControlFlowRegionKind.Try); 3668EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 3675EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 3678Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 3761Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 4088EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 4092Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 4360EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 4394Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 4500EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 4531Debug.Assert(_currentRegion.Kind == ControlFlowRegionKind.Try);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (3)
153Debug.Assert(lastKind == ControlFlowRegionKind.Try); 165Debug.Assert(lastKind == ControlFlowRegionKind.Try); 177Debug.Assert(lastKind != ControlFlowRegionKind.Try);
Operations\ControlFlowRegion.cs (3)
97Debug.Assert(NestedRegions[0].Kind == (kind == ControlFlowRegionKind.TryAndFinally ? ControlFlowRegionKind.Try : ControlFlowRegionKind.Filter)); 106Debug.Assert(NestedRegions[0].Kind == ControlFlowRegionKind.Try); 124case 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)
260if (region.Kind == ControlFlowRegionKind.Try && enclosing.Kind == ControlFlowRegionKind.TryAndFinally) 320if (fromRegion.Kind == ControlFlowRegionKind.Try)
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\ControlFlowGraphVerifier.cs (3)
736if (region.Kind == ControlFlowRegionKind.Try && region.EnclosingRegion.Kind == ControlFlowRegionKind.TryAndFinally) 1440case ControlFlowRegionKind.Try: 1533case ControlFlowRegionKind.Try:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
260if (region.Kind == ControlFlowRegionKind.Try && enclosing.Kind == ControlFlowRegionKind.TryAndFinally) 320if (fromRegion.Kind == ControlFlowRegionKind.Try)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
260if (region.Kind == ControlFlowRegionKind.Try && enclosing.Kind == ControlFlowRegionKind.TryAndFinally) 320if (fromRegion.Kind == ControlFlowRegionKind.Try)