Expand description
Implementation of “param name” inlay hints:
fn max(x: i32, y: i32) -> i32 { x + y }
_ = max(/*x*/4, /*y*/4);Constants§
Functions§
- get_
callable 🔒 - get_
segment_ 🔒representation - hints 🔒
- is_
adt_ 🔒constructor_ similar_ to_ param_ name - is_
argument_ 🔒expr_ similar_ to_ param_ name - is_
argument_ 🔒similar_ to_ param_ name - Check whether param_name and argument are the same or
whether param_name is a prefix/suffix of argument(split at
_). - is_
obvious_ 🔒param - is_
param_ 🔒name_ suffix_ of_ fn_ name - Hide the parameter name of a unary function if it is a
_- prefixed suffix of the function’s name, or equal. - missing_
arg_ 🔒hint_ position - Determines the position where the hint for a missing argument should be placed. Returns the range of the token where the hint should appear.
- should_
hide_ 🔒missing_ param_ hint - Determines whether to hide the parameter hint for a missing argument.
This is a simplified version of
should_hide_param_name_hintthat doesn’t require an actual argument expression. - should_
hide_ 🔒param_ name_ hint