13 references to DerivesFrom
Microsoft.CodeAnalysis.ResxSourceGenerator (13)
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))