MonoDevelop.IronPython.Parser.Dom.PythonCompilationUnit.BuildAttributes C# (CSharp) Method

BuildAttributes() private method

private BuildAttributes ( IEnumerable attributes ) : IEnumerable
attributes IEnumerable
return IEnumerable
        IEnumerable<IField> BuildAttributes(IEnumerable<PythonAttribute> attributes)
        {
            foreach (PythonAttribute pyAttr in attributes)
            {
                var domAttr = new DomField () {
                    Name       = pyAttr.Name,
                    BodyRegion = pyAttr.Region,
                    Location   = pyAttr.Region.Start,
                    ReturnType = new DomReturnType () {
                        Name      = pyAttr.Name, // FIXME: Get inferred type
                        Namespace = Module.FullName,
                    },
                };
                m_AllWrapped.Add (domAttr);
                yield return domAttr;
            }
        }