From 5464be9bd01ac6b5f0e095fe6706b1ba671aadc1 Mon Sep 17 00:00:00 2001 From: Jacques Garrigue Date: Tue, 13 Jan 2004 05:58:47 +0000 Subject: [PATCH] update trees git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6069 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/labltk/browser/searchpos.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otherlibs/labltk/browser/searchpos.ml b/otherlibs/labltk/browser/searchpos.ml index 430d52040..98ead0ccd 100644 --- a/otherlibs/labltk/browser/searchpos.ml +++ b/otherlibs/labltk/browser/searchpos.ml @@ -206,8 +206,8 @@ let rec search_pos_signature l ~pos ~env = add_found_sig (`Type, Lident "exn") ~env ~loc:pt.psig_loc | Psig_module (_, t) -> search_pos_module t ~pos ~env - | Psig_recmodule decls -> - assert false (* to be fixed *) + | Psig_recmodule decls -> + List.iter decls ~f:(fun (_, t) -> search_pos_module t ~pos ~env) | Psig_modtype (_, Pmodtype_manifest t) -> search_pos_module t ~pos ~env | Psig_modtype _ -> () @@ -665,7 +665,8 @@ let rec search_pos_structure ~pos str = | Tstr_exception _ -> () | Tstr_exn_rebind(_, _) -> () | Tstr_module (_, m) -> search_pos_module_expr m ~pos - | Tstr_recmodule bindings -> assert false (* to be fixed *) + | Tstr_recmodule bindings -> + List.iter bindings ~f:(fun (_, m) -> search_pos_module_expr m ~pos) | Tstr_modtype _ -> () | Tstr_open _ -> () | Tstr_class l -> @@ -807,7 +808,6 @@ and search_pos_expr ~pos exp = search_pos_expr exp ~pos | Texp_object (cls, _, _) -> search_pos_class_structure ~pos cls - end; add_found_str (`Exp(`Expr, exp.exp_type)) ~env:exp.exp_env ~loc:exp.exp_loc end