AST GlobalType node.
| 741 | |
| 742 | /// AST GlobalType node. |
| 743 | class GlobalType { |
| 744 | public: |
| 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 | |
| 758 | private: |
| 759 | /// \name Data of GlobalType. |
| 760 | /// @{ |
| 761 | ValType Type; |
| 762 | ValMut Mut; |
| 763 | /// @} |
| 764 | }; |
| 765 | |
| 766 | class TagType { |
| 767 | public: |
no outgoing calls