From 41e7cadb8df4b9833bc3dd827cac32fd3b01ddbd Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 2 Aug 2016 20:53:18 +0100 Subject: ret, unreachable, param, deref --- src/parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 39c7a4fe7..ddf63d93c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -144,7 +144,7 @@ AST_NODE_KIND(_ComplexStmtBegin, struct{}) \ }) \ AST_NODE_KIND(ForStmt, struct { \ Token token; \ - AstNode *init, *cond, *end; \ + AstNode *init, *cond, *post; \ AstNode *body; \ }) \ AST_NODE_KIND(DeferStmt, struct { Token token; AstNode *stmt; }) \ @@ -638,12 +638,12 @@ gb_inline AstNode *make_return_stmt(AstFile *f, Token token, AstNode *result_lis return result; } -gb_inline AstNode *make_for_stmt(AstFile *f, Token token, AstNode *init, AstNode *cond, AstNode *end, AstNode *body) { +gb_inline AstNode *make_for_stmt(AstFile *f, Token token, AstNode *init, AstNode *cond, AstNode *post, AstNode *body) { AstNode *result = make_node(f, AstNode_ForStmt); result->ForStmt.token = token; result->ForStmt.init = init; result->ForStmt.cond = cond; - result->ForStmt.end = end; + result->ForStmt.post = post; result->ForStmt.body = body; return result; } -- cgit v1.2.3