diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/nametab.ml | 2 | ||||
-rwxr-xr-x | library/nametab.mli | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/library/nametab.ml b/library/nametab.ml index 0172048af..3fa22aae3 100644 --- a/library/nametab.ml +++ b/library/nametab.ml @@ -470,6 +470,8 @@ let path_of_syndef kn = let dirpath_of_module mp = MPmap.find mp !the_modrevtab +let path_of_tactic kn = + KNmap.find kn !the_tacticrevtab (* Shortest qualid functions **********************************************) diff --git a/library/nametab.mli b/library/nametab.mli index aaef53e4a..2f81ff50e 100755 --- a/library/nametab.mli +++ b/library/nametab.mli @@ -143,6 +143,7 @@ val full_name_module : qualid -> dir_path val path_of_syndef : syndef_name -> full_path val path_of_global : global_reference -> full_path val dirpath_of_module : module_path -> dir_path +val path_of_tactic : ltac_constant -> full_path (** Returns in particular the dirpath or the basename of the full path associated to global reference *) |