12 references to Inherits
Microsoft.CodeAnalysis.Analyzers (12)
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (2)
164if (!extension.Inherits(extensionClassOrInterface)) 178if (!attribute.AttributeClass.Inherits(registrationAttributeType))
MetaAnalyzers\CompilerExtensionTargetFrameworkAnalyzer.cs (2)
113if (!extension.Inherits(extensionClassOrInterface)) 127if (!attribute.AttributeClass.Inherits(registrationAttributeType))
MetaAnalyzers\DoNotUseCompilationGetSemanticModelAnalyzer.cs (1)
55methodSymbol.ContainingType.Inherits(diagnosticAnalyzerType))
MetaAnalyzers\DoNotUseFileTypesForAnalyzersOrGenerators.cs (4)
59if (namedTypeSymbol.Inherits(diagnosticAnalyzer) || 60namedTypeSymbol.Inherits(codeFixProvider) || 61namedTypeSymbol.Inherits(isourceGenerator) || 62namedTypeSymbol.Inherits(iincrementalGenerator))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (3)
255if (attribute.AttributeClass.Inherits(inheritedExportAttribute)) 260(attribute.AttributeClass.Inherits(exportAttributeV1) || attribute.AttributeClass.Inherits(exportAttributeV2)))