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

Method parse_parametricinstr

src/lib/parse/instr_parse.cpp:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336// ── Parametric instructions ───────────────────────────────────────────────────
337
338WasmInstr ParseContext::parse_parametricinstr(const std::string& name) {
339 if (name == "drop") return Instr::Drop();
340 // select result*
341 Instr::Select instr;
342 while (tok_.peek().type == TokenType::LParen &&
343 tok_.peek2().type == TokenType::Keyword && tok_.peek2().text == "result") {
344 auto results = parse_result();
345 instr.valtypes.insert(instr.valtypes.end(), results.begin(), results.end());
346 }
347 return instr;
348}
349
350// ── Variable instructions ─────────────────────────────────────────────────────
351

Callers

nothing calls this directly

Calls 2

peekMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected