MCPcopy Create free account
hub / github.com/WasmVM/WasmVM / parse_exportsection

Method parse_exportsection

src/lib/parse/ParseContext.cpp:866–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void 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
876void ParseContext::parse_startsection() {
877 tok_.expect(TokenType::LParen);

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
expect_keywordMethod · 0.80

Tested by

no test coverage detected