From cff24d313545efba6bd14116b83bd3fa0b7f44ff Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 19 Nov 2003 14:31:51 +0000 Subject: Distinction entre 'as _' qui cache le terme filtre (si variable) et rien dans case_item git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4949 85f007b7-540e-0410-9357-904b9bb8a0f7 --- translate/ppconstrnew.ml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'translate') diff --git a/translate/ppconstrnew.ml b/translate/ppconstrnew.ml index af8fb845de..8104399c0b 100644 --- a/translate/ppconstrnew.ml +++ b/translate/ppconstrnew.ml @@ -351,12 +351,17 @@ let tm_clash = function let pr_case_item pr (tm,(na,indnalopt)) = hov 0 (pr (lcast,E) tm ++ +(* (match na with | Name id when not (is_var id tm) -> spc () ++ str "as " ++ pr_id id | Anonymous when tm_clash (tm,indnalopt) <> None -> (* hide [tm] name to avoid conflicts *) spc () ++ str "as _" (* ++ pr_id (out_some (tm_clash (tm,indnalopt)))*) | _ -> mt ()) ++ +*) + (match na with (* Decision of printing "_" or not moved to constrextern.ml *) + | Some na -> spc () ++ str "as " ++ pr_name na + | None -> mt ()) ++ (match indnalopt with | None -> mt () (* -- cgit v1.2.3