mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Add hygiene information to SourceAnalyzer
This commit is contained in:
parent
58a3b3b502
commit
245a9b165a
5 changed files with 36 additions and 13 deletions
|
@ -152,7 +152,7 @@ pub(crate) fn classify_name_ref(
|
|||
|
||||
if let Some(macro_call) = parent.ancestors().find_map(ast::MacroCall::cast) {
|
||||
tested_by!(goto_definition_works_for_macros);
|
||||
if let Some(macro_def) = analyzer.resolve_macro_call(db, ¯o_call) {
|
||||
if let Some(macro_def) = analyzer.resolve_macro_call(db, name_ref.with_value(¯o_call)) {
|
||||
let kind = NameKind::Macro(macro_def);
|
||||
return Some(NameDefinition { kind, container, visibility });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue