Pchp.CodeAnalysis.Symbols.MethodSymbol.GetReturnValueCustomAttributesToEmit C# (CSharp) Method

GetReturnValueCustomAttributesToEmit() private method

private GetReturnValueCustomAttributesToEmit ( ) : IEnumerable
return IEnumerable
        private IEnumerable<AttributeData> GetReturnValueCustomAttributesToEmit()
        {
            CheckDefinitionInvariant();

            //ImmutableArray<CSharpAttributeData> userDefined;
            //ArrayBuilder<SynthesizedAttributeData> synthesized = null;

            //userDefined = this.GetReturnTypeAttributes();
            //this.AddSynthesizedReturnTypeAttributes(ref synthesized);

            //if (userDefined.IsEmpty && synthesized == null)
            //{
            //    return SpecializedCollections.EmptyEnumerable<CSharpAttributeData>();
            //}

            //// Note that callers of this method (CCI and ReflectionEmitter) have to enumerate 
            //// all items of the returned iterator, otherwise the synthesized ArrayBuilder may leak.
            //return GetCustomAttributesToEmit(userDefined, synthesized, isReturnType: true, emittingAssemblyAttributesInNetModule: false);
            yield break;
        }