From 2509637fb653cc8f5987736c1485a35245baa9b7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 2 May 2026 17:50:56 +0900 Subject: feat: generate .file and .loc directives --- src/ast.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ast.h') 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; -- cgit v1.3.1