mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Add ModuleItemsOwner
to Block
This commit is contained in:
parent
96b9d5b44e
commit
379482068d
2 changed files with 4 additions and 2 deletions
|
@ -312,6 +312,7 @@ impl AstNode for Block {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl ast::AttrsOwner for Block {}
|
impl ast::AttrsOwner for Block {}
|
||||||
|
impl ast::ModuleItemOwner for Block {}
|
||||||
impl Block {
|
impl Block {
|
||||||
pub fn statements(&self) -> AstChildren<Stmt> {
|
pub fn statements(&self) -> AstChildren<Stmt> {
|
||||||
AstChildren::new(&self.syntax)
|
AstChildren::new(&self.syntax)
|
||||||
|
|
|
@ -653,6 +653,7 @@ Grammar(
|
||||||
],
|
],
|
||||||
traits: [
|
traits: [
|
||||||
"AttrsOwner",
|
"AttrsOwner",
|
||||||
|
"ModuleItemOwner",
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
"ParamList": (
|
"ParamList": (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue