diff options
Diffstat (limited to 'tools/tast_iter.ml')
| -rw-r--r-- | tools/tast_iter.ml | 5 |
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; |
