mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Expand derive macros under cursor in Expand Macro Recursively
This commit is contained in:
parent
6287d388c0
commit
d99b81f839
7 changed files with 90 additions and 2 deletions
|
@ -242,6 +242,15 @@ impl SourceToDefCtx<'_, '_> {
|
|||
map[keys::ATTR_MACRO].get(&src).copied()
|
||||
}
|
||||
|
||||
pub(super) fn attr_to_derive_macro_call(
|
||||
&mut self,
|
||||
item: InFile<&ast::Item>,
|
||||
src: InFile<ast::Attr>,
|
||||
) -> Option<MacroCallId> {
|
||||
let map = self.dyn_map(item)?;
|
||||
map[keys::DERIVE_MACRO].get(&src).copied()
|
||||
}
|
||||
|
||||
fn to_def<Ast: AstNode + 'static, ID: Copy + 'static>(
|
||||
&mut self,
|
||||
src: InFile<Ast>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue