Add ModuleItemsOwner to Block
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user