private LuaTable CreateTypeListTable(IEnumerable<MoaiType> types) { var typeListTable = new LuaTable(); foreach (MoaiType type in types.OrderBy(t => t.Name)) { typeListTable.Add(new LuaComment(type.Signature, blankLineBefore: typeListTable.Any())); typeListTable.Add(type.Name, CreateTypeTable(type)); } return typeListTable; }