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

Method parse_exportabbr

src/lib/parse/ParseContext.cpp:487–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487std::string ParseContext::parse_exportabbr() {
488 tok_.expect(TokenType::LParen);
489 tok_.expect_keyword("export");
490 std::string name = parse_string_to_bytes(tok_.expect(TokenType::String).text);
491 tok_.expect(TokenType::RParen);
492 return name;
493}
494
495std::pair<WasmExport::DescType, index_t> ParseContext::parse_exportdesc() {
496 tok_.expect(TokenType::LParen);

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
expect_keywordMethod · 0.80

Tested by

no test coverage detected