diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-07 13:06:09 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-07 13:06:09 +0330 |
commit | 1f73f7e22c207fa72391253e21332e02d055bd72 (patch) | |
tree | ecede5635f630c571f574d1718d329ffb892449c /src/compiler/ast-tree.h | |
parent | 4ec0e96e32a271ff59099aa6bb4233b107195ccd (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.h | 7 |
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, |