package merlin-lib
Merlin's libraries
Install
Dune Dependency
Authors
Maintainers
Sources
merlin-4.17.1-501.tbz
sha256=376707aa871f09e9639456d3fbe4b89a21c9ad75c774e94cbbbe67f842b0a500
sha512=a11ea4b8e3520b3ee41ae8198cda34b2816b8dfcdcb99350ef29689a7d62bb66d17ffa075c551aa56d521120b55e6db14a106a31f7b3970ed2aa07e1db3c9b88
doc/merlin-lib.analysis/Merlin_analysis/Context/index.html
Module Merlin_analysis.Context
Source
Source
type t =
| Constructor of Ocaml_typing.Types.constructor_description * Ocaml_parsing.Location.t
| Expr
| Label of Ocaml_typing.Types.label_description
| Module_path
| Module_type
| Patt
| Type
| Constant
| Unknown
Source
val inspect_browse_tree :
cursor:Merlin_utils.Std.Lexing.position ->
Ocaml_parsing.Longident.t ->
Merlin_kernel.Mbrowse.t list ->
t option
inspect_browse_tree lid ~cursor mbrowse
tries to provide contextual information given the selected identifier, the position of the cursor and the typed tree. It is used by Locate and Type_enclosing.
The cursor position is used to distinguished whether a module path or an actual constructor name is pointed at when the cursor is in the middle of a longident, e.g. Foo.B|ar.Constructor
(with | being the cursor).
FIXME: when cursor at (M.|A 3), the enclosing node returned is const 3, thus breaking the context inference.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>