MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / getInstanceType

Method getInstanceType

include/validator/component_context.h:312–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 }
311
312 const AST::Component::InstanceType *
313 getInstanceType(uint32_t Idx) const noexcept {
314 const auto &Ctx = getCurrentContext();
315 auto It = Ctx.InstanceTypes.find(Idx);
316 return It != Ctx.InstanceTypes.end() ? It->second : nullptr;
317 }
318
319 const AST::Component::ResourceType *
320 getResourceType(uint32_t Idx) const noexcept {

Callers 4

populateInstanceFromTypeFunction · 0.80
resolveChildInstanceTypeFunction · 0.80
validateMethod · 0.80
addTypeImplMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected