summaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-12 20:56:44 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-12 20:56:44 +0800
commited264377ef0e4ed3a5b96b39f3282b3c10d65455 (patch)
treec1ec1312c0a00a0521d93aac291b5210eff794b7 /src/types.cpp
parent4af0826c332c52af0796a2fe30074bbd6aba664b (diff)
downloadmrust-ed264377ef0e4ed3a5b96b39f3282b3c10d65455.tar.gz
TypeRef fleshed out
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index a5edb5b8..c0a69f8d 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -3,6 +3,11 @@
#include "types.hpp"
#include "ast/ast.hpp"
-TypeRef::TypeRef(TypeRef::TagSizedArray, TypeRef inner, AST::Expr&& size_expr)
-{
+::std::ostream& operator<<(::std::ostream& os, const TypeRef& tr) {
+ os << "TypeRef(TODO)";
+ return os;
}
+
+SERIALISE_TYPE(TypeRef::, "TypeRef", {
+ // TODO: TypeRef serialise
+})