summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-19 11:13:31 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-19 11:13:31 +0800
commit7c758c3dc8dca5dea92b86e452b0616aadbf1de9 (patch)
treed85bca627e65234893c4e6444a2aa1c40da7d1e9 /src/hir/expr.hpp
parent0c2856b49656819260bae9e951de564e475e9b1d (diff)
downloadmrust-7c758c3dc8dca5dea92b86e452b0616aadbf1de9.tar.gz
HIR Lower - Add desugared while/while let
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index 83971572..a1ea043b 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -27,6 +27,15 @@ struct ExprNode_Block:
{
bool m_is_unsafe;
::std::vector< ExprNodeP > m_nodes;
+ ::std::vector< ::HIR::SimplePath> m_traits;
+
+ ExprNode_Block():
+ m_is_unsafe(false)
+ {}
+ ExprNode_Block(bool is_unsafe, ::std::vector<ExprNodeP> nodes):
+ m_is_unsafe(is_unsafe),
+ m_nodes( mv$(nodes) )
+ {}
NODE_METHODS();
};
@@ -47,6 +56,11 @@ struct ExprNode_Loop:
::std::string m_label;
::HIR::ExprNodeP m_code;
+ ExprNode_Loop(::std::string label, ::HIR::ExprNodeP code):
+ m_label( mv$(label) ),
+ m_code( mv$(code) )
+ {}
+
NODE_METHODS();
};
struct ExprNode_LoopControl: