aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-02 17:50:56 +0900
committernsfisis <nsfisis@gmail.com>2026-05-02 18:29:51 +0900
commit2509637fb653cc8f5987736c1485a35245baa9b7 (patch)
tree18f5cbc7d750b90d916f4d1db5dc5c823178bb54 /src/ast.h
parentd81d087caf4fdb9a6ce482133d5c50c3113d13cc (diff)
downloadducc-2509637fb653cc8f5987736c1485a35245baa9b7.tar.gz
ducc-2509637fb653cc8f5987736c1485a35245baa9b7.tar.zst
ducc-2509637fb653cc8f5987736c1485a35245baa9b7.zip
feat: generate .file and .loc directives
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;