Parse and validate attributes in blocks

This commit is contained in:
DJMcNab 2019-01-28 20:03:56 +00:00
parent 137b1ccb71
commit 00e6b5d26c
10 changed files with 352 additions and 0 deletions

View file

@ -272,6 +272,7 @@ impl ToOwned for Block {
}
impl ast::AttrsOwner for Block {}
impl Block {
pub fn statements(&self) -> impl Iterator<Item = &Stmt> {
super::children(self)