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_api.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crates/ra_hir/src/code_model_api.rs') diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 9c28b62af..91b235594 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs @@ -273,11 +273,11 @@ pub use crate::code_model_impl::function::ScopeEntryWithSyntax; #[derive(Debug, Clone, PartialEq, Eq)] pub struct FnSignature { pub(crate) name: Name, - pub(crate) args: Vec, + pub(crate) params: Vec, pub(crate) ret_type: TypeRef, - /// True if the first arg is `self`. This is relevant to decide whether this + /// True if the first param is `self`. This is relevant to decide whether this /// can be called as a method. - pub(crate) has_self_arg: bool, + pub(crate) has_self_param: bool, } impl FnSignature { @@ -285,8 +285,8 @@ impl FnSignature { &self.name } - pub fn args(&self) -> &[TypeRef] { - &self.args + pub fn params(&self) -> &[TypeRef] { + &self.params } pub fn ret_type(&self) -> &TypeRef { @@ -295,8 +295,8 @@ impl FnSignature { /// True if the first arg is `self`. This is relevant to decide whether this /// can be called as a method. - pub fn has_self_arg(&self) -> bool { - self.has_self_arg + pub fn has_self_param(&self) -> bool { + self.has_self_param } } -- cgit v1.2.3