diff options
Diffstat (limited to '')
-rw-r--r-- | src/astnode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/astnode.h b/src/astnode.h index 6ade25b..843dba8 100644 --- a/src/astnode.h +++ b/src/astnode.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define AST_NODE_H | 2 | #define AST_NODE_H |
3 | 3 | ||
4 | #include "bu/formatter.h" | 4 | #include "bu/formatter.h" |
5 | #include "location.h" | ||
5 | 6 | ||
6 | class AstNode | 7 | class AstNode |
7 | { | 8 | { |
@@ -91,7 +92,7 @@ public: | |||
91 | typeDataMask = 0x0F0000 | 92 | typeDataMask = 0x0F0000 |
92 | }; | 93 | }; |
93 | public: | 94 | public: |
94 | AstNode( Type eType ); | 95 | AstNode( const Location &loc, Type eType ); |
95 | virtual ~AstNode(); | 96 | virtual ~AstNode(); |
96 | 97 | ||
97 | Type getType() const { return eType; } | 98 | Type getType() const { return eType; } |
@@ -100,6 +101,7 @@ public: | |||
100 | 101 | ||
101 | private: | 102 | private: |
102 | Type eType; | 103 | Type eType; |
104 | Location loc; | ||
103 | }; | 105 | }; |
104 | 106 | ||
105 | Bu::Formatter &operator<<( Bu::Formatter &f, const AstNode &n ); | 107 | Bu::Formatter &operator<<( Bu::Formatter &f, const AstNode &n ); |