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)
431
else if (fromRegion.Kind == ControlFlowRegionKind.
Filter
)
477
Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.
Filter
);
542
case ControlFlowRegionKind.
Filter
:
730
Debug.Assert(currentRegion.Kind == ControlFlowRegionKind.
Filter
||
1025
case ControlFlowRegionKind.
Filter
:
3700
var filterRegion = new RegionBuilder(ControlFlowRegionKind.
Filter
, catchClause.ExceptionType);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (2)
147
Debug.Assert(lastKind == (Regions.Count < 2 ? ControlFlowRegionKind.
Filter
: ControlFlowRegionKind.Catch));
174
Debug.Assert(lastKind != ControlFlowRegionKind.
Filter
);
Operations\ControlFlowRegion.cs (3)
28
/// Target exception type for <see cref="ControlFlowRegionKind.
Filter
"/>, <see cref="ControlFlowRegionKind.Catch"/>,
97
Debug.Assert(NestedRegions[0].Kind == (kind == ControlFlowRegionKind.TryAndFinally ? ControlFlowRegionKind.Try : ControlFlowRegionKind.
Filter
));
125
case 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)
345
else if (fromRegion.Kind == ControlFlowRegionKind.
Filter
)
390
Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.
Filter
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
371
case ControlFlowRegionKind.
Filter
:
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\ControlFlowGraphVerifier.cs (4)
297
Assert.True(block.EnclosingRegion.Kind == ControlFlowRegionKind.
Filter
|| block.EnclosingRegion.Kind == ControlFlowRegionKind.Finally);
1433
case ControlFlowRegionKind.
Filter
:
1532
case ControlFlowRegionKind.
Filter
:
1556
goto case ControlFlowRegionKind.
Filter
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
345
else if (fromRegion.Kind == ControlFlowRegionKind.
Filter
)
390
Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.
Filter
);
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
345
else if (fromRegion.Kind == ControlFlowRegionKind.
Filter
)
390
Debug.Assert(@catch.NestedRegions[0].Kind == ControlFlowRegionKind.
Filter
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
371
case ControlFlowRegionKind.
Filter
: