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;
}
}