summaryrefslogtreecommitdiff
path: root/src/ast/pattern.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/pattern.hpp')
-rw-r--r--src/ast/pattern.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast/pattern.hpp b/src/ast/pattern.hpp
index 70253c09..70fc77f4 100644
--- a/src/ast/pattern.hpp
+++ b/src/ast/pattern.hpp
@@ -13,7 +13,8 @@ using ::std::move;
class ExprNode;
-class Pattern
+class Pattern:
+ public Serialisable
{
public:
enum BindType {
@@ -81,6 +82,8 @@ public:
const ::std::vector<Pattern>& sub_patterns() const { return m_sub_patterns; }
friend ::std::ostream& operator<<(::std::ostream& os, const Pattern& pat);
+
+ SERIALISABLE_PROTOTYPES();
};
};