MCPcopy Create free account
hub / github.com/WebAssembly/wabt / OnTag

Method OnTag

src/shared-validator.cc:243–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243Result SharedValidator::OnTag(const Location& loc, Var sig_var) {
244 Result result = Result::Ok;
245 FuncType type;
246 result |= CheckFuncTypeIndex(sig_var, &type);
247 if (!type.results.empty()) {
248 result |= PrintError(loc, "Tag signature must have 0 results.");
249 }
250 tags_.push_back(TagType{type.params});
251 return result;
252}
253
254Result SharedValidator::OnExport(const Location& loc,
255 ExternalKind kind,

Callers 3

CheckModuleMethod · 0.80
OnImportTagMethod · 0.80
OnTagTypeMethod · 0.80

Calls 2

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected