rustwasm / wasm-webidl-bindings

Read, write, and manipulate the Wasm WebIDL bindings custom section
Apache License 2.0
38 stars 9 forks source link

Support the optional `type=` and `idx=` named parameters in text format #1

Closed fitzgen closed 5 years ago

fitzgen commented 5 years ago

e.g.

(@webidl func-binding $addContactBinding import $AddContactFuncWasm $AddContactFuncWebIDL
  (param
    (as type=any idx=0)
    (dict $Contact (utf8-str type=DOMString off-idx=1 len-idx=2) (as type=long idx=3))
    (utf8-str type=DOMString off-idx=4 len-idx=5))
  (result
    (as type=i32 (get idx=0))))
Hywan commented 5 years ago

Can be closed now. #14 has been merged.