mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Support resolution of #[macro_use] extern crate
This commit is contained in:
parent
f2a200c1ee
commit
f5bea9051b
4 changed files with 30 additions and 2 deletions
|
@ -934,6 +934,7 @@ impl AstNode for ExternCrateItem {
|
|||
&self.syntax
|
||||
}
|
||||
}
|
||||
impl ast::AttrsOwner for ExternCrateItem {}
|
||||
impl ExternCrateItem {
|
||||
pub fn name_ref(&self) -> Option<NameRef> {
|
||||
AstChildren::new(&self.syntax).next()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue