aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorMatthew McAllister <matthew.mcallister.0@gmail.com>2019-02-14 15:54:37 -0800
committerMatthew McAllister <matthew.mcallister.0@gmail.com>2019-02-17 14:02:37 -0800
commit51783510b9b972fab52d429ff3311b0fe8402e42 (patch)
treee01041cba524688af54615406fb108247000d067 /src/parser.cpp
parentde18ece29436290cae3608d2c942e7e0a69f1a44 (diff)
downloadzig-51783510b9b972fab52d429ff3311b0fe8402e42.tar.gz
zig-51783510b9b972fab52d429ff3311b0fe8402e42.zip
Deduplicate compile log statement warnings
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 3a6ce04647..6fe78c14c3 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2739,6 +2739,7 @@ static AstNode *ast_parse_async_prefix(ParseContext *pc) {
AstNode *res = ast_create_node(pc, NodeTypeFnCallExpr, async);
res->data.fn_call_expr.is_async = true;
+ res->data.fn_call_expr.seen = false;
if (eat_token_if(pc, TokenIdCmpLessThan) != nullptr) {
AstNode *prefix_expr = ast_expect(pc, ast_parse_prefix_expr);
expect_token(pc, TokenIdCmpGreaterThan);
@@ -2759,6 +2760,7 @@ static AstNode *ast_parse_fn_call_argumnets(ParseContext *pc) {
AstNode *res = ast_create_node(pc, NodeTypeFnCallExpr, paren);
res->data.fn_call_expr.params = params;
+ res->data.fn_call_expr.seen = false;
return res;
}