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

Method addFunc

lib/validator/formchecker.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96void FormChecker::addType(const AST::SubType &Type) { Types.push_back(&Type); }
97
98void FormChecker::addFunc(const uint32_t TypeIdx, const bool IsImport) {
99 if (Types.size() > TypeIdx) {
100 Funcs.emplace_back(TypeIdx);
101 }
102 if (IsImport) {
103 NumImportFuncs++;
104 }
105}
106
107void FormChecker::addTable(const AST::TableType &Tab) {
108 Tables.emplace_back(convAddrTypeToTypeCode(Tab.getLimit().getAddrType()),

Callers 4

validateCanonLiftMethod · 0.45
validateMethod · 0.45
validateMethod · 0.45
instantiateMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected