From 379482068d6ef985df5260473cac9d42331a6104 Mon Sep 17 00:00:00 2001 From: ice1000 Date: Tue, 3 Dec 2019 12:03:35 -0500 Subject: Add `ModuleItemsOwner` to `Block` --- crates/ra_syntax/src/ast/generated.rs | 1 + crates/ra_syntax/src/grammar.ron | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index c06076e3d..9dd6bd3ea 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -312,6 +312,7 @@ impl AstNode for Block { } } impl ast::AttrsOwner for Block {} +impl ast::ModuleItemOwner for Block {} impl Block { pub fn statements(&self) -> AstChildren { AstChildren::new(&self.syntax) diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index d1be40abe..9ffa9095b 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -653,6 +653,7 @@ Grammar( ], traits: [ "AttrsOwner", + "ModuleItemOwner", ] ), "ParamList": ( @@ -664,14 +665,14 @@ Grammar( "SelfParam": ( traits: [ "TypeAscriptionOwner", - "AttrsOwner", + "AttrsOwner", ] ), "Param": ( options: [ "Pat" ], traits: [ "TypeAscriptionOwner", - "AttrsOwner", + "AttrsOwner", ] ), "UseItem": ( -- cgit v1.2.3