From 157475f0bd929a9b42b6cd9a4ca7f4fc4e64bf71 Mon Sep 17 00:00:00 2001 From: A404M Date: Wed, 23 Apr 2025 13:18:59 +0330 Subject: changed the way which to get variables --- src/compiler/ast-tree.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index 43971ab..0360f7e 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -120,16 +120,6 @@ typedef struct AstTreeVariables { size_t size; } AstTreeVariables; -typedef struct AstTreeVariableCandidate { - AstTreeVariable *variable; - size_t index; -} AstTreeVariableCandidate; - -typedef struct AstTreeVariableCandidates { - AstTreeVariableCandidate *data; - size_t size; -} AstTreeVariableCandidates; - typedef struct AstTrees { AstTree **data; size_t size; @@ -218,6 +208,7 @@ typedef struct AstTreeHelper { typedef struct AstTreeSetTypesHelper { AstTree *lookingType; AstTreeVariables dependencies; + AstTreeVariables variables; } AstTreeSetTypesHelper; typedef struct AstTreeStruct { @@ -281,8 +272,6 @@ AstTreeRoot *makeAstTree(ParserNode *parsedRoot); bool pushVariable(AstTreeHelper *helper, AstTreeVariables *variables, AstTreeVariable *variable); -AstTreeVariableCandidates *getAllVariables(AstTreeHelper *helper, - char *name_begin, char *name_end); AstTree *astTreeParse(ParserNode *parserNode, AstTreeHelper *helper); AstTree *astTreeParseFunction(ParserNode *parserNode, AstTreeHelper *helper); -- cgit v1.2.3