aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index a4a1873c76..b18f219828 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -213,6 +213,8 @@ static const char *node_type_str(NodeType node_type) {
return "ErrorType";
case NodeTypeTypeLiteral:
return "TypeLiteral";
+ case NodeTypeVarLiteral:
+ return "VarLiteral";
}
zig_unreachable();
}
@@ -672,6 +674,9 @@ static void render_node(AstRender *ar, AstNode *node) {
case NodeTypeTypeLiteral:
fprintf(ar->f, "type");
break;
+ case NodeTypeVarLiteral:
+ fprintf(ar->f, "var");
+ break;
}
}