10 references to GetAttributes
Microsoft.AspNetCore.Mvc.Api.Analyzers (10)
ActualApiResponseMetadataFactory.cs (1)
96.GetAttributes(defaultStatusCodeAttributeSymbol)
AddResponseTypeAttributeCodeFixAction.cs (1)
95var apiConventionMethodAttribute = context.Method.GetAttributes(context.SymbolCache.ApiConventionMethodAttribute).FirstOrDefault();
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
40foreach (var attributeData in GetAttributes(current, attribute)) 61foreach (var attributeData in GetAttributes(type, attribute))
SymbolApiConventionMatcher.cs (2)
63var attribute = symbol.GetAttributes(symbolCache.ApiConventionNameMatchAttribute).FirstOrDefault(); 85var attribute = symbol.GetAttributes(symbolCache.ApiConventionTypeMatchAttribute).FirstOrDefault();
SymbolApiResponseMetadataProvider.cs (4)
48method.GetAttributes(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault() ?? 49method.ContainingType.GetAttributes(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault() ?? 50method.ContainingAssembly.GetAttributes(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault(); 166attributes = method.ContainingAssembly.GetAttributes(symbolCache.ApiConventionTypeAttribute).ToArray();