From 698c80e46460ab76fd4859a7c3026650bd3cce44 Mon Sep 17 00:00:00 2001 From: A404M Date: Tue, 18 Mar 2025 17:15:28 +0330 Subject: fixed multi depth dependencies --- src/compiler/ast-tree.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index cc66ede..19ff9e9 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -224,8 +224,11 @@ AstTree *makeTypeOf(AstTree *value); bool typeIsEqual(const AstTree *type0, const AstTree *type1); AstTree *getValue(AstTree *tree, AstTreeSetTypesHelper helper); -bool isCircularDependencies(AstTreeHelper *helper, AstTreeVariable *variable, - AstTree *tree); +bool isCircularDependencies(AstTreeHelper *helper, AstTreeVariable *variable); +bool isCircularDependenciesBack(AstTreeHelper *helper, AstTreeVariable *variable, + AstTree *tree,AstTreeVariables *checkedVariables); +bool isCircularDependenciesVariable(AstTreeHelper *helper, AstTreeVariable *toBeFound, + AstTreeVariable *currentVariable,AstTreeVariables *checkedVariables); bool setAllTypesRoot(AstTreeRoot *root, AstTreeHelper *helper); bool setAllTypes(AstTree *tree, AstTreeSetTypesHelper helper, -- cgit v1.2.3