aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-09-08 00:24:48 -0400
committerAndrew Kelley <superjoe30@gmail.com>2016-09-08 00:24:48 -0400
commitd324b1befa6c7f0fd5d18ffe45a98d104a62d8a0 (patch)
tree0258132b13007f3b93cabc2ca54f4d17689e0c2d /src/ast_render.cpp
parentde7e88c38fcaa37c98c2425be341568e8e193ffc (diff)
downloadzig-d324b1befa6c7f0fd5d18ffe45a98d104a62d8a0.tar.gz
zig-d324b1befa6c7f0fd5d18ffe45a98d104a62d8a0.zip
ability to infer parameter types
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;
}
}