mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Add function parameters attributes
This commit is contained in:
parent
9ea4ae680a
commit
3fb58c620c
15 changed files with 505 additions and 21 deletions
|
@ -2013,6 +2013,7 @@ impl AstNode for Param {
|
|||
|
||||
|
||||
impl ast::TypeAscriptionOwner for Param {}
|
||||
impl ast::AttrsOwner for Param {}
|
||||
impl Param {
|
||||
pub fn pat(&self) -> Option<Pat> {
|
||||
super::child_opt(self)
|
||||
|
@ -2667,6 +2668,7 @@ impl AstNode for SelfParam {
|
|||
|
||||
|
||||
impl ast::TypeAscriptionOwner for SelfParam {}
|
||||
impl ast::AttrsOwner for SelfParam {}
|
||||
impl SelfParam {}
|
||||
|
||||
// SlicePat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue