From b678465c11517a5342b1ec5aa4fe21570f13a3ed Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 29 Aug 2025 21:25:03 +0900 Subject: feat: add utility function to dump any internal object as JSON --- src/ast.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index 662052f..33faff1 100644 --- a/src/ast.c +++ b/src/ast.c @@ -29,12 +29,6 @@ const char* type_kind_stringify(TypeKind k) { unreachable(); } -void type_dump(Type* ty) { - fprintf(stderr, "Type {\n"); - fprintf(stderr, " kind = %s\n", type_kind_stringify(ty->kind)); - fprintf(stderr, "}\n"); -} - Type* type_new(TypeKind kind) { Type* ty = calloc(1, sizeof(Type)); ty->kind = kind; -- cgit v1.2.3-70-g09d2