2018-11-23 15:06:26 -08:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Gabriel Scherer, projet Parsifal, INRIA Saclay *)
|
|
|
|
(* Rodolphe Lepigre, projet Deducteam, INRIA Saclay *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2018 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. This file is distributed under the terms of *)
|
|
|
|
(* the GNU Lesser General Public License version 2.1, with the *)
|
|
|
|
(* special exception on linking described in the file LICENSE. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2019-03-12 01:11:27 -07:00
|
|
|
type error = Bad_immediacy_attribute of Type_immediacy.Violation.t
|
2018-11-20 07:28:15 -08:00
|
|
|
exception Error of Location.t * error
|
|
|
|
|
2019-03-12 01:11:27 -07:00
|
|
|
val compute_decl : Env.t -> Types.type_declaration -> Type_immediacy.t
|
2018-11-20 07:28:15 -08:00
|
|
|
|
2019-03-12 01:11:27 -07:00
|
|
|
val property : (Type_immediacy.t, unit) Typedecl_properties.property
|
2018-11-20 07:28:15 -08:00
|
|
|
|
|
|
|
val update_decls :
|
|
|
|
Env.t ->
|
|
|
|
(Ident.t * Typedecl_properties.decl) list ->
|
|
|
|
(Ident.t * Typedecl_properties.decl) list
|