Refactor used_ids and used_types into a generic fold

This commit is contained in:
Ulf Norell
2019-02-08 10:39:48 +01:00
parent 421bc01012
commit 2ac47059c1
2 changed files with 106 additions and 81 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
-export_type([bin_op/0, un_op/0]).
-export_type([decl/0, letbind/0, typedef/0]).
-export_type([arg/0, field_t/0, constructor_t/0, named_arg_t/0]).
-export_type([type/0, constant/0, expr/0, arg_expr/0, field/1, stmt/0, alt/0, lvalue/0, pat/0]).
-export_type([type/0, constant/0, expr/0, arg_expr/0, field/1, stmt/0, alt/0, lvalue/0, elim/0, pat/0]).
-export_type([ast/0]).
-type ast() :: [decl()].