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)
54return DerivesFrom(type, possibleBase, baseTypesOnly: true); 57return DerivesFrom(type, possibleBase); 91if (constraintType.DerivesFrom(candidateBaseType, baseTypesOnly, checkTypeParameterConstraints))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
172typeSymbol.DerivesFrom(Task, baseTypesOnly: true) ||
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
303targetMethod.ContainingType.DerivesFrom(ExceptionNamedType))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (4)
729exceptionType.DerivesFrom(ExceptionNamedType, baseTypesOnly: true)) 1313!targetType.DerivesFrom(location.LocationType) && 1314!location.LocationType.DerivesFrom(targetType)))) 1331pointsToValue.Locations.All(location => location.IsNoLocation || !location.IsNull && location.LocationType.DerivesFrom(targetType)))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
56exceptionType.DerivesFrom(nestedRegion.ExceptionType, baseTypesOnly: true)))