implement async await and return

This commit is contained in:
Andrew Kelley
2019-08-02 01:05:34 -04:00
parent 0f879d02a4
commit 056c4e2c98
9 changed files with 384 additions and 146 deletions

View File

@@ -1149,9 +1149,11 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
}
case NodeTypeSuspend:
{
fprintf(ar->f, "suspend");
if (node->data.suspend.block != nullptr) {
fprintf(ar->f, "suspend ");
render_node_grouped(ar, node->data.suspend.block);
} else {
fprintf(ar->f, "suspend\n");
}
break;
}