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

Method setEnum

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

Source from the content-addressed store, hash-verified

238
239 const EnumTy &getEnum() const noexcept { return *std::get_if<EnumTy>(&Type); }
240 void setEnum(EnumTy &&Ty) noexcept { Type.emplace<EnumTy>(std::move(Ty)); }
241
242 const OptionTy &getOption() const noexcept {
243 return *std::get_if<OptionTy>(&Type);

Callers 2

loadTypeMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64