diff options
author | Maxence Guesdon <maxence.guesdon@inria.fr> | 2001-10-01 14:09:52 +0000 |
---|---|---|
committer | Maxence Guesdon <maxence.guesdon@inria.fr> | 2001-10-01 14:09:52 +0000 |
commit | 6cadb65dba4cb171dd33c7a02428d356888700d2 (patch) | |
tree | bd6427fecbb288f585634868802040415ee882d0 | |
parent | 15ad21a38bb5d2c00573ad4475de5a6f70eb5052 (diff) |
Ajout d'une fonction type_cheme_max utilisée pour ocamldoc. Elle est susceptible d'etre modifiée selon les besoins d'ocamldoc. Elle est identique à type_scheme à ceci près qu'elle ne fait pas de reset_names.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3818 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | typing/printtyp.ml | 6 | ||||
-rw-r--r-- | typing/printtyp.mli | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/typing/printtyp.ml b/typing/printtyp.ml index c2bf66cc2..b9b1026db 100644 --- a/typing/printtyp.ml +++ b/typing/printtyp.ml @@ -436,6 +436,12 @@ and type_sch ppf ty = typexp true 0 ppf ty and type_scheme ppf ty = reset_and_mark_loops ty; typexp true 0 ppf ty +(* Maxence *) +let type_scheme_max ?(b_reset_names=true) ppf ty = + if b_reset_names then reset_names () ; + typexp true 0 ppf ty +(* Fin Maxence *) + let tree_of_type_scheme ty = reset_and_mark_loops ty; tree_of_typexp true ty (* Print modules types and signatures *) diff --git a/typing/printtyp.mli b/typing/printtyp.mli index 53b26b138..ab6e9e1c9 100644 --- a/typing/printtyp.mli +++ b/typing/printtyp.mli @@ -29,6 +29,10 @@ val reset_and_mark_loops_list: type_expr list -> unit val type_expr: formatter -> type_expr -> unit val tree_of_type_scheme: type_expr -> out_type val type_scheme: formatter -> type_expr -> unit +(* Maxence *) +val type_scheme_max: ?b_reset_names: bool -> + formatter -> type_expr -> unit +(* Fin Maxence *) val tree_of_value_description: Ident.t -> value_description -> out_sig_item val value_description: Ident.t -> formatter -> value_description -> unit val tree_of_type_declaration: Ident.t -> type_declaration -> out_sig_item |