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

Method registerComponent

lib/executor/executor.cpp:74–79  ·  view source on GitHub ↗

Register a named Component. See "include/executor/executor.h".

Source from the content-addressed store, hash-verified

72
73/// Register a named Component. See "include/executor/executor.h".
74Expect<std::unique_ptr<Runtime::Instance::ComponentInstance>>
75Executor::registerComponent(Runtime::StoreManager &StoreMgr,
76 const AST::Component::Component &Comp,
77 std::string_view Name) {
78 return instantiate(StoreMgr, Comp, Name);
79}
80
81/// Register an instantiated Component. See "include/executor/executor.h".
82Expect<void> Executor::registerComponent(

Callers 2

instantiateMethod · 0.45

Calls 2

InfoASTClass · 0.85
errorFunction · 0.50

Tested by

no test coverage detected