mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-29 21:11:33 +03:00
Explicitly ignore "Exposed" attributes
It looks like these are primarily targeted at informing whether functionality is either on web workers, windows, or both. For now we'll generate the same bindings regardless, and users will need to be proactive about what they're using. In that case there shouldn't be any need for us to process these, so avoid warning about them!
This commit is contained in:
parent
efd6b2abac
commit
81150492a5
@ -353,6 +353,14 @@ impl<'a> WebidlParse<&'a webidl::ast::NonPartialInterface> for webidl::ast::Exte
|
||||
{
|
||||
add_constructor(arguments, &interface.name)
|
||||
}
|
||||
webidl::ast::ExtendedAttribute::IdentifierList(
|
||||
webidl::ast::IdentifierListExtendedAttribute { lhs, .. },
|
||||
)
|
||||
if lhs == "Exposed" =>
|
||||
{
|
||||
// ignore these attributes for now, we just splat everything in
|
||||
// the crate whether it's workable in a web worker or not.
|
||||
}
|
||||
webidl::ast::ExtendedAttribute::NoArguments(webidl::ast::Other::Identifier(name))
|
||||
if name == "Constructor" =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user