Add AST for extern crate
Also change it to parse the crate name as a NAME_REF, not a NAME.
This commit is contained in:
@@ -970,7 +970,15 @@ impl ToOwned for ExternCrateItem {
|
||||
}
|
||||
|
||||
|
||||
impl ExternCrateItem {}
|
||||
impl ExternCrateItem {
|
||||
pub fn name_ref(&self) -> Option<&NameRef> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
|
||||
pub fn alias(&self) -> Option<&Alias> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// FalseKw
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
||||
Reference in New Issue
Block a user