30 references to Filter
ILLink.RoslynAnalyzer (6)
DataFlow\ControlFlowGraphProxy.cs (6)
41 ControlFlowRegionKind.Filter => RegionKind.Filter, 126 if (region.Kind is ControlFlowRegionKind.Try or ControlFlowRegionKind.Catch or ControlFlowRegionKind.Filter) { 153 if (catchOrFilterOrFinallyRegion.Region.Kind is not (ControlFlowRegionKind.Catch or ControlFlowRegionKind.Filter or ControlFlowRegionKind.Finally)) 180 if (region.Kind is not (ControlFlowRegionKind.Catch or ControlFlowRegionKind.Filter)) 199 if (filter.Kind == ControlFlowRegionKind.Filter) { 217 if (catchOrFilter.Kind == ControlFlowRegionKind.Filter)
Microsoft.CodeAnalysis (12)
Operations\ControlFlowGraphBuilder.cs (6)
431else if (fromRegion.Kind == ControlFlowRegionKind.Filter) 477Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter); 542case ControlFlowRegionKind.Filter: 730Debug.Assert(currentRegion.Kind == ControlFlowRegionKind.Filter || 1025case ControlFlowRegionKind.Filter: 3700var filterRegion = new RegionBuilder(ControlFlowRegionKind.Filter, catchClause.ExceptionType);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (2)
147Debug.Assert(lastKind == (Regions.Count < 2 ? ControlFlowRegionKind.Filter : ControlFlowRegionKind.Catch)); 174Debug.Assert(lastKind != ControlFlowRegionKind.Filter);
Operations\ControlFlowRegion.cs (3)
28/// Target exception type for <see cref="ControlFlowRegionKind.Filter"/>, <see cref="ControlFlowRegionKind.Catch"/>, 97Debug.Assert(NestedRegions[0].Kind == (kind == ControlFlowRegionKind.TryAndFinally ? ControlFlowRegionKind.Try : ControlFlowRegionKind.Filter)); 125case ControlFlowRegionKind.Filter:
Operations\ControlFlowRegionKind.cs (1)
43/// Region representing a union of a <see cref="Filter"/> and the corresponding catch <see cref="Catch"/> regions.
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
345else if (fromRegion.Kind == ControlFlowRegionKind.Filter) 390Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
371case ControlFlowRegionKind.Filter:
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\ControlFlowGraphVerifier.cs (4)
297Assert.True(block.EnclosingRegion.Kind == ControlFlowRegionKind.Filter || block.EnclosingRegion.Kind == ControlFlowRegionKind.Finally); 1433case ControlFlowRegionKind.Filter: 1532case ControlFlowRegionKind.Filter: 1556goto case ControlFlowRegionKind.Filter;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
345else if (fromRegion.Kind == ControlFlowRegionKind.Filter) 390Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter);
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
345else if (fromRegion.Kind == ControlFlowRegionKind.Filter) 390Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.Filter);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
371case ControlFlowRegionKind.Filter: