From aec4aa1ba09ea654cd02ff8281ee730d98fd3212 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 6 Jun 2025 17:55:51 +0330 Subject: moving duplicated codes to functions --- src/compiler/ast-tree.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/compiler/ast-tree.h') 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(); -- cgit v1.2.3