Skip to content
Extraits de code Groupes Projets
Vérifiée Valider a96219ef rédigé par Kubat's avatar Kubat
Parcourir les fichiers

WIP: Implementation of IrType should be Ok

parent c3b1855d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!25Draft: New Vivy module spec
...@@ -120,11 +120,17 @@ IrTAss::parse(std::vector<Token> *) ...@@ -120,11 +120,17 @@ IrTAss::parse(std::vector<Token> *)
namespace Vivy::Script namespace Vivy::Script
{ {
IrTOption::IrTOption(IrOption *opt) noexcept
: selfInnerOption(opt)
{
}
IrType::Type IrType::Type
IrTOption::type() const noexcept IrTOption::type() const noexcept
{ {
return Type::Option; return Type::Option;
} }
const IrOption * const IrOption *
IrTOption::innerType() const noexcept IrTOption::innerType() const noexcept
{ {
......
...@@ -52,6 +52,8 @@ class IrTOption final : public IrType { ...@@ -52,6 +52,8 @@ class IrTOption final : public IrType {
IrOption *selfInnerOption = nullptr; IrOption *selfInnerOption = nullptr;
IrTOption(IrOption *) noexcept;
public: public:
Type type() const noexcept override; Type type() const noexcept override;
const IrOption *innerType() const noexcept; const IrOption *innerType() const noexcept;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter