feat: Make inlay hints work in attributed items

This commit is contained in:
Lukas Wirth 2021-09-14 01:59:45 +02:00
parent 8f76e41e18
commit e193e3b076
2 changed files with 98 additions and 16 deletions

View file

@ -211,6 +211,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
) -> impl Iterator<Item = SyntaxNode> + '_ {
token.parent().into_iter().flat_map(move |it| self.ancestors_with_macros(it))
}
pub fn ancestors_with_macros(&self, node: SyntaxNode) -> impl Iterator<Item = SyntaxNode> + '_ {
self.imp.ancestors_with_macros(node)
}