22 references to DerivesFrom
Microsoft.CodeAnalysis.Analyzers (22)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (4)
130
if (!symbol.
DerivesFrom
(analysisTypes.CodeFixProviderType))
174
if (!namedType.
DerivesFrom
(_analysisTypes.CodeFixProviderType))
193
if (constructor != null && constructor.ContainingType.
DerivesFrom
(_analysisTypes.CodeActionType))
323
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)
93
if (attribute.AttributeClass.
DerivesFrom
(DiagnosticAnalyzerAttribute))
MetaAnalyzers\DiagnosticAnalyzerCorrectnessAnalyzer.DiagnosticAnalyzerSymbolAnalyzer.cs (1)
44
if (attribute.AttributeClass.
DerivesFrom
(DiagnosticAnalyzerAttribute))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
830
fieldReference.Field.Type.
DerivesFrom
(localizableStringType, baseTypesOnly: true))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (5)
651
(method.Parameters[1].Type.
DerivesFrom
(eventArgsType, baseTypesOnly: true) || method.Parameters[1].Type.Name.EndsWith("EventArgs", StringComparison.Ordinal));
778
return returnType.
DerivesFrom
(inotifyCompletionType) ||
779
returnType.
DerivesFrom
(icriticalNotifyCompletionType);
800
return containingType.
DerivesFrom
(inotifyCompletionType) ||
801
containingType.
DerivesFrom
(icriticalNotifyCompletionType);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (2)
282
(xunitFactAttribute is not null && attributeClass.
DerivesFrom
(xunitFactAttribute))
283
|| (benchmarkAttribute is not null && attributeClass.
DerivesFrom
(benchmarkAttribute));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IPropertySymbolExtensions.cs (2)
35
return containingType.
DerivesFrom
(inotifyCompletionType)
36
|| containingType.
DerivesFrom
(icriticalNotifyCompletionType);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
231
return member != null && member.MetadataName == name && member.ContainingType.
DerivesFrom
(type);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (3)
61
return
DerivesFrom
(type, possibleBase, baseTypesOnly: true);
64
return
DerivesFrom
(type, possibleBase);
119
if (constraintType.
DerivesFrom
(candidateBaseType, baseTypesOnly, checkTypeParameterConstraints))