mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Parse and validate attributes in blocks
This commit is contained in:
parent
137b1ccb71
commit
00e6b5d26c
10 changed files with 352 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue