implement while for nullables and error unions

See #357
This commit is contained in:
Andrew Kelley
2017-05-04 10:18:01 -04:00
parent 698829b772
commit 20b1491e6b
6 changed files with 336 additions and 90 deletions

View File

@@ -1654,7 +1654,7 @@ static AstNode *ast_parse_while_expr(ParseContext *pc, size_t *token_index, bool
ast_eat_token(pc, token_index, TokenIdBinOr);
}
node->data.while_expr.body = ast_parse_block_or_expression(pc, token_index, true);
node->data.while_expr.else_node = ast_parse_block_or_expression(pc, token_index, true);
}
return node;