aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index c236445..427c4c4 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -206,6 +206,11 @@ void ast_dump(int depth, struct ast *n)
#define DUMP(x) case x: dump(depth, #x); break;
switch (n->k) {
+ DUMP(AST_IMPORT);
+ DUMP(AST_TRAIT_DEF);
+ DUMP(AST_TRAIT_APPLY);
+ DUMP(AST_STRUCT_DEF);
+ DUMP(AST_STRUCT_CONT);
DUMP(AST_CLOSURE);
DUMP(AST_IF);
DUMP(AST_NIL);
@@ -636,6 +641,11 @@ const char *ast_str(enum ast_kind k)
{
#define CASE(x) case x: return #x;
switch (k) {
+ CASE(AST_IMPORT);
+ CASE(AST_TRAIT_DEF);
+ CASE(AST_TRAIT_APPLY);
+ CASE(AST_STRUCT_DEF);
+ CASE(AST_STRUCT_CONT);
CASE(AST_CLOSURE);
CASE(AST_IF);
CASE(AST_NIL);