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

Class GlobalType

include/ast/type.h:743–764  ·  view source on GitHub ↗

AST GlobalType node.

Source from the content-addressed store, hash-verified

741
742/// AST GlobalType node.
743class GlobalType {
744public:
745 /// Constructors.
746 GlobalType() noexcept : Type(TypeCode::I32), Mut(ValMut::Const) {}
747 GlobalType(const ValType &VType, ValMut VMut) noexcept
748 : Type(VType), Mut(VMut) {}
749
750 /// Getter and setter for value type.
751 const ValType &getValType() const noexcept { return Type; }
752 void setValType(const ValType &VType) noexcept { Type = VType; }
753
754 /// Getter and setter for value mutation.
755 ValMut getValMut() const noexcept { return Mut; }
756 void setValMut(ValMut VMut) noexcept { Mut = VMut; }
757
758private:
759 /// \name Data of GlobalType.
760 /// @{
761 ValType Type;
762 ValMut Mut;
763 /// @}
764};
765
766class TagType {
767public:

Callers 2

TESTFunction · 0.85
SpecTestModuleMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
SpecTestModuleMethod · 0.68