aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-06 17:55:51 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-06 17:55:51 +0330
commitaec4aa1ba09ea654cd02ff8281ee730d98fd3212 (patch)
tree08110ce950616acdad1fb2afe866fbee5fa85545 /src/compiler/ast-tree.h
parenta0988143abd3b725b4aaeea8262a6faa72753ee3 (diff)
moving duplicated codes to functions
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h8
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();