aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-29 21:25:03 +0900
committernsfisis <nsfisis@gmail.com>2025-08-29 21:49:56 +0900
commitb678465c11517a5342b1ec5aa4fe21570f13a3ed (patch)
tree6ef19e02b1cf18f5ac451e6104f6e20b475a6f52 /src/ast.c
parent8f352553faec69a6f29854898b93be47604aff28 (diff)
downloadducc-b678465c11517a5342b1ec5aa4fe21570f13a3ed.tar.gz
ducc-b678465c11517a5342b1ec5aa4fe21570f13a3ed.tar.zst
ducc-b678465c11517a5342b1ec5aa4fe21570f13a3ed.zip
feat: add utility function to dump any internal object as JSON
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c6
1 files changed, 0 insertions, 6 deletions
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;