예제 #1
0
        public static IEnumerable <AttributeData> DeclaredAndInheritedAttributes(this IParameterSymbol @this)
        {
            if (@this == null)
            {
                throw new ArgumentNullException(nameof(@this));
            }

            return(@this
                   .Concat(@this.OverriddenAndImplementedInterfaceMembers())
                   .SelectMany(s => s.GetAttributes()));
        }