aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_api.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-01-12 20:58:16 +0000
committerFlorian Diebold <[email protected]>2019-01-12 20:58:16 +0000
commit1ed7fbfc1badd2c2a42b4dc2feb1b4bf7835d3ef (patch)
tree8e0a5cd3e1981bf0ff9615636d45566dd85fdb97 /crates/ra_hir/src/code_model_api.rs
parent5db5f5cc1dc5dfbded866b59570afc50538b9091 (diff)
args -> params
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r--crates/ra_hir/src/code_model_api.rs14
1 files changed, 7 insertions, 7 deletions
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;
273#[derive(Debug, Clone, PartialEq, Eq)] 273#[derive(Debug, Clone, PartialEq, Eq)]
274pub struct FnSignature { 274pub struct FnSignature {
275 pub(crate) name: Name, 275 pub(crate) name: Name,
276 pub(crate) args: Vec<TypeRef>, 276 pub(crate) params: Vec<TypeRef>,
277 pub(crate) ret_type: TypeRef, 277 pub(crate) ret_type: TypeRef,
278 /// True if the first arg is `self`. This is relevant to decide whether this 278 /// True if the first param is `self`. This is relevant to decide whether this
279 /// can be called as a method. 279 /// can be called as a method.
280 pub(crate) has_self_arg: bool, 280 pub(crate) has_self_param: bool,
281} 281}
282 282
283impl FnSignature { 283impl FnSignature {
@@ -285,8 +285,8 @@ impl FnSignature {
285 &self.name 285 &self.name
286 } 286 }
287 287
288 pub fn args(&self) -> &[TypeRef] { 288 pub fn params(&self) -> &[TypeRef] {
289 &self.args 289 &self.params
290 } 290 }
291 291
292 pub fn ret_type(&self) -> &TypeRef { 292 pub fn ret_type(&self) -> &TypeRef {
@@ -295,8 +295,8 @@ impl FnSignature {
295 295
296 /// True if the first arg is `self`. This is relevant to decide whether this 296 /// True if the first arg is `self`. This is relevant to decide whether this
297 /// can be called as a method. 297 /// can be called as a method.
298 pub fn has_self_arg(&self) -> bool { 298 pub fn has_self_param(&self) -> bool {
299 self.has_self_arg 299 self.has_self_param
300 } 300 }
301} 301}
302 302