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

Method parse_dataidx

src/lib/parse/ParseContext.cpp:423–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423index_t ParseContext::parse_dataidx() {
424 if (tok_.peek().type == TokenType::Id) {
425 Token t = tok_.consume();
426 if (!data_map_.contains(t.text))
427 throw Exception::Parse("data id '" + t.text + "' not found", {t.line, t.column});
428 return data_map_[t.text];
429 }
430 return (index_t)parse_u32();
431}
432
433index_t ParseContext::parse_localidx() {
434 if (tok_.peek().type == TokenType::Id) {

Callers

nothing calls this directly

Calls 3

ParseClass · 0.85
peekMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected