4 references to HasAttribute
Microsoft.AspNetCore.Mvc.Analyzers (4)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
79type.HasAttribute(pageAttributeModel, inherit: true);
src\Shared\Roslyn\MvcFacts.cs (2)
43if (type.HasAttribute(nonControllerAttribute, inherit: true)) 49!type.HasAttribute(controllerAttribute, inherit: true))
TopLevelParameterNameAnalyzer.cs (1)
57if (method.ContainingType.HasAttribute(symbolCache.IApiBehaviorMetadata, inherit: true))