Merge pull request #1537 from lqd/weedle-0.9

Update weedle to version 0.9
This commit is contained in:
Alex Crichton
2019-05-16 12:14:36 -05:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@ -20,4 +20,4 @@ proc-macro2 = "0.4.8"
quote = '0.6' quote = '0.6'
syn = { version = '0.15', features = ['full'] } syn = { version = '0.15', features = ['full'] }
wasm-bindgen-backend = { version = "=0.2.44", path = "../backend" } wasm-bindgen-backend = { version = "=0.2.44", path = "../backend" }
weedle = "0.8" weedle = "0.9"

View File

@ -300,6 +300,12 @@ impl<'a> ToIdlType<'a> for AttributedType<'a> {
} }
} }
impl<'a> ToIdlType<'a> for AttributedNonAnyType<'a> {
fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> IdlType<'a> {
self.type_.to_idl_type(record)
}
}
impl<'a> ToIdlType<'a> for Identifier<'a> { impl<'a> ToIdlType<'a> for Identifier<'a> {
fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> IdlType<'a> { fn to_idl_type(&self, record: &FirstPassRecord<'a>) -> IdlType<'a> {
if self.0 == "DOMTimeStamp" { if self.0 == "DOMTimeStamp" {