summaryrefslogtreecommitdiff
path: root/src/ast/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-04-03 22:57:27 +0800
committerJohn Hodge <tpg@mutabah.net>2015-04-03 22:57:27 +0800
commitc15006c15505ae785eb5447c055b8f9379e7fcde (patch)
treeafe7f047db2c5ab2e0ea7bbf7155522771be474a /src/ast/expr.hpp
parent44e15eac335bfe8a78af259541be97d1f6653d7a (diff)
downloadmrust-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.hpp5
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