diff options
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |