Merge pull request #923 from alexcrichton/extends-path

Parse `Path`s in `extends` attributes
This commit is contained in:
Alex Crichton
2018-10-03 10:38:50 -07:00
committed by GitHub
5 changed files with 13 additions and 10 deletions

View File

@ -143,7 +143,7 @@ pub struct ImportType {
pub attrs: Vec<syn::Attribute>,
pub doc_comment: Option<String>,
pub instanceof_shim: String,
pub extends: Vec<Ident>,
pub extends: Vec<syn::Path>,
pub vendor_prefixes: Vec<Ident>,
}

View File

@ -288,7 +288,7 @@ impl ImportedTypes for ast::ImportType {
{
f(&self.rust_name, ImportedTypeKind::Definition);
for class in self.extends.iter() {
f(class, ImportedTypeKind::Reference);
class.imported_types(f);
}
}
}