From 1ed7fbfc1badd2c2a42b4dc2feb1b4bf7835d3ef Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 12 Jan 2019 21:58:16 +0100 Subject: args -> params --- crates/ra_hir/src/code_model_impl/function.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crates/ra_hir/src/code_model_impl/function.rs') diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs index 77dddff79..8d6b7fc19 100644 --- a/crates/ra_hir/src/code_model_impl/function.rs +++ b/crates/ra_hir/src/code_model_impl/function.rs @@ -42,8 +42,8 @@ impl FnSignature { .name() .map(|n| n.as_name()) .unwrap_or_else(Name::missing); - let mut args = Vec::new(); - let mut has_self_arg = false; + let mut params = Vec::new(); + let mut has_self_param = false; if let Some(param_list) = node.param_list() { if let Some(self_param) = param_list.self_param() { let self_type = if let Some(type_ref) = self_param.type_ref() { @@ -60,12 +60,12 @@ impl FnSignature { } } }; - args.push(self_type); - has_self_arg = true; + params.push(self_type); + has_self_param = true; } for param in param_list.params() { let type_ref = TypeRef::from_ast_opt(param.type_ref()); - args.push(type_ref); + params.push(type_ref); } } let ret_type = if let Some(type_ref) = node.ret_type().and_then(|rt| rt.type_ref()) { @@ -75,9 +75,9 @@ impl FnSignature { }; let sig = FnSignature { name, - args, + params, ret_type, - has_self_arg, + has_self_param, }; Arc::new(sig) } -- cgit v1.2.3