diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-11 15:00:32 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-11 15:00:32 +0800 |
commit | 86938c184b32ce004d5247ad80f924f0ae7a3c86 (patch) | |
tree | 66dfdee288a8f3806dd869a9bccb910b8c854ab6 /src/types.hpp | |
parent | d9cba0738c5fe7928ea345f510f505fe777fd8ea (diff) | |
download | mrust-86938c184b32ce004d5247ad80f924f0ae7a3c86.tar.gz |
Add hacky text output of AST
Diffstat (limited to 'src/types.hpp')
-rw-r--r-- | src/types.hpp | 8 |
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
|