summaryrefslogtreecommitdiff
path: root/src/ast/path.hpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-17 10:20:41 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-17 10:20:41 +0800
commitba096985c2d2486592037f03e67c500d74292a83 (patch)
tree7981e81a29a0820ebd6c9afd993fa7d50692c93a /src/ast/path.hpp
parent80e4060188913eb12ad8a774b07d3b938485a49a (diff)
downloadmrust-ba096985c2d2486592037f03e67c500d74292a83.tar.gz
Adding deserialise, partially working
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r--src/ast/path.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp
index f4818764..6370580f 100644
--- a/src/ast/path.hpp
+++ b/src/ast/path.hpp
@@ -30,6 +30,7 @@ class PathNode:
::std::string m_name;
::std::vector<TypeRef> m_params;
public:
+ PathNode() {}
PathNode(::std::string name, ::std::vector<TypeRef> args = {});
const ::std::string& name() const;
::std::vector<TypeRef>& args() { return m_params; }
@@ -171,6 +172,7 @@ public:
SERIALISABLE_PROTOTYPES();
friend ::std::ostream& operator<<(::std::ostream& os, const Path& path);
friend ::Serialiser& operator<<(Serialiser& s, Path::Class pc);
+ friend void operator>>(Deserialiser& s, Path::Class& pc);
private:
void bind_module(const Module& mod);
void bind_enum(const Enum& ent, const ::std::vector<TypeRef>& args);