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

Method GetFuncTypeIndex

src/validator.cc:313–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313Var Validator::GetFuncTypeIndex(const Location& default_loc,
314 const FuncDeclaration& decl) {
315 if (decl.has_func_type) {
316 return decl.type_var;
317 }
318 return Var(current_module_->GetFuncTypeIndex(decl), default_loc);
319}
320
321Result Validator::OnBinaryExpr(BinaryExpr* expr) {
322 result_ |= validator_.OnBinary(expr->loc, expr->opcode);

Callers 2

GetDeclarationTypeMethod · 0.45
CheckModuleMethod · 0.45

Calls 1

VarClass · 0.50

Tested by

no test coverage detected