diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-17 23:53:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-17 23:53:43 -0500 |
| commit | 39207fa1d46ccaf55de80e1afd89fbccca6a73e7 (patch) | |
| tree | adc43427b2ea4a30fba1cf12c5fa8117187ebe06 /src/parser.cpp | |
| parent | 7e549540527fec891bc67d5e657f82b7087530a3 (diff) | |
| parent | c70ee9177e5b0095c152b66fe8f22cd870e778b9 (diff) | |
| download | zig-39207fa1d46ccaf55de80e1afd89fbccca6a73e7.tar.gz zig-39207fa1d46ccaf55de80e1afd89fbccca6a73e7.zip | |
Merge pull request #1963 from matthew-mcallister/dedup-compile-log-warning
Deduplicate compile log statement warnings
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
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; } |
