aboutsummaryrefslogtreecommitdiff
path: root/src/astnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/astnode.h')
-rw-r--r--src/astnode.h4
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
6class AstNode 7class AstNode
7{ 8{
@@ -91,7 +92,7 @@ public:
91 typeDataMask = 0x0F0000 92 typeDataMask = 0x0F0000
92 }; 93 };
93public: 94public:
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
101private: 102private:
102 Type eType; 103 Type eType;
104 Location loc;
103}; 105};
104 106
105Bu::Formatter &operator<<( Bu::Formatter &f, const AstNode &n ); 107Bu::Formatter &operator<<( Bu::Formatter &f, const AstNode &n );