diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-03-18 17:15:28 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-03-18 17:15:28 +0330 |
commit | 698c80e46460ab76fd4859a7c3026650bd3cce44 (patch) | |
tree | 37ca1579ce15ce204a60c9bceb758066b1477c98 /src/compiler/ast-tree.h | |
parent | 9110df75497a6be92ebbb3b31ff551ca0d2c2cea (diff) |
fixed multi depth dependencies
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 7 |
1 files changed, 5 insertions, 2 deletions
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, |