diff options
| author | avanspector <avanspector@gmail.com> | 2024-08-26 20:59:16 +0200 |
|---|---|---|
| committer | avanspector <avanspector@gmail.com> | 2024-08-26 20:59:16 +0200 |
| commit | 43ec2b9253379d03b69f40b57ef2aafd2c968416 (patch) | |
| tree | c6244c39787d0dd42d05aabad37877c7fe5c88d7 /src/parser.cpp | |
| parent | c21bbae4274de3ce45bde22514124c8935b06664 (diff) | |
checker: delay foreign block checking
if file scope, otherwise as before
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index b250a3163..e3143dd33 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -6446,7 +6446,7 @@ gb_internal bool parse_file(Parser *p, AstFile *f) { } f->total_file_decl_count += calc_decl_count(stmt); - if (stmt->kind == Ast_WhenStmt || stmt->kind == Ast_ExprStmt || stmt->kind == Ast_ImportDecl) { + if (stmt->kind == Ast_WhenStmt || stmt->kind == Ast_ExprStmt || stmt->kind == Ast_ImportDecl || stmt->kind == Ast_ForeignBlockDecl) { f->delayed_decl_count += 1; } } |