stage1 parser supports doc comments

This commit is contained in:
Andrew Kelley
2019-10-06 16:39:27 -04:00
parent 86171afb9b
commit 8e2c441b2e
8 changed files with 133 additions and 17 deletions

View File

@@ -266,6 +266,8 @@ static const char *node_type_str(NodeType node_type) {
return "AnyFrameType";
case NodeTypeEnumLiteral:
return "EnumLiteral";
case NodeTypeErrorSetField:
return "ErrorSetField";
}
zig_unreachable();
}
@@ -1177,6 +1179,7 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
case NodeTypeTestDecl:
case NodeTypeStructField:
case NodeTypeUsingNamespace:
case NodeTypeErrorSetField:
zig_panic("TODO more ast rendering");
}
}