summaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-01-29 04:25:43 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-01-29 04:25:43 +0330
commitf8019d33f61807de5369d78de6216427c56500dd (patch)
treeec19302852093979f8ef72394ec575fd6877443c /src/compiler/ast-tree.c
parentf090d484ab9425be9d7e4e3f42ba4224dde35c2d (diff)
make a todo to remember
Diffstat (limited to 'src/compiler/ast-tree.c')
-rw-r--r--src/compiler/ast-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.c b/src/compiler/ast-tree.c
index 2c034d1..34147b1 100644
--- a/src/compiler/ast-tree.c
+++ b/src/compiler/ast-tree.c
@@ -297,6 +297,8 @@ AstTreeRoot *makeAstTree(ParserNode *parsedRoot) {
variable->name_begin = node_metadata->name->str_begin;
variable->name_end = node_metadata->name->str_end;
+ // TODO: set type some how
+
if (!pushVariable(&root->variables, variable)) {
astTreeVariableDelete(variable);
goto RETURN_ERROR;