From c64d8217a598364fcb48ed965edc7a138f2f6750 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 6 Jun 2025 02:54:20 +0330 Subject: cleaning import --- src/compiler/ast-tree.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index 7a88f28..cf868fd 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -408,6 +408,13 @@ AstTreeRoot *getAstTreeRoot(char *filePath, AstTreeRoots *roots Time *lexingTime, Time *parsingTime #endif ); +bool astTreeDoImport(AstTreeRoots *roots, AstTreeRoot *root, AstTree *tree, + AstTreeVariable *variable +#ifdef PRINT_STATISTICS + , + Time *lexingTime, Time *parsingTime +#endif +); AstTreeRoot *makeAstRoot(const ParserNode *parsedRoot, char *filePath); bool pushVariable(AstTreeVariables *variables, AstTreeVariable *variable); @@ -459,12 +466,14 @@ AstTree *makeTypeOf(AstTree *value); AstTree *makeTypeOfFunction(AstTreeFunction *function, const char *str_begin, const char *str_end); bool typeIsEqual(AstTree *type0, AstTree *type1, AstTreeScope *scope); -bool typeIsEqualBack(const AstTree *type0, const AstTree *type1,AstTreeScope *scope); +bool typeIsEqualBack(const AstTree *type0, const AstTree *type1, + AstTreeScope *scope); AstTree *getValue(AstTree *tree, bool copy, AstTreeScope *scope); bool isIntType(AstTree *type); bool isFloatType(AstTree *type); -bool isEqual(AstTree *left, AstTree *right,AstTreeScope *scope); -bool isEqualVariable(AstTreeVariable *left, AstTreeVariable *right,AstTreeScope *scope); +bool isEqual(AstTree *left, AstTree *right, AstTreeScope *scope); +bool isEqualVariable(AstTreeVariable *left, AstTreeVariable *right, + AstTreeScope *scope); void allOfVariablesWithImport(AstTreeVariables *variables, AstTreeRoot *root, AstTreeRoots *checkedRoots); -- cgit v1.2.3