diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-03 17:24:16 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-03 17:24:16 +0000 |
commit | c6e4cadfce300d14dccdb74e3d5f0e44008e7985 (patch) | |
tree | a1f8d075c55d0c927b391144fe9602ab600e9ba2 | |
parent | 82fd86ac71ac09f336e161a9538ce83cdf53fc77 (diff) | |
parent | 379482068d6ef985df5260473cac9d42331a6104 (diff) |
Merge #2471
2471: Add `ModuleItemsOwner` to `Block` r=matklad a=ice1000
As title
Co-authored-by: ice1000 <[email protected]>
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 1 | ||||
-rw-r--r-- | 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 { | |||
312 | } | 312 | } |
313 | } | 313 | } |
314 | impl ast::AttrsOwner for Block {} | 314 | impl ast::AttrsOwner for Block {} |
315 | impl ast::ModuleItemOwner for Block {} | ||
315 | impl Block { | 316 | impl Block { |
316 | pub fn statements(&self) -> AstChildren<Stmt> { | 317 | pub fn statements(&self) -> AstChildren<Stmt> { |
317 | AstChildren::new(&self.syntax) | 318 | 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( | |||
653 | ], | 653 | ], |
654 | traits: [ | 654 | traits: [ |
655 | "AttrsOwner", | 655 | "AttrsOwner", |
656 | "ModuleItemOwner", | ||
656 | ] | 657 | ] |
657 | ), | 658 | ), |
658 | "ParamList": ( | 659 | "ParamList": ( |
@@ -664,14 +665,14 @@ Grammar( | |||
664 | "SelfParam": ( | 665 | "SelfParam": ( |
665 | traits: [ | 666 | traits: [ |
666 | "TypeAscriptionOwner", | 667 | "TypeAscriptionOwner", |
667 | "AttrsOwner", | 668 | "AttrsOwner", |
668 | ] | 669 | ] |
669 | ), | 670 | ), |
670 | "Param": ( | 671 | "Param": ( |
671 | options: [ "Pat" ], | 672 | options: [ "Pat" ], |
672 | traits: [ | 673 | traits: [ |
673 | "TypeAscriptionOwner", | 674 | "TypeAscriptionOwner", |
674 | "AttrsOwner", | 675 | "AttrsOwner", |
675 | ] | 676 | ] |
676 | ), | 677 | ), |
677 | "UseItem": ( | 678 | "UseItem": ( |