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

Method addCoreFunc

include/validator/component_context.h:197–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 return Idx;
196 }
197 uint32_t addCoreFunc(const AST::SubType *ST = nullptr) noexcept {
198 auto &V = getCurrentContext().CoreFuncs;
199 uint32_t Idx = static_cast<uint32_t>(V.size());
200 V.push_back(ST);
201 return Idx;
202 }
203 const AST::SubType *getCoreFunc(uint32_t Idx) const noexcept {
204 const auto &V = getCurrentContext().CoreFuncs;
205 return Idx < V.size() ? V[Idx] : nullptr;

Callers 5

validateCanonLowerMethod · 0.80
validateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected