diff options
| author | Pierre-Marie Pédrot | 2017-08-04 15:48:07 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-08-04 15:51:03 +0200 |
| commit | 2e01ea9e1ab0f9e8d90dd4e4ac598bc1691b9272 (patch) | |
| tree | 73edd9be901385c861cf004876fb862adf771496 /src/tac2quote.ml | |
| parent | fce4a1a9cbb57a636155181898ae4ecece5af59d (diff) | |
More precise type for quoted structures.
Diffstat (limited to 'src/tac2quote.ml')
| -rw-r--r-- | src/tac2quote.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tac2quote.ml b/src/tac2quote.ml index 9858f611fe..a053bd799f 100644 --- a/src/tac2quote.ml +++ b/src/tac2quote.ml @@ -98,9 +98,11 @@ let of_bindings ?loc = function | QNoBindings -> std_constructor ?loc "NoBindings" [] | QImplicitBindings tl -> + let tl = List.map (fun c -> of_open_constr ?loc c) tl in std_constructor ?loc "ImplicitBindings" [of_list ?loc tl] | QExplicitBindings tl -> - let tl = List.map (fun (loc, (qhyp, e)) -> of_pair ?loc (of_anti ?loc of_qhyp qhyp, e)) tl in + let map (loc, (qhyp, e)) = of_pair ?loc (of_anti ?loc of_qhyp qhyp, of_open_constr ?loc e) in + let tl = List.map map tl in std_constructor ?loc "ExplicitBindings" [of_list ?loc tl] let rec of_intro_pattern ?loc = function @@ -174,7 +176,7 @@ let of_clause ?loc cl = let of_destruction_arg ?loc = function | QElimOnConstr (c, bnd) -> - let c = of_constr ?loc c in + let c = of_open_constr ?loc c in let bnd = of_bindings ?loc bnd in let arg = thunk (of_pair ?loc (c, bnd)) in std_constructor ?loc "ElimOnConstr" [arg] |
