21 references to DerivesFrom
Roslyn.Diagnostics.Analyzers (21)
AbstractRunIterations`1.cs (2)
59if (!attribute.AttributeClass.DerivesFrom(dataAttribute)) 62if (!attribute.AttributeClass.DerivesFrom(combinatorialDataAttribute))
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
67var appliedExportAttributes = exportAttributes.Where(e => namedTypeAttributes.Any(ad => ad.AttributeClass.DerivesFrom(e))).ToList();
ExportedPartsShouldHaveImportingConstructor.cs (2)
89var exportAttributeApplication = exportAttributes.FirstOrDefault(ad => ad.AttributeClass.DerivesFrom(exportAttribute)); 119var appliedImportingConstructorAttribute = constructorAttributes.FirstOrDefault(ad => ad.AttributeClass.DerivesFrom(importingConstructorAttribute));
ImportingConstructorShouldBeObsolete.cs (2)
82if (!exportAttributes.Any(ad => ad.AttributeClass.DerivesFrom(exportAttribute))) 98if (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)); 778return returnType.DerivesFrom(inotifyCompletionType) || 779returnType.DerivesFrom(icriticalNotifyCompletionType); 800return containingType.DerivesFrom(inotifyCompletionType) || 801containingType.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)
35return containingType.DerivesFrom(inotifyCompletionType) 36|| containingType.DerivesFrom(icriticalNotifyCompletionType);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
231return member != null && member.MetadataName == name && member.ContainingType.DerivesFrom(type);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (3)
61return DerivesFrom(type, possibleBase, baseTypesOnly: true); 64return DerivesFrom(type, possibleBase); 119if (constraintType.DerivesFrom(candidateBaseType, baseTypesOnly, checkTypeParameterConstraints))
TestExportsShouldNotBeDiscoverable.cs (1)
79var exportAttributeApplication = exportAttributes.FirstOrDefault(ad => ad.AttributeClass.DerivesFrom(exportAttribute));