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

Method setVariant

include/ast/component/type.h:222–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 return *std::get_if<VariantTy>(&Type);
221 }
222 void setVariant(VariantTy &&Ty) noexcept {
223 Type.emplace<VariantTy>(std::move(Ty));
224 }
225
226 const ListTy &getList() const noexcept { return *std::get_if<ListTy>(&Type); }
227 void setList(ListTy &&Ty) noexcept { Type.emplace<ListTy>(std::move(Ty)); }

Callers 2

loadTypeMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64