diff options
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index eb6a14eda..0f6953158 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -1552,6 +1552,9 @@ impl Callable { | |||
1552 | let param_list = src.value.param_list()?; | 1552 | let param_list = src.value.param_list()?; |
1553 | param_list.self_param() | 1553 | param_list.self_param() |
1554 | } | 1554 | } |
1555 | pub fn n_params(&self) -> usize { | ||
1556 | self.sig.params().len() - if self.is_bound_method { 1 } else { 0 } | ||
1557 | } | ||
1555 | pub fn params( | 1558 | pub fn params( |
1556 | &self, | 1559 | &self, |
1557 | db: &dyn HirDatabase, | 1560 | db: &dyn HirDatabase, |