summaryrefslogtreecommitdiff
path: root/tools/tast_iter.ml
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2014-03-31 17:58:53 +0000
committerDamien Doligez <damien.doligez-inria.fr>2014-03-31 17:58:53 +0000
commit8643356b8542e0dcab358716f1e04d47b08b1a6d (patch)
treee10cc5a03f7ead69a2d4ed563cbd021df5770ef2 /tools/tast_iter.ml
parentcd1bf4b9fc898cee2f4886ed18ddf6271ec522e8 (diff)
parent989ac0b2635443b9c0f183ee6343b663c854f4ea (diff)
downloadocaml-ephemeron.tar.gz
merge with trunk at rev 14512ephemeron
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ephemeron@14514 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'tools/tast_iter.ml')
-rw-r--r--tools/tast_iter.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/tast_iter.ml b/tools/tast_iter.ml
index 776e33522f..c8af136701 100644
--- a/tools/tast_iter.ml
+++ b/tools/tast_iter.ml
@@ -191,9 +191,10 @@ let class_type_declaration sub cd =
let module_type sub mty =
match mty.mty_desc with
| Tmty_ident (_path, _) -> ()
+ | Tmty_alias (_path, _) -> ()
| Tmty_signature sg -> sub # signature sg
| Tmty_functor (_id, _, mtype1, mtype2) ->
- sub # module_type mtype1; sub # module_type mtype2
+ Misc.may (sub # module_type) mtype1; sub # module_type mtype2
| Tmty_with (mtype, list) ->
sub # module_type mtype;
List.iter (fun (_, _, withc) -> sub # with_constraint withc) list
@@ -212,7 +213,7 @@ let module_expr sub mexpr =
| Tmod_ident (_p, _) -> ()
| Tmod_structure st -> sub # structure st
| Tmod_functor (_id, _, mtype, mexpr) ->
- sub # module_type mtype;
+ Misc.may (sub # module_type) mtype;
sub # module_expr mexpr
| Tmod_apply (mexp1, mexp2, _) ->
sub # module_expr mexp1;