Skip to main content

Module boundary_context

Module boundary_context 

Source
Expand description

The sticky-context boundary conversions (treesitter-context.md, TC.2).

Mirrors lattice_cells::context::ContextScope — the structural scopes a context provider produces. Two directions:

  • ContextScope crosses guest→host (the producer’s return): a WitBoundary round-trip. Four u32s per scope and nothing else, which is the point — a whole file’s structure is a few tens of kB, and the tree itself never crosses.
  • context-request crosses host→guest (one-way, the project_decoration_context precedent). The host has the buffer metadata off the render path when it triggers the producer; the parse tree rides a call-scoped borrow<tree-snapshot> alongside, not this record.

Functions§

project_context_request
Build the owned context-request the host hands a producer (host→guest, one-way).