fix: Fix IDE features breaking in some attr macros

This commit is contained in:
Lukas Wirth 2024-06-20 10:56:17 +02:00
parent bf9a7264d1
commit ee8a3458ee
3 changed files with 6 additions and 6 deletions

View file

@ -434,7 +434,7 @@ impl SourceToDefCtx<'_, '_> {
.entry(macro_file)
.or_insert_with(|| macro_file.expansion_info(this.db.upcast()));
expansion_info.call_node().map(|node| node?.parent()).transpose()
expansion_info.arg().map(|node| node?.parent()).transpose()
}
};
let mut node = node.cloned();