Skip to main content

Module inlay_hints

Module inlay_hints 

Source

Structs§

ConstructorInfo
Build the hint index for all files from the AST sources. Pre-computed constructor info for new ContractName(args) resolution. Maps contract declaration ID → (constructor declaration ID, contract name, param names).
HintLookup
Both lookup strategies: exact byte-offset match and (name, arg_count) fallback. Built once per file when the AST is cached, reused on every inlay hint request.
ResolvedCallSite
Resolved callsite info returned to hover for param doc lookup.
TsCallContext
Result of finding the enclosing call site at a byte position via tree-sitter.

Functions§

build_constructor_index
Build the constructor index from the decl_index.
build_hint_index
Called once in CachedBuild::new().
inlay_hints
Generate inlay hints for a given range of source.
ts_find_call_at_byte
Find the enclosing call_expression or emit_statement for a given byte position in the live buffer using tree-sitter.
ts_find_call_for_signature
Find the enclosing call for signature help at a byte position.
ts_parse
Parse Solidity source with tree-sitter.

Type Aliases§

ConstructorIndex
Index of contract ID → constructor info, built from the typed decl_index.
HintIndex
Pre-computed hint lookups for all files, keyed by absolutePath. Built once in CachedBuild::new(), reused on every inlay hint request.