aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-14 20:44:26 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-14 20:44:26 +0300
commit2023a7b2d9656f80b00de81453348c0a66f200f7 (patch)
tree06e4ea293318955cc4cf620428d04f1708c17364 /src/debug.c
parent1a56a881bc2c37614cfd074e7b986211c6d04809 (diff)
downloadek-2023a7b2d9656f80b00de81453348c0a66f200f7.tar.gz
ek-2023a7b2d9656f80b00de81453348c0a66f200f7.zip
test cleanup
+ Somewhat poor Git hygiene but I also fixed some bugs while I was at it.
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index e90f1ee..32c74a2 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -280,10 +280,18 @@ static void _type_str(FILE *fp, struct type *type)
break;
}
+ case TYPE_ENUM: {
+ struct ast *def = type->d;
+ if (enum_id(def)) {
+ fprintf(fp, "%s", enum_id(def));
+ }
+ break;
+ }
+
case TYPE_TRAIT: {
struct ast *def = type->d;
if (trait_id(def)) {
- fprintf(fp, "%s ", trait_id(def));
+ fprintf(fp, "%s", trait_id(def));
}
if (struct_params(def)) {