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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index f4f97c3730..531fcf1852 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -268,6 +268,8 @@ static const char *node_type_str(NodeType node_type) {
return "EnumLiteral";
case NodeTypeErrorSetField:
return "ErrorSetField";
+ case NodeTypeVarFieldType:
+ return "VarFieldType";
}
zig_unreachable();
}
@@ -1184,6 +1186,10 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
fprintf(ar->f, ".%s", buf_ptr(&node->data.enum_literal.identifier->data.str_lit.str));
break;
}
+ case NodeTypeVarFieldType: {
+ fprintf(ar->f, "var");
+ break;
+ }
case NodeTypeParamDecl:
case NodeTypeTestDecl:
case NodeTypeStructField: