Add ModuleItemsOwner to Block

This commit is contained in:
ice1000 2019-12-03 12:03:35 -05:00
parent 96b9d5b44e
commit 379482068d
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)