diff options
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r-- | src/ast/expr.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ast/expr.hpp b/src/ast/expr.hpp index 00694962..ca634e91 100644 --- a/src/ast/expr.hpp +++ b/src/ast/expr.hpp @@ -245,6 +245,15 @@ struct ExprNode_Match_Arm: unique_ptr<ExprNode> m_code; + + ExprNode_Match_Arm() + {} + ExprNode_Match_Arm(::std::vector<Pattern> patterns, unique_ptr<ExprNode> cond, unique_ptr<ExprNode> code): + m_patterns( mv$(patterns) ), + m_cond( mv$(cond) ), + m_code( mv$(code) ) + {} + SERIALISABLE_PROTOTYPES(); }; |