@@ -46,31 +46,6 @@ let rec constant_of_const c : Code.constant =
4646 let l = Array. of_list (List. map l ~f: constant_of_const) in
4747 Tuple (tag, l, Unknown )
4848
49- let rec find_loc_in_summary ident' = function
50- | Env. Env_empty -> None
51- | Env. Env_value (_summary , ident , description ) when Poly. (ident = ident') ->
52- Some description.Types. val_loc
53- | Env. Env_module (_summary , ident , _ , description ) when Ident. same ident ident' ->
54- Some description.Types. md_loc
55- | Env. Env_extension (_summary , ident , description ) when Ident. same ident ident' ->
56- Some description.Types. ext_loc
57- | Env. Env_value (summary, _, _)
58- | Env. Env_type (summary, _, _)
59- | Env. Env_extension (summary, _, _)
60- | Env. Env_module (summary, _, _, _)
61- | Env. Env_modtype (summary, _, _)
62- | Env. Env_class (summary, _, _)
63- | Env. Env_cltype (summary, _, _)
64- | Env. Env_open (summary, _)
65- | Env. Env_functor_arg (summary, _)
66- | Env. Env_constraints (summary, _)
67- | ((Env. Env_copy_types (summary, _)) [@ if ocaml_version < (4 , 10 , 0 )])
68- | ((Env. Env_copy_types summary) [@ if ocaml_version > = (4 , 10 , 0 )])
69- | Env. Env_persistent (summary, _)
70- | ((Env. Env_value_unbound (summary, _, _)) [@ if ocaml_version > = (4 , 10 , 0 )])
71- | ((Env. Env_module_unbound (summary , _ , _ )) [@if ocaml_version >= (4 , 10 , 0 )]) ->
72- find_loc_in_summary ident' summary
73-
7449module Symtable = struct
7550 (* Copied from ocaml/bytecomp/symtable.ml *)
7651 module Num_tbl (M : Map.S ) = struct
0 commit comments