Module Merlin_analysis.Browse_treeSource

Sourcetype t = {
  1. t_node : Merlin_kernel.Mbrowse.node;
  2. t_loc : Ocaml_parsing.Location.t;
  3. t_env : Ocaml_typing.Env.t;
  4. t_children : t list lazy_t;
}
Sourceval default_env : Ocaml_typing.Env.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.

Sourceval of_browse : Merlin_kernel.Mbrowse.t -> t
Sourceval dummy : t
Sourceval 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