mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Update ungrammar
This commit is contained in:
parent
80b3b74018
commit
1d6eef1350
43 changed files with 801 additions and 676 deletions
|
@ -369,7 +369,7 @@ impl NameRefClass {
|
|||
}
|
||||
|
||||
if let Some(resolved) = sema.resolve_path(&path) {
|
||||
if path.syntax().parent().and_then(ast::Attr::cast).is_some() {
|
||||
if path.syntax().ancestors().find_map(ast::Attr::cast).is_some() {
|
||||
if let PathResolution::Def(ModuleDef::Function(func)) = resolved {
|
||||
if func.attrs(sema.db).by_key("proc_macro_attribute").exists() {
|
||||
return Some(NameRefClass::Definition(resolved.into()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue