private TypeNodeList CollectClasses()
{
TypeNodeList classes = new TypeNodeList();
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)
{
classes.Add(type);
}
}
}
return classes;
}