package merlin-lib
Merlin's libraries
Install
Dune Dependency
Authors
Maintainers
Sources
merlin-4.16-501.tbz
sha256=da5bf309b040645c292ae4572cc6a0a700dbd2bcfc996ac13c8e5c3836c21e26
sha512=99eba17b2bdec5411d239093f4e8e11ada79b2b84ae88074a1b46e47eb836bbf8cb7836c472c22e7f9e68cff1b9ea6d9b9989b70055c3277edb4cddc4a86460c
doc/merlin-lib.analysis/Merlin_analysis/Misc_utils/Path/index.html
Module Misc_utils.Path
Source
Source
val to_shortest_lid :
env:Ocaml_typing.Env.t ->
?name:string ->
env_check:(Ocaml_parsing.Longident.t -> Ocaml_typing.Env.t -> 'a) ->
Ocaml_typing.Path.t ->
Ocaml_parsing.Longident.t
to_shortest_lid ~env ~env_check path
will make a Longident.t
from the provided Path.t
and attempt to use the shortest prefix possible given the currently opened modules. The result is checked by looking it up in the environment using the env_check : Longident.t -> Env.t -> 'a
function.
The check is needed because shadowing can cause subtle issues. A typical check function would be Env.find_constructor_by_name
. WHen the check fails the function will return Untypeast.lident_of_path path
instead of clever prefix-less constructions.
Optionally a name
can be provided that will be used as the last ident of the path.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>