aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-03-07 03:55:52 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-04-08 18:26:24 -0400
commit0d22a00f6fde79f851a7d19c2096c07f541ed0be (patch)
tree600beb890e8be09168d10849119ef55bb9fe8ffe /src/parser.cpp
parent292d0cbdadd453874af6e2065638a88d4dda8a10 (diff)
downloadzig-0d22a00f6fde79f851a7d19c2096c07f541ed0be.tar.gz
zig-0d22a00f6fde79f851a7d19c2096c07f541ed0be.zip
*WIP* async/await TCP server
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index d6faf4c984..b54a17362e 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1037,6 +1037,7 @@ static AstNode *ast_parse_suffix_op_expr(ParseContext *pc, size_t *token_index,
Token *async_token = &pc->tokens->at(*token_index);
if (async_token->id == TokenIdKeywordAsync) {
+ size_t token_index_of_async = *token_index;
*token_index += 1;
AstNode *allocator_expr_node = nullptr;
@@ -2923,9 +2924,6 @@ void ast_visit_node_children(AstNode *node, void (*visit)(AstNode **, void *cont
visit_field(&node->data.fn_def.fn_proto, visit, context);
visit_field(&node->data.fn_def.body, visit, context);
break;
- case NodeTypeFnDecl:
- visit_field(&node->data.fn_decl.fn_proto, visit, context);
- break;
case NodeTypeParamDecl:
visit_field(&node->data.param_decl.type, visit, context);
break;