private MemberList CollectGlobals()
{
MemberList members = new MemberList();
for (int c = 0, nc = this.cZing.CompilationUnits.Count; c < nc; c++)
{
for (int t = 0, nTypes = ((Namespace)this.cZing.CompilationUnits[c].Nodes[0]).Types.Count; t < nTypes; t++)
{
TypeNode type = ((Namespace)this.cZing.CompilationUnits[c].Nodes[0]).Types[t];
if (type.NodeType == NodeType.Class)
{
for (int m = 0, nMembers = type.Members.Count; m < nMembers; m++)
{
Field f = type.Members[m] as Field;
if (f != null && f.Type != null && f.IsStatic)
members.Add(f);
}
}
}
}
return members;
}