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

Method GetLocalType

src/ir.cc:235–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235Type Func::GetLocalType(Index index) const {
236 Index num_params = decl.GetNumParams();
237 if (index < num_params) {
238 return GetParamType(index);
239 } else {
240 index -= num_params;
241 assert(index < local_types.size());
242 return local_types[index];
243 }
244}
245
246Type Func::GetLocalType(const Var& var) const {
247 return GetLocalType(GetLocalIndex(var));

Callers 2

DecompileExprMethod · 0.45
WriteMethod · 0.45

Calls 2

GetNumParamsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected