summaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-07 13:06:09 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-07 13:06:09 +0330
commit1f73f7e22c207fa72391253e21332e02d055bd72 (patch)
treeecede5635f630c571f574d1718d329ffb892449c /src/compiler/ast-tree.h
parent4ec0e96e32a271ff59099aa6bb4233b107195ccd (diff)
fix type checking
fix memory leak in int value to float conversion
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h
index d8e9f9a..f29ce11 100644
--- a/src/compiler/ast-tree.h
+++ b/src/compiler/ast-tree.h
@@ -274,10 +274,11 @@ AstTree *astTreeParseAccessOperator(ParserNode *parserNode,
AstTreeHelper *helper, AstTreeToken token);
bool isFunction(AstTree *value);
-bool isConst(AstTree *tree, AstTreeHelper *helper);
+bool isConst(AstTree *tree);
AstTree *makeTypeOf(AstTree *value);
-bool typeIsEqual(const AstTree *type0, const AstTree *type1);
-AstTree *getValue(AstTree *tree, AstTreeSetTypesHelper helper);
+bool typeIsEqual(AstTree *type0,AstTree *type1);
+bool typeIsEqualBack(const AstTree *type0, const AstTree *type1);
+AstTree *getValue(AstTree *tree);
bool isCircularDependencies(AstTreeHelper *helper, AstTreeVariable *variable);
bool isCircularDependenciesBack(AstTreeHelper *helper,