12 references to DerivesFrom
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
80
(xunitFactAttribute is not null && attributeClass.
DerivesFrom
(xunitFactAttribute))
81
|| (benchmarkAttribute is not null && attributeClass.
DerivesFrom
(benchmarkAttribute));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (3)
54
return
DerivesFrom
(type, possibleBase, baseTypesOnly: true);
57
return
DerivesFrom
(type, possibleBase);
91
if (constraintType.
DerivesFrom
(candidateBaseType, baseTypesOnly, checkTypeParameterConstraints))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
172
typeSymbol.
DerivesFrom
(Task, baseTypesOnly: true) ||
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
303
targetMethod.ContainingType.
DerivesFrom
(ExceptionNamedType))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (4)
729
exceptionType.
DerivesFrom
(ExceptionNamedType, baseTypesOnly: true))
1313
!targetType.
DerivesFrom
(location.LocationType) &&
1314
!location.LocationType.
DerivesFrom
(targetType))))
1331
pointsToValue.Locations.All(location => location.IsNoLocation || !location.IsNull && location.LocationType.
DerivesFrom
(targetType)))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
56
exceptionType.
DerivesFrom
(nestedRegion.ExceptionType, baseTypesOnly: true)))