mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-06 13:14:14 +03:00
b9dc937d73
This commit refactors WebIDL code generation to walk over the fields of `FirstPassRecord` instead of walking the AST again. This helps remove redundancies like checking `is_chrome_only` as well as revisiting partial interfaces and such. This should make it more clear that the first pass's job is to walk the AST and collect all relevant information, while the codegen pass is purely about appending items to a `Program`. Additionally this refactoring will also soon be used to prepare different data structures for operation overloadings, avoiding the need to walk those ASTs twice. |
||
---|---|---|
.. | ||
error.rs | ||
first_pass.rs | ||
idl_type.rs | ||
lib.rs | ||
util.rs |