X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Finterface%2FcicAnnotationHinter.ml;fp=helm%2Finterface%2FcicAnnotationHinter.ml;h=88d4eb49c6d665f39cdee629328f7f4ed468c157;hb=b276e71d04d5bc981b710b2ba793ccf157c256d7;hp=21f30a722b74b163652702f8ee0a2aa34afb85b5;hpb=ed48e54d2bd1a483edb14fad9f4dcefe4f9076f6;p=helm.git diff --git a/helm/interface/cicAnnotationHinter.ml b/helm/interface/cicAnnotationHinter.ml index 21f30a722..88d4eb49c 100644 --- a/helm/interface/cicAnnotationHinter.ml +++ b/helm/interface/cicAnnotationHinter.ml @@ -75,6 +75,7 @@ let get_id annterm = | C.ACast (id,_,_,_) -> id | C.AProd (id,_,_,_,_) -> id | C.ALambda (id,_,_,_,_) -> id + | C.ALetIn (id,_,_,_,_) -> id | C.AAppl (id,_,_) -> id | C.AConst (id,_,_,_) -> id | C.AAbst (id,_,_) -> id @@ -127,6 +128,15 @@ let create_hint_from_term annotation_window annterm = "Body", "" ; "Type", "" |] + | C.ALetIn (id,_,_,ty,bo) -> + let boid = get_id bo + and tyid = get_id ty in + link_hints annotation_window + [| "Binder", + "" ; + "Term", "" ; + "Target", "" + |] | C.AAppl (id,_,args) -> let argsid = Array.mapi @@ -248,12 +258,21 @@ let create_hint_from_obj annotation_window annobj = "Ingredients", "" ; "Type", "" |] - | C.AVariable (id,_,_,ty) -> + | C.AVariable (id,_,_,bo,ty) -> let tyid = get_id ty in link_hints annotation_window - [| "Name", "" ; - "Type", "" - |] + (match bo with + None -> + [| "Name", "" ; + "Type", "" + |] + | Some bo -> + let boid = get_id bo in + [| "Name", "" ; + "Body", "" ; + "Type", "" + |] + ) | C.ACurrentProof (id,_,_,conjs,bo,ty) -> let boid = get_id bo and tyid = get_id ty