completion for trait params

This commit is contained in:
Aleksey Kladov 2018-09-03 15:46:14 +03:00
parent 4798a89a12
commit 2f2feef9af
3 changed files with 33 additions and 10 deletions

View file

@ -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)