Merlin_analysis.Browse_tree
Sourcetype t = {
t_node : Merlin_kernel.Mbrowse.node;
t_loc : Ocaml_parsing.Location.t;
t_env : Ocaml_typing.Env.t;
t_children : t list lazy_t;
}
of_node ?loc ?env node
produces a tree from node
, using loc
and env
* as default annotation when nothing can be inferred from the node
. * If they are not specified, annotations from child are used for approximation.
val all_occurrences :
Ocaml_typing.Path.t ->
t ->
(t * Ocaml_typing.Path.t Ocaml_parsing.Location.loc list) list
val all_constructor_occurrences :
(t
* [ `Description of Ocaml_typing.Types.constructor_description
| `Declaration of Ocaml_typing.Typedtree.constructor_declaration
| `Extension_constructor of Ocaml_typing.Typedtree.extension_constructor ]) ->
t ->
t Ocaml_parsing.Location.loc list
val all_occurrences_of_prefix :
Ocaml_typing.Path.t ->
Merlin_specific.Browse_raw.node ->
(Ocaml_typing.Path.t Ocaml_parsing.Location.loc * Ocaml_parsing.Longident.t)
list