Parse Paths in extends attributes

Closes #916
This commit is contained in:
Alex Crichton
2018-10-03 00:04:43 -07:00
parent 7ec1511d3d
commit 5df8e20815
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);
}
}
}