summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-11 15:00:32 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-11 15:00:32 +0800
commit86938c184b32ce004d5247ad80f924f0ae7a3c86 (patch)
tree66dfdee288a8f3806dd869a9bccb910b8c854ab6 /src/types.hpp
parentd9cba0738c5fe7928ea345f510f505fe777fd8ea (diff)
downloadmrust-86938c184b32ce004d5247ad80f924f0ae7a3c86.tar.gz
Add hacky text output of AST
Diffstat (limited to 'src/types.hpp')
-rw-r--r--src/types.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/types.hpp b/src/types.hpp
index 4a596522..2e6a1fa1 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -4,12 +4,14 @@
#include "common.hpp"
#include "coretypes.hpp"
#include "ast/path.hpp"
+#include <serialise.hpp>
namespace AST {
class Expr;
}
-class TypeRef
+class TypeRef:
+ public Serialisable
{
public:
TypeRef() {}
@@ -40,6 +42,10 @@ public:
os << "TypeRef(TODO)";
return os;
}
+
+ SERIALISE_TYPE(, "TypeRef", {
+ // TODO: Typeref serialise
+ })
};
#endif // TYPES_HPP_INCLUDED