diff options
| author | Pierre-Marie Pédrot | 2017-07-11 21:51:23 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-07-13 15:14:45 +0200 |
| commit | 9938aed874d3e15e5d21689ea841bdc3e6ebb40e (patch) | |
| tree | f3c08864d8e26e29350d541904412cc07da79abf /API/API.mli | |
| parent | 001c95411b6674423886a085d8f624ea031a9ebc (diff) | |
Safer API for Global.body_of_constant and variants.
We aditionally return the abstract universe context inside the option. This
is relatively painless as most uses were using the option as a boolean.
Diffstat (limited to 'API/API.mli')
| -rw-r--r-- | API/API.mli | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/API/API.mli b/API/API.mli index a661b34c5b..48fd3a682f 100644 --- a/API/API.mli +++ b/API/API.mli @@ -2716,8 +2716,8 @@ sig val type_of_global_unsafe : Globnames.global_reference -> Term.types val current_dirpath : unit -> Names.DirPath.t - val body_of_constant_body : Declarations.constant_body -> Term.constr option - val body_of_constant : Names.Constant.t -> Term.constr option + val body_of_constant_body : Declarations.constant_body -> (Term.constr * Univ.AUContext.t) option + val body_of_constant : Names.Constant.t -> (Term.constr * Univ.AUContext.t) option val add_constraints : Univ.Constraint.t -> unit end |
