From 3fb58c620ccf93487cc3b9b8718002481826b4c2 Mon Sep 17 00:00:00 2001 From: Evgenii P Date: Wed, 7 Aug 2019 23:42:28 +0700 Subject: Add function parameters attributes --- crates/ra_syntax/src/ast/generated.rs | 2 ++ crates/ra_syntax/src/grammar.ron | 2 ++ 2 files changed, 4 insertions(+) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index da8cf4ae8..f322e1d84 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -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 { 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 diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 817dedfbf..f2c20573e 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -642,12 +642,14 @@ Grammar( "SelfParam": ( traits: [ "TypeAscriptionOwner", + "AttrsOwner", ] ), "Param": ( options: [ "Pat" ], traits: [ "TypeAscriptionOwner", + "AttrsOwner", ] ), "UseItem": ( -- cgit v1.2.3