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

Method addTypeImported

include/validator/component_context.h:287–289  ·  view source on GitHub ↗

Like addType but marks the resource as imported rather than locally defined. Used for resource type imports and outer-alias resources.

Source from the content-addressed store, hash-verified

285 /// Like addType but marks the resource as imported rather than locally
286 /// defined. Used for resource type imports and outer-alias resources.
287 uint32_t addTypeImported(const AST::Component::DefType *DT) noexcept {
288 return addTypeImpl(DT, /*IsLocal=*/false);
289 }
290
291 const AST::Component::DefType *getDefType(uint32_t Idx) const noexcept {
292 const auto &Ctx = getCurrentContext();

Callers 1

validateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected