Rename polyfill to vendor_prefix

cc #906
This commit is contained in:
Alex Crichton
2018-10-01 12:33:33 -07:00
parent 473258f731
commit f75349262a
14 changed files with 112 additions and 100 deletions

View File

@ -144,7 +144,7 @@ pub struct ImportType {
pub doc_comment: Option<String>,
pub instanceof_shim: String,
pub extends: Vec<Ident>,
pub polyfills: Vec<Ident>,
pub vendor_prefixes: Vec<Ident>,
}
#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))]
@ -479,7 +479,7 @@ impl ImportType {
shared::ImportType {
name: self.js_name.clone(),
instanceof_shim: self.instanceof_shim.clone(),
polyfills: self.polyfills.iter().map(|s| s.to_string()).collect(),
vendor_prefixes: self.vendor_prefixes.iter().map(|s| s.to_string()).collect(),
}
}
}