aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index 0749420..f1405c6 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -2,6 +2,7 @@
#define DUCC_AST_H
#include "ducc.h"
+#include "io.h"
typedef enum {
StorageClass_unspecified,
@@ -328,6 +329,8 @@ typedef struct {
struct AstNode {
AstNodeKind kind;
+ // TODO: currently only limited set of ast nodes have loc field.
+ SourceLocation loc;
Type* ty;
union {
IntExprNode* int_expr;