2471: Add `ModuleItemsOwner` to `Block` r=matklad a=ice1000

As title

Co-authored-by: ice1000 <ice1000kotlin@foxmail.com>
This commit is contained in:
bors[bot] 2019-12-03 17:24:16 +00:00 committed by GitHub
commit c6e4cadfce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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<Stmt> {
AstChildren::new(&self.syntax)

View file

@ -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": (