From 13156d99a29ba927f64d344cf4d385414bcf61e1 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 21 Feb 2025 01:44:38 +0330 Subject: add type def as variable fix some memory leaks --- src/compiler/ast-tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index b58d413..c8f5f75 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -213,6 +213,7 @@ AstTreeFunction *getFunction(AstTree *value); bool isConst(AstTree *value); AstTree *makeTypeOf(AstTree *value); bool typeIsEqual(const AstTree *type0, const AstTree *type1); +AstTree *getValue(AstTree *tree); bool isCircularDependencies(AstTreeHelper *helper, AstTreeVariable *variable, AstTree *tree); -- cgit v1.2.3