mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 04:21:21 +00:00
Merge pull request #923 from alexcrichton/extends-path
Parse `Path`s in `extends` attributes
This commit is contained in:
@ -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>,
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user