summaryrefslogtreecommitdiffstats
path: root/ocamldoc/odoc_texi.ml
diff options
context:
space:
mode:
authorMaxence Guesdon <maxence.guesdon@inria.fr>2009-12-18 11:52:23 +0000
committerMaxence Guesdon <maxence.guesdon@inria.fr>2009-12-18 11:52:23 +0000
commite904577b6b0e68911c9169eb7c1629f6f3b9534c (patch)
treefb7538d389604e899974c0d4b2004d09a76fa7d5 /ocamldoc/odoc_texi.ml
parent758e4cd86078a89af5790872f9704c5ea019b4e7 (diff)
PR#4914: ability to specify a text for links to elements
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_texi.ml')
-rw-r--r--ocamldoc/odoc_texi.ml16
1 files changed, 8 insertions, 8 deletions
diff --git a/ocamldoc/odoc_texi.ml b/ocamldoc/odoc_texi.ml
index ec7d50c70..1e65ddd8d 100644
--- a/ocamldoc/odoc_texi.ml
+++ b/ocamldoc/odoc_texi.ml
@@ -294,7 +294,7 @@ class text =
| Block t -> self#texi_of_Block t
| Title (n, _, t) -> self#texi_of_Title n t
| Link (s, t) -> self#texi_of_Link s t
- | Ref (name, kind) ->self#texi_of_Ref name kind
+ | Ref (name, kind, _) ->self#texi_of_Ref name kind
| Superscript t -> self#texi_of_Superscript t
| Subscript t -> self#texi_of_Subscript t
| Odoc_info.Module_list _ -> ""
@@ -716,7 +716,7 @@ class texi =
then " = " ^ (resolve_alias_name m)
else "" ) ] ] ;
( if is_alias_there m
- then [ Ref (resolve_alias_name m, Some RK_module) ;
+ then [ Ref (resolve_alias_name m, Some RK_module, None) ;
Newline ; ]
else [] ) ;
( if is_alias m
@@ -745,7 +745,7 @@ class texi =
then " = " ^ (resolve_alias_name mt)
else "" ) ] ] ;
( if is_alias_there mt
- then [ Ref (resolve_alias_name mt, Some RK_module_type) ;
+ then [ Ref (resolve_alias_name mt, Some RK_module_type, None) ;
Newline ; ]
else [] ) ;
( if is_alias mt
@@ -764,10 +764,10 @@ class texi =
[ Raw im.im_name ]
| Some (Mod { m_name = name }) ->
[ Raw name ; Raw "\n " ;
- Ref (name, Some RK_module) ]
+ Ref (name, Some RK_module, None) ]
| Some (Modtype { mt_name = name }) ->
[ Raw name ; Raw "\n " ;
- Ref (name, Some RK_module_type) ]
+ Ref (name, Some RK_module_type, None) ]
) @
[ Newline ] @
(self#text_of_info im.im_info)
@@ -782,7 +782,7 @@ class texi =
let t = [ self#fixedblock
[ Newline ; minus ; Raw "class " ;
Raw (Name.simple c.cl_name) ] ;
- Ref (c.cl_name, Some RK_class) ; Newline ;
+ Ref (c.cl_name, Some RK_class, None) ; Newline ;
Newline ] @ (self#text_of_info c.cl_info) in
self#texi_of_text t
@@ -792,7 +792,7 @@ class texi =
let t = [ self#fixedblock
[ Newline ; minus ; Raw "class type " ;
Raw (Name.simple ct.clt_name) ] ;
- Ref (ct.clt_name, Some RK_class_type) ; Newline ;
+ Ref (ct.clt_name, Some RK_class_type, None) ; Newline ;
Newline ] @ (self#text_of_info ct.clt_info) in
self#texi_of_text t
@@ -836,7 +836,7 @@ class texi =
| Cl _ -> Some RK_class
| Cltype _ -> Some RK_class_type in
(Code inh.ic_name) ::
- (Ref (inh.ic_name, kind)) ::
+ (Ref (inh.ic_name, kind, None)) ::
( match inh.ic_text with
| None -> []
| Some t -> Newline :: t)