7 references to GetAttributes
Microsoft.AspNetCore.Mvc.Analyzers (5)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
40foreach (var attributeData in GetAttributes(current, attribute)) 61foreach (var attributeData in GetAttributes(type, attribute))
TopLevelParameterNameAnalyzer.cs (3)
86if (parameter.GetAttributes(symbolCache.FromBodyAttribute).Any()) 152foreach (var attribute in symbol.GetAttributes(symbolCache.IModelNameProvider)) 178foreach (var attribute in parameterSymbol.GetAttributes(symbolCache.IBinderTypeProviderMetadata))
Mvc.Analyzers.Test (2)
CodeAnalysisExtensionsTest.cs (2)
132var attributes = CodeAnalysisExtensions.GetAttributes(method, attribute); 439var attributes = CodeAnalysisExtensions.GetAttributes(symbol: testClass, attribute: attribute);