summaryrefslogtreecommitdiffstats
path: root/typing/printtyp.ml
diff options
context:
space:
mode:
authorMaxence Guesdon <maxence.guesdon@inria.fr>2001-10-01 14:09:52 +0000
committerMaxence Guesdon <maxence.guesdon@inria.fr>2001-10-01 14:09:52 +0000
commit6cadb65dba4cb171dd33c7a02428d356888700d2 (patch)
treebd6427fecbb288f585634868802040415ee882d0 /typing/printtyp.ml
parent15ad21a38bb5d2c00573ad4475de5a6f70eb5052 (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
Diffstat (limited to 'typing/printtyp.ml')
-rw-r--r--typing/printtyp.ml6
1 files changed, 6 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 *)