14 references to DerivesFrom
Microsoft.CodeAnalysis.Analyzers (14)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (4)
131if (!symbol.DerivesFrom(analysisTypes.CodeFixProviderType)) 175if (!namedType.DerivesFrom(_analysisTypes.CodeFixProviderType)) 194if (constructor != null && constructor.ContainingType.DerivesFrom(_analysisTypes.CodeActionType)) 324if (!namedType.DerivesFrom(_analysisTypes.CodeActionType))
MetaAnalyzers\ClassIsNotDiagnosticAnalyzer.cs (1)
53!namedType.DerivesFrom(diagnosticAnalyzer, baseTypesOnly: true))
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (1)
99if (namedType.DerivesFrom(diagnosticAnalyzer, baseTypesOnly: true))
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (1)
94if (attribute.AttributeClass.DerivesFrom(DiagnosticAnalyzerAttribute))
MetaAnalyzers\DiagnosticAnalyzerCorrectnessAnalyzer.DiagnosticAnalyzerSymbolAnalyzer.cs (1)
45if (attribute.AttributeClass.DerivesFrom(DiagnosticAnalyzerAttribute))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
833fieldReference.Field.Type.DerivesFrom(localizableStringType, baseTypesOnly: true))
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))