mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Address some issues flagged in review
This commit is contained in:
parent
04748a0f16
commit
089b1c57c1
4 changed files with 26 additions and 40 deletions
|
@ -388,8 +388,7 @@ pub use crate::code_model_impl::function::ScopeEntryWithSyntax;
|
|||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct FnSignature {
|
||||
pub(crate) name: Name,
|
||||
pub(crate) type_params: Arc<GenericParams>,
|
||||
pub(crate) args: Vec<TypeRef>,
|
||||
pub(crate) params: Vec<TypeRef>,
|
||||
pub(crate) ret_type: TypeRef,
|
||||
/// True if the first param is `self`. This is relevant to decide whether this
|
||||
/// can be called as a method.
|
||||
|
@ -401,8 +400,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 {
|
||||
|
@ -414,10 +413,6 @@ impl FnSignature {
|
|||
pub fn has_self_param(&self) -> bool {
|
||||
self.has_self_param
|
||||
}
|
||||
|
||||
pub fn generics(&self) -> &GenericParams {
|
||||
&self.type_params
|
||||
}
|
||||
}
|
||||
|
||||
impl Function {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue