mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
feat: Make inlay hints work in attributed items
This commit is contained in:
parent
8f76e41e18
commit
e193e3b076
2 changed files with 98 additions and 16 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue