33 references to 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); 3651EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 3658EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 3661Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 3744Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 4068EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 4072Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 4279EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 4313Debug.Assert(CurrentRegionRequired.Kind == ControlFlowRegionKind.Try); 4419EnterRegion(new RegionBuilder(ControlFlowRegionKind.Try)); 4450Debug.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)
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)
774if (region.Kind == ControlFlowRegionKind.Try && region.EnclosingRegion.Kind == ControlFlowRegionKind.TryAndFinally) 1465case ControlFlowRegionKind.Try: 1558case ControlFlowRegionKind.Try:
CustomDataFlowAnalysis.cs (2)
260if (region.Kind == ControlFlowRegionKind.Try && enclosing.Kind == ControlFlowRegionKind.TryAndFinally) 320if (fromRegion.Kind == ControlFlowRegionKind.Try)
Microsoft.CodeAnalysis.Workspaces (2)
CustomDataFlowAnalysis.cs (2)
260if (region.Kind == ControlFlowRegionKind.Try && enclosing.Kind == ControlFlowRegionKind.TryAndFinally) 320if (fromRegion.Kind == ControlFlowRegionKind.Try)