| 57 | ParseContext::ParseContext(Tokenizer& tok) : tok_(tok) {} |
| 58 | |
| 59 | WasmModule ParseContext::parse() { |
| 60 | parse_module(); |
| 61 | // Populate module_.types from internal types_ vector |
| 62 | std::transform(types_.begin(), types_.end(), std::back_inserter(module_.types), |
| 63 | [](auto& p) { return p.first; }); |
| 64 | post_process(); |
| 65 | return module_; |
| 66 | } |
| 67 | |
| 68 | // ── Module / module fields ──────────────────────────────────────────────────── |
| 69 |