X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Finterface%2FcicAnnotationHinter.ml;h=88d4eb49c6d665f39cdee629328f7f4ed468c157;hb=2cf66cdc91daeded898c9d5b79dd5c2a32f5b52b;hp=21f30a722b74b163652702f8ee0a2aa34afb85b5;hpb=c01d2aaea05f7385bee46addd900cd0397756389;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