diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-20 09:52:57 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-20 09:52:57 +0800 |
commit | e0d932dbc21555ef47e33b0d13aeb3dde8e42c7e (patch) | |
tree | 1ea75a429d676026efc54b3920f5159563debf6f /src/ast/expr.hpp | |
parent | 692cef0353fc891756d4137e8007e0f822c684a5 (diff) | |
download | mrust-e0d932dbc21555ef47e33b0d13aeb3dde8e42c7e.tar.gz |
Expand - For loop desugar
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(); }; |