Skip to main content

Module inlay_hints

Module inlay_hints 

Source
Expand description

v0.27 (ADR 0056): pure inlayHint computation — inferred-type hints from a cached analysis round’s harvested hint set.

The hints arrive pre-curated from bynkc (annotation-absent let / let <- bindings and lambda parameters, labels pre-rendered via Ty::display()); this module only filters to the requested visible range and converts positions against the analysed snapshot (the v0.24 rule). v0.39 (ADR 0072): the harvested set now carries a HintKindType hints anchor at the span’s end (the label’s leading : / [ reads as source: x: Int, identity[Int], no padding); Parameter hints anchor at the argument span’s start with trailing padding, so the label reads count: 5.

Functions§

given_hints
v0.99 (DECISION E): the materializable ghost given inlay hints for a file.
inlay_hints
The hints whose anchor falls inside the requested range. text is the analysed snapshot the spans are offsets into; hints is one file’s harvested Hint set.