summaryrefslogtreecommitdiff
path: root/ocamldoc
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2013-04-16 10:47:45 +0000
committerAlain Frisch <alain@frisch.fr>2013-04-16 10:47:45 +0000
commit3fe10139ab0d1fa550a58d188f8c36d3533f2b1e (patch)
tree7e75057b2aca30abd55f280a4afc698fe9329168 /ocamldoc
parent4f758291bc696f6a7b6024eed4b9305ada6e7846 (diff)
downloadocaml-3fe10139ab0d1fa550a58d188f8c36d3533f2b1e.tar.gz
Better representation of with-constraints.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc')
-rw-r--r--ocamldoc/odoc_sig.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/ocamldoc/odoc_sig.ml b/ocamldoc/odoc_sig.ml
index c8a4e4aed9..693aecbc47 100644
--- a/ocamldoc/odoc_sig.ml
+++ b/ocamldoc/odoc_sig.ml
@@ -257,11 +257,12 @@ module Analyser =
Odoc_type.Type_record (List.map f l)
let erased_names_of_constraints constraints acc =
- List.fold_right (fun (longident, constraint_) acc ->
+ List.fold_right (fun constraint_ acc ->
match constraint_ with
| Parsetree.Pwith_type _ | Parsetree.Pwith_module _ -> acc
- | Parsetree.Pwith_typesubst _ | Parsetree.Pwith_modsubst _ ->
- Name.Set.add (Name.from_longident longident.txt) acc)
+ | Parsetree.Pwith_typesubst {Parsetree.ptype_name=s}
+ | Parsetree.Pwith_modsubst (s, _) ->
+ Name.Set.add s.txt acc)
constraints acc
let filter_out_erased_items_from_signature erased signature =