21 references to DerivesFrom
Roslyn.Diagnostics.Analyzers (21)
AbstractRunIterations`1.cs (2)
59
if (!attribute.AttributeClass.
DerivesFrom
(dataAttribute))
62
if (!attribute.AttributeClass.
DerivesFrom
(combinatorialDataAttribute))
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
67
var appliedExportAttributes = exportAttributes.Where(e => namedTypeAttributes.Any(ad => ad.AttributeClass.
DerivesFrom
(e))).ToList();
ExportedPartsShouldHaveImportingConstructor.cs (2)
89
var exportAttributeApplication = exportAttributes.FirstOrDefault(ad => ad.AttributeClass.
DerivesFrom
(exportAttribute));
119
var appliedImportingConstructorAttribute = constructorAttributes.FirstOrDefault(ad => ad.AttributeClass.
DerivesFrom
(importingConstructorAttribute));
ImportingConstructorShouldBeObsolete.cs (2)
82
if (!exportAttributes.Any(ad => ad.AttributeClass.
DerivesFrom
(exportAttribute)))
98
if (attributeData.AttributeClass.
DerivesFrom
(importingConstructorAttribute))
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))
TestExportsShouldNotBeDiscoverable.cs (1)
79
var exportAttributeApplication = exportAttributes.FirstOrDefault(ad => ad.AttributeClass.
DerivesFrom
(exportAttribute));