summaryrefslogtreecommitdiff
path: root/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge (bugs) <tpg@mutabah.net>2014-12-14 10:03:30 +0800
committerJohn Hodge (bugs) <tpg@mutabah.net>2014-12-14 10:03:30 +0800
commit5d29fdaa42c638e9420bd3111fb15f3594342354 (patch)
treed1c3ce2d13751c6ee23b92b44fc7053c681d4a3d /types.hpp
parent605c764a79ed00630967780ee7d434fbaa8aa284 (diff)
downloadmrust-5d29fdaa42c638e9420bd3111fb15f3594342354.tar.gz
Parse working, starting on conversion
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/types.hpp b/types.hpp
index ef540a93..02355d66 100644
--- a/types.hpp
+++ b/types.hpp
@@ -3,7 +3,10 @@
#include <vector>
#include "coretypes.hpp"
-#include "ast/ast.hpp"
+
+namespace AST {
+class Expr;
+}
class TypeRef
{
@@ -22,7 +25,7 @@ public:
struct TagPointer {};
TypeRef(TagPointer _, bool is_mut, TypeRef inner_type) {}
struct TagSizedArray {};
- TypeRef(TagSizedArray _, TypeRef inner_type, AST::Expr size) {}
+ TypeRef(TagSizedArray _, TypeRef inner_type, AST::Expr size);
struct TagUnsizedArray {};
TypeRef(TagUnsizedArray _, TypeRef inner_type) {}