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

Method validate

lib/validator/formchecker.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74Expect<void> FormChecker::validate(AST::InstrView Instrs,
75 Span<const ValType> RetVals) {
76 for (const ValType &Val : RetVals) {
77 Returns.push_back(Val);
78 }
79 return checkExpr(Instrs);
80}
81
82Expect<void> FormChecker::validate(const ValType &VT) const noexcept {
83 // The value type should be validated for the type index case.

Callers

nothing calls this directly

Calls 7

InfoForbidIndexClass · 0.85
UnexpectFunction · 0.85
isRefTypeMethod · 0.80
getHeapTypeCodeMethod · 0.80
errorFunction · 0.50
getTypeIndexMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected