Support resolution of #[macro_use] extern crate
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -669,6 +669,7 @@ Grammar(
|
||||
collections: [("use_trees", "UseTree")]
|
||||
),
|
||||
"ExternCrateItem": (
|
||||
traits: ["AttrsOwner"],
|
||||
options: ["NameRef", "Alias"],
|
||||
),
|
||||
"ArgList": (
|
||||
|
||||
Reference in New Issue
Block a user