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

Method addInstanceExport

include/validator/component_context.h:268–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 void addInstanceExport(
269 uint32_t InstIdx, std::string_view Name,
270 AST::Component::Sort::SortType ST,
271 const AST::Component::InstanceType *IT = nullptr,
272 std::optional<uint32_t> NestedInstIdx = std::nullopt) noexcept {
273 getCurrentContext().Instances.at(InstIdx)[std::string(Name)] = {
274 ST, IT, NestedInstIdx};
275 }
276
277 // ==========================================================================
278 // type

Callers 2

populateInstanceFromTypeFunction · 0.80
validateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected