package rocq-runtime
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a45280ab4fbaac7540b136a6b073b4a6db15739ec1e149bded43fa6f4fc25f20
doc/rocq-runtime.library/Nametab/Easy/index.html
Module Nametab.EasySource
Generate a nametab with simple warning support (UserWarn.create_depr_and_user_warnings_qf).
NAMETAB extended with warnings associated to some of the elements.
Parameters
module M : sig ... endSignature
include NAMETAB with type elt = M.t
Remove an element.
val shortest_qualid_gen :
?loc:Loc.t ->
?force_short:bool ->
(Names.Id.t -> bool) ->
elt ->
Libnames.qualidshortest_qualid_gen avoid v: given an object v with full name Mylib.A.B.x, try to find the shortest among x, B.x, A.B.x and Mylib.A.B.x that denotes the same object. If avoid is true on x it is assumed to denote something else (so B.x is the shortest qualid that could be returned). If ~force_short:true is passed, always returns the shortest qualid. Otherwise, respects the "Printing Fully Qualified" flag.
val shortest_qualid :
?loc:Loc.t ->
?force_short:bool ->
Names.Id.Set.t ->
elt ->
Libnames.qualidLike shortest_qualid_gen but using an id set instead of a closure.
Find elements which are limit different from the input (dots are treated rigidly).
Locate all elements with a given suffix. If the qualid is a valid absolute name, that element is first in the list.
Return the elements that have the qualid as a prefix. UIs will usually compose with shortest_qualid. Experimental APIs, please tell us if you use it.
Return the absolute name for the given element.
Return an element bound to an absolute path.
Returns whether this absolute path is taken.
When visibility is Until, wdata may be Some _ in which case the warning data is associated to the element.
Return the warning data associated to the element.
Emit the given warning data for the given element (if the warning is not disabled).
Unless nowarn:false is given, if the found element is associated to a warning, that warning is emitted.