Arnolyzer.Analyzers.CommonFunctions.ItemsToIgnoreFromAttributes C# (CSharp) Метод

ItemsToIgnoreFromAttributes() публичный статический Метод

public static ItemsToIgnoreFromAttributes ( ISymbol symbol, IEnumerable attributes ) : IEnumerable
symbol ISymbol
attributes IEnumerable
Результат IEnumerable
        public static IEnumerable<NameAndLocation> ItemsToIgnoreFromAttributes(ISymbol symbol,
                                                                               IEnumerable<Type> attributes) =>
            symbol.GetAttributes()
                  .Where(a => attributes.TryFirst(t => MatchAttributeName(t, a.AttributeClass.Name)).HasValue)
                  .SelectMany(attribute =>
                                  (attribute.ApplicationSyntaxReference.GetSyntax() as AttributeSyntax).ArgumentList
                                                                                                       .Arguments)
                  .Select(argument => new NameAndLocation(argument.ToString().Trim('"'), argument.GetLocation()));