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