diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-03 22:57:27 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-03 22:57:27 +0800 |
commit | c15006c15505ae785eb5447c055b8f9379e7fcde (patch) | |
tree | afe7f047db2c5ab2e0ea7bbf7155522771be474a /src/ast/expr.hpp | |
parent | 44e15eac335bfe8a78af259541be97d1f6653d7a (diff) | |
download | mrust-c15006c15505ae785eb5447c055b8f9379e7fcde.tar.gz |
Added partial support for #[derive()]
- Supports Debug on struct, and assumes compiling in libcore (for now)
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r-- | src/ast/expr.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ast/expr.hpp b/src/ast/expr.hpp index 663beae0..45f6e3c9 100644 --- a/src/ast/expr.hpp +++ b/src/ast/expr.hpp @@ -208,7 +208,7 @@ struct ExprNode_CallMethod: ::std::vector<unique_ptr<ExprNode>> m_args; ExprNode_CallMethod() {} - ExprNode_CallMethod(unique_ptr<ExprNode>&& obj, PathNode&& method, ::std::vector<unique_ptr<ExprNode>>&& args): + ExprNode_CallMethod(unique_ptr<ExprNode> obj, PathNode method, ::std::vector<unique_ptr<ExprNode>> args): m_val( move(obj) ), m_method( move(method) ), m_args( move(args) ) @@ -479,7 +479,7 @@ struct ExprNode_Field: ::std::string m_name; ExprNode_Field() {} - ExprNode_Field(::std::unique_ptr<ExprNode>&& obj, ::std::string&& name): + ExprNode_Field(::std::unique_ptr<ExprNode>&& obj, ::std::string name): m_obj( ::std::move(obj) ), m_name( ::std::move(name) ) { @@ -723,6 +723,7 @@ public: SERIALISABLE_PROTOTYPES(); }; +typedef ::std::unique_ptr<AST::ExprNode> ExprNodeP; } #endif |