jon.recoil.org

Module Merlin_kernel.Mbrowse

module Let_pun_behavior : sig ... end

The deepest context inside or before the node, for instance, navigating * through: * foo bar (baz :: tail) <cursor> * asking for node from cursor position will return context of "tail". * Returns the matching node and all its ancestors or the empty list.

let_pun_behavior dictates whether to prefer the expression or pattern node in a punned let expression. The default is Prefer_pattern

let_pun_behavior dictates whether to prefer the expression or pattern node in a punned let expression. The default is Prefer_pattern

val of_typedtree : [ `Implementation of Ocaml_typing.Typedtree.structure | `Interface of Ocaml_typing.Typedtree.signature ] -> Merlin_kernel.Mbrowse.t
val is_recovered_expression : Ocaml_typing.Typedtree.expression -> bool

Identify nodes introduced by recovery

val is_recovered : Merlin_specific.Browse_raw.node -> bool

When an optional argument is applied with labelled syntax sugar (~a:v instead of ?a:(Some v)), the frontend will have wrapped it in Some _. optional_label_sugar exp returns Some exp' with the sugar removed in that case.

Dump

val print_node : unit -> Merlin_kernel.Mbrowse.node -> string
val print : unit -> Merlin_kernel.Mbrowse.t -> string