diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-06 17:55:51 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-06 17:55:51 +0330 |
commit | aec4aa1ba09ea654cd02ff8281ee730d98fd3212 (patch) | |
tree | 08110ce950616acdad1fb2afe866fbee5fa85545 /src/compiler/ast-tree.h | |
parent | a0988143abd3b725b4aaeea8262a6faa72753ee3 (diff) |
moving duplicated codes to functions
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index cf868fd..0d63252 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -462,6 +462,7 @@ bool isFunction(AstTree *value); bool isShapeShifter(AstTreeFunction *function); bool hasAnyTypeInside(AstTree *type); bool isConst(AstTree *tree); +bool isLeftValue(AstTree *tree); AstTree *makeTypeOf(AstTree *value); AstTree *makeTypeOfFunction(AstTreeFunction *function, const char *str_begin, const char *str_end); @@ -557,6 +558,13 @@ AstTreeVariable *setTypesFindVariable(const char *name_begin, AstTree *getShapeShifterElement(AstTreeFunctionCall *metadata, AstTreeSetTypesHelper helper); +bool doesFunctionMatch(AstTreeTypeFunction *function, + AstTreeFunctionCall *functionCall, + AstTreeSetTypesHelper helper); +bool doesShapeShifterMatch(AstTreeShapeShifter *shapeShifter, + AstTreeFunctionCall *functionCall, + AstTreeSetTypesHelper helper); + char *u8ArrayToCString(AstTree *tree); AstTree *makeStringType(); |