diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 14 |
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)] |
274 | pub struct FnSignature { | 274 | pub 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 | ||
283 | impl FnSignature { | 283 | impl 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 | ||