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

Method parse_tabletype

src/lib/parse/ParseContext.cpp:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242TableType ParseContext::parse_tabletype() {
243 TableType tt;
244 tt.limits = parse_limits();
245 Token ref = tok_.expect(TokenType::Keyword, "RefType");
246 tt.reftype = (ref.text == "externref") ? RefType::externref : RefType::funcref;
247 return tt;
248}
249
250GlobalType ParseContext::parse_globaltype() {
251 GlobalType gt;

Callers

nothing calls this directly

Calls 1

expectMethod · 0.80

Tested by

no test coverage detected