| 864 | } |
| 865 | |
| 866 | void ParseContext::parse_exportsection() { |
| 867 | tok_.expect(TokenType::LParen); |
| 868 | tok_.expect_keyword("export"); |
| 869 | WasmExport& exp = module_.exports.emplace_back(); |
| 870 | exp.name = parse_string_to_bytes(tok_.expect(TokenType::String).text); |
| 871 | auto [desc, idx] = parse_exportdesc(); |
| 872 | exp.desc = desc; exp.index = idx; |
| 873 | tok_.expect(TokenType::RParen); |
| 874 | } |
| 875 | |
| 876 | void ParseContext::parse_startsection() { |
| 877 | tok_.expect(TokenType::LParen); |
nothing calls this directly
no test coverage detected