aboutsummaryrefslogtreecommitdiff
path: root/kernel/context.mli
diff options
context:
space:
mode:
authorMatej Kosik2016-08-24 15:35:24 +0200
committerMatej Kosik2016-08-24 15:35:24 +0200
commit0591a05a40793e51604a3e9a68b4352099bd5333 (patch)
tree9eda2fdf512f31b369952df46c769d5210bbf710 /kernel/context.mli
parent73827588102ddffc515f32eb23b0124563109df3 (diff)
parent50f864e52d952ae59050d2bac1c05788b6393f18 (diff)
Merging a branch that adds "Context.Named.Declaration.to_rel" function.
Diffstat (limited to 'kernel/context.mli')
-rw-r--r--kernel/context.mli7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/context.mli b/kernel/context.mli
index b8a7bf6a34..7c652ac5c2 100644
--- a/kernel/context.mli
+++ b/kernel/context.mli
@@ -197,8 +197,13 @@ sig
val to_tuple : t -> Id.t * Constr.t option * Constr.t
val of_tuple : Id.t * Constr.t option * Constr.t -> t
- (** Convert [Rel.Declaration.t] value to the corresponding [Named.Declaration.t] value. *)
+ (** Convert [Rel.Declaration.t] value to the corresponding [Named.Declaration.t] value.
+ The function provided as the first parameter determines how to translate "names" to "ids". *)
val of_rel : (Name.t -> Id.t) -> Rel.Declaration.t -> t
+
+ (** Convert [Named.Declaration.t] value to the corresponding [Rel.Declaration.t] value. *)
+ (* TODO: Move this function to [Rel.Declaration] module and rename it to [of_named]. *)
+ val to_rel : t -> Rel.Declaration.t
end
(** Rel-context is represented as a list of declarations.