mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
completion for trait params
This commit is contained in:
parent
4798a89a12
commit
2f2feef9af
3 changed files with 33 additions and 10 deletions
|
@ -698,6 +698,7 @@ impl<'a> AstNode<'a> for ItemList<'a> {
|
|||
fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax }
|
||||
}
|
||||
|
||||
impl<'a> ast::FnDefOwner<'a> for ItemList<'a> {}
|
||||
impl<'a> ItemList<'a> {
|
||||
pub fn items(self) -> impl Iterator<Item = ModuleItem<'a>> + 'a {
|
||||
super::children(self)
|
||||
|
|
|
@ -275,6 +275,7 @@ Grammar(
|
|||
options: [ "ItemList" ]
|
||||
),
|
||||
"ItemList": (
|
||||
traits: [ "FnDefOwner" ],
|
||||
collections: [ ["items", "ModuleItem"] ]
|
||||
),
|
||||
"ConstDef": ( traits: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue