diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-23 13:18:59 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-23 13:18:59 +0330 |
commit | 157475f0bd929a9b42b6cd9a4ca7f4fc4e64bf71 (patch) | |
tree | c4559525b05620515721bcd9d9952498b6bf499d /src/compiler/ast-tree.h | |
parent | ab832419702bd28e9b59a9fce169114384a43d88 (diff) |
changed the way which to get variables
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 13 |
1 files changed, 1 insertions, 12 deletions
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); |