package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 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;
}
val default_loc : Ocaml_parsing.Location.t
val 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.

val of_browse : Merlin_kernel.Mbrowse.t -> t
val dummy : t
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 ]) -> t -> t Ocaml_parsing.Location.loc list
OCaml

Innovation. Community. Security.