mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Inlay hints use callables
This commit is contained in:
parent
edc0190f7a
commit
a5ae8b8b92
3 changed files with 35 additions and 140 deletions
|
@ -1552,6 +1552,9 @@ impl Callable {
|
|||
let param_list = src.value.param_list()?;
|
||||
param_list.self_param()
|
||||
}
|
||||
pub fn n_params(&self) -> usize {
|
||||
self.sig.params().len()
|
||||
}
|
||||
pub fn params(
|
||||
&self,
|
||||
db: &dyn HirDatabase,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue