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

Method OnFunction

src/binary-reader-ir.cc:693–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693Result BinaryReaderIR::OnFunction(Index index, Index sig_index) {
694 auto field = std::make_unique<FuncModuleField>(GetLocation());
695 Func& func = field->func;
696 SetFuncDeclaration(&func.decl, Var(sig_index, GetLocation()));
697 module_->AppendField(std::move(field));
698 return Result::Ok;
699}
700
701Result BinaryReaderIR::OnTableCount(Index count) {
702 WABT_TRY

Callers 1

CheckModuleMethod · 0.45

Calls 2

AppendFieldMethod · 0.80
VarClass · 0.50

Tested by

no test coverage detected