From e20ddf634b79d6d955bf341447ea16bf944c44a9 Mon Sep 17 00:00:00 2001 From: A404M Date: Tue, 28 Jan 2025 05:40:07 +0330 Subject: add more type checks --- src/compiler/ast-tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index 7f3e3dc..c5f8dd5 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -118,6 +118,6 @@ bool astTreeParseConstant(ParserNode *parserNode, AstTreeVariables **variables, size_t variables_size); -bool hasTypeOf(AstTree *value, AstTree *type); +bool hasTypeOf(AstTree *value,const AstTree *type); AstTree *makeTypeOf(AstTree *value); -bool typeIsEqual(AstTree *type0, AstTree *type1); +bool typeIsEqual(const AstTree *type0, const AstTree *type1); -- cgit v1.2.3