Roslyn拡張: Analyzerの作り方と、各メソッドの使い方 - Build Insider https://www.buildinsider.net/enterprise/roslynextension/03
ISymbol.GetAttributes Method (Microsoft.CodeAnalysis) | Microsoft Docs https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.isymbol.getattributes?view=roslyn-dotnet