package merlin-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Merlin's libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
merlin-5.8.1-505.tbz
sha256=b8fb32bc0fc092af2fd6bdc831cb966057f2e3fd7b99a172b705e96ba8082583
sha512=01ca96f8167d062ba24036e43f650ff958fb157d44867bd52eb7999b7d19bf9fc97cdcd46c04b6979f0e1149d5041047723eed5913b03c4404d7acb116183bee
doc/merlin-lib.analysis/Merlin_analysis/Misc_utils/Path/index.html
Module Misc_utils.PathSource
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.tto_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)"
>