mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Merge #2471
2471: Add `ModuleItemsOwner` to `Block` r=matklad a=ice1000 As title Co-authored-by: ice1000 <ice1000kotlin@foxmail.com>
This commit is contained in:
commit
c6e4cadfce
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": (
|
||||||
|
@ -664,14 +665,14 @@ Grammar(
|
||||||
"SelfParam": (
|
"SelfParam": (
|
||||||
traits: [
|
traits: [
|
||||||
"TypeAscriptionOwner",
|
"TypeAscriptionOwner",
|
||||||
"AttrsOwner",
|
"AttrsOwner",
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
"Param": (
|
"Param": (
|
||||||
options: [ "Pat" ],
|
options: [ "Pat" ],
|
||||||
traits: [
|
traits: [
|
||||||
"TypeAscriptionOwner",
|
"TypeAscriptionOwner",
|
||||||
"AttrsOwner",
|
"AttrsOwner",
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
"UseItem": (
|
"UseItem": (
|
||||||
|
|
Loading…
Reference in a new issue