From e2fa11b7fe35c6d7033e15725d08a09bd0f3c73a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 29 Nov 2024 19:39:17 -0500 Subject: Rename :serialize() -> :serialized() --- typecheck.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'typecheck.c') diff --git a/typecheck.c b/typecheck.c index ba228305..e602c774 100644 --- a/typecheck.c +++ b/typecheck.c @@ -722,10 +722,6 @@ type_t *get_type(env_t *env, ast_t *ast) case FunctionCall: { auto call = Match(ast, FunctionCall); - // HACK: - if (call->fn->tag == Var && streq(Match(call->fn, Var)->name, "serialize")) - return Type(ArrayType, Type(ByteType)); - type_t *fn_type_t = get_type(env, call->fn); if (!fn_type_t) code_err(call->fn, "I couldn't find this function"); @@ -747,7 +743,7 @@ type_t *get_type(env_t *env, ast_t *ast) case MethodCall: { auto call = Match(ast, MethodCall); - if (streq(call->name, "serialize")) + if (streq(call->name, "serialized")) // Data serialization return Type(ArrayType, Type(ByteType)); type_t *self_value_t = value_type(get_type(env, call->self)); -- cgit v1.2.3