aboutsummaryrefslogtreecommitdiff
path: root/library/libnames.mli
diff options
context:
space:
mode:
authorMaxime Dénès2017-11-30 16:17:00 +0100
committerMaxime Dénès2017-11-30 16:17:00 +0100
commitc5f6ee866bef4ff924693302ea98fec2b4742b9b (patch)
tree66e728c5cf1fa3e59b1a48043e99a9995f7a1e2e /library/libnames.mli
parent0bb126dae41b410fdf4f6531024c64cac20dac06 (diff)
parentc408e819ce39b27f0842c84b1b24c585ac5b6086 (diff)
Merge PR #6244: [lib] [api] Introduce record for `object_prefix`
Diffstat (limited to 'library/libnames.mli')
-rw-r--r--library/libnames.mli20
1 files changed, 19 insertions, 1 deletions
diff --git a/library/libnames.mli b/library/libnames.mli
index ed01163ee7..71f5422404 100644
--- a/library/libnames.mli
+++ b/library/libnames.mli
@@ -94,7 +94,25 @@ val qualid_of_ident : Id.t -> qualid
type object_name = full_path * KerName.t
-type object_prefix = DirPath.t * (ModPath.t * DirPath.t)
+(** Object prefix morally contains the "prefix" naming of an object to
+ be stored by [library], where [obj_dir] is the "absolute" path,
+ [obj_mp] is the current "module" prefix and [obj_sec] is the
+ "section" prefix.
+
+ Thus, for an object living inside [Module A. Section B.] the
+ prefix would be:
+
+ [ { obj_dir = "A.B"; obj_mp = "A"; obj_sec = "B" } ]
+
+ Note that both [obj_dir] and [obj_sec] are "paths" that is to say,
+ as opposed to [obj_mp] which is a single module name.
+
+ *)
+type object_prefix = {
+ obj_dir : DirPath.t;
+ obj_mp : ModPath.t;
+ obj_sec : DirPath.t;
+}
val eq_op : object_prefix -> object_prefix -> bool