pub fn parameter_hints(
ast: &Node,
to_pos16: &impl Fn(usize) -> (u32, u32),
range: Option<WireRange>,
) -> Vec<Value>Expand description
Generates inlay hints for function and method parameters.
This function traverses the AST and identifies function calls, adding inlay
hints for parameter names based on the builtin signatures database from the
perl-builtins crate. Any builtin with a known signature will produce
parameter name hints for its arguments.
§Arguments
ast- The root node of the AST to traverse.to_pos16- A function that converts a byte offset to a (line, character) tuple.range- An optional range to filter the inlay hints.
§Returns
A vector of serde_json::Value objects, each representing an inlay hint.