aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-16 21:18:28 +0100
committerGitHub <[email protected]>2020-07-16 21:18:28 +0100
commit81c82733899691fec7ed046525a5c583d3c7d5be (patch)
tree74f7814de8380f97c645afbfe3dad7d924785fcb /crates/ra_hir/src
parent4759a39f06be1ec1469101a8aac39039b8743806 (diff)
parent3823c2dc1995ec261e36435662b8802c714e23d4 (diff)
Merge #5415
5415: Remove FunctionSignature r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/code_model.rs3
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,