private void handleType(TypeDefinition type) { if (type.Name == "<Module>") return; if (type.IsClass) { var classDef = new Class(_file, type.Namespace, type.Name, "public", 0, 0); _writer.WriteClass(classDef); handleTypeMembers(type); } if (type.IsInterface) { var iface = new Interface(_file, type.Namespace, type.Name, "public", 0, 0); _writer.WriteInterface(iface); handleTypeMembers(type); } if (type.IsEnum) { var enm = new EnumType(_file, type.Namespace, type.Name, "public", 0, 0); _writer.WriteEnum(enm); handleTypeMembers(type); } foreach (var child in type.NestedTypes) handleType(child); }
public void AddClass(Class cls) { Classes.Add(cls); }