Commit fedd3d949174b60ead3215c6aea0f8bf3e73e053

Authored by totoro
1 parent e19a5e65

add get_all_types from all ds_type_file

Showing 1 changed file with 14 additions and 0 deletions   Show diff stats
types/ds_types.anubis
@@ -226,6 +226,20 @@ public define List(Extern_type) @@ -226,6 +226,20 @@ public define List(Extern_type)
226 extract_extern_type(ds_alternatives, [], beside_type) 226 extract_extern_type(ds_alternatives, [], beside_type)
227 . 227 .
228 228
  229 +public define List(DS_Type)
  230 + get_all_types
  231 + (
  232 + List(DS_Type_File) type_files
  233 + )=
  234 + if type_files is
  235 + {
  236 + [] then [],
  237 + [h . t] then
  238 + since h is ds_type_file(_, _, types),
  239 + types + get_all_types(t)
  240 + }
  241 +.
  242 +
229 /******************* DUMP function *****************************/ 243 /******************* DUMP function *****************************/
230 244
231 public define String 245 public define String