wasm-bindgen/crates/webidl/src
Alex Crichton b9dc937d73 Refactor WebIDL code generation
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.
2018-08-30 12:54:54 -07:00
..
error.rs Add file location information when failing to parse WebIDL files. (#562) 2018-07-26 10:09:04 -07:00
first_pass.rs Refactor WebIDL code generation 2018-08-30 12:54:54 -07:00
idl_type.rs Refactor WebIDL code generation 2018-08-30 12:54:54 -07:00
lib.rs Refactor WebIDL code generation 2018-08-30 12:54:54 -07:00
util.rs web-sys: Add support for Global-scope methods 2018-08-28 17:20:31 -07:00