Merlin_analysis.Stack_or_heap_enclosingProvides 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.
Texp_let _ expressions) are skippedAlloc_mode _Mode.Alloc.t option field that is None because the corresponding expression doesn't allocate for a known reason (for example, a Texp_record corresponding to an unboxed record) return that reason in No_alloc _Mode.Alloc.t option field that is None without a known reason (usually because they didn't typecheck) return Unexpected_no_alloctype stack_or_heap_enclosings = (Ocaml_parsing.Location.t * stack_or_heap) listval from_nodes :
lsp_compat:bool ->
pos:Lexing.position ->
path:
(Ocaml_typing.Env.t
* Merlin_specific.Browse_raw.node
* Query_protocol.is_tail_position)
list ->
stack_or_heap_enclosings