aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index 246cfef..6b3b28d 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -291,12 +291,17 @@ void ast_dump(int depth, struct ast *n)
depth++;
if (n->t) {
- printf(" ("); type_dump_list(n->t); printf(")");
+ printf(" (");
+ type_dump_list(n->t);
+ printf(")");
}
if (n->t2)
type_dump_list(n->t2);
+ if (n->scope)
+ printf(" {%llu}", (unsigned long long)n->scope->number);
+
printf("\n");
if (n->s)
@@ -354,6 +359,12 @@ void type_dump(struct type *n)
DUMP(TYPE_CALLABLE);
DUMP(TYPE_TRAIT);
}
+
+ if (n->t1)
+ type_dump_list(n->t1);
+
+ if (n->t0)
+ type_dump_list(n->t0);
}
void type_dump_list(struct type *root)