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

Method validate

lib/validator/component_validator.cpp:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232} // namespace
233
234Expect<void>
235Validator::validate(const AST::Component::Component &Comp) noexcept {
236 spdlog::warn("Component Model Validation is in active development."sv);
237 CompCtx.reset();
238 return validateComponent(Comp).and_then([&]() {
239 const_cast<AST::Component::Component &>(Comp).setIsValidated();
240 return Expect<void>{};
241 });
242}
243
244Expect<void>
245Validator::validateComponent(const AST::Component::Component &Comp) noexcept {

Callers

nothing calls this directly

Calls 15

InfoASTClass · 0.85
populateInstanceFromTypeFunction · 0.85
UnexpectFunction · 0.85
sortMatchesDescTypeFunction · 0.85
resolveChildInstanceTypeFunction · 0.85
validateExportNameFunction · 0.85
isKebabStringFunction · 0.85
toLowerStrFunction · 0.85
addCoreModuleMethod · 0.80
isCoreMethod · 0.80
incCoreSortIndexSizeMethod · 0.80

Tested by

no test coverage detected