From aa06893a1493770f8009d098a5340f1a9ba13dec Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Sat, 26 Jan 2019 00:30:56 +0100 Subject: Add type params to FnSignature --- crates/ra_hir/src/code_model_impl/function.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_hir/src/code_model_impl') diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs index b4aa18540..f4beab6ae 100644 --- a/crates/ra_hir/src/code_model_impl/function.rs +++ b/crates/ra_hir/src/code_model_impl/function.rs @@ -58,6 +58,7 @@ impl FnSignature { args.push(type_ref); } } + let type_params = db.generic_params(func.into()); let ret_type = if let Some(type_ref) = node.ret_type().and_then(|rt| rt.type_ref()) { TypeRef::from_ast(type_ref) } else { @@ -66,6 +67,7 @@ impl FnSignature { let sig = FnSignature { name, + type_params, args, ret_type, has_self_param, -- cgit v1.2.3