Module Merlin_analysis.Stack_or_heap_enclosing

Provides information about where allocations around the cursor are placed (the stack or the heap).

The information comes only from the Mode.Alloc.t contained in enclosing AST nodes.

val log_section : string
type stack_or_heap =
  1. | Alloc_mode of Ocaml_typing.Mode.Alloc.r
  2. | No_alloc of {
    1. reason : string;
    }
  3. | Unexpected_no_alloc
type stack_or_heap_enclosings = (Ocaml_parsing.Location.t * stack_or_heap) list