From e56e1390019dae3aac253dd87a9ce43884aa65b7 Mon Sep 17 00:00:00 2001 From: Virgile Prevosto <virgile.prevosto@m4x.org> Date: Thu, 21 Apr 2022 08:36:57 +0200 Subject: [PATCH] [devguide] fix ocamldoc information extraction when checking coherence with API More specifically, preserve the underlying type name when analyzing type constructors. Otherwise, correspondance with LaTeX index is lost. --- doc/developer/check_api/check_code.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/developer/check_api/check_code.ml b/doc/developer/check_api/check_code.ml index af97a61a127..2a7c7f719e3 100644 --- a/doc/developer/check_api/check_code.ml +++ b/doc/developer/check_api/check_code.ml @@ -251,6 +251,7 @@ module Generator (G : Odoc_html.Html_generator) = struct | Type.Type_variant l -> let print_one constr = last_type <- last_type ^ " | " ^ constr.Type.vc_name ; + last_name <- t.Type.ty_name; (match constr.Type.vc_args with | Odoc_type.Cstr_tuple [] -> () | Odoc_type.Cstr_tuple l -> -- GitLab