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