diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-08-26 22:38:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 22:38:13 +0100 |
| commit | ade4e312fe271030a71baf1291e87728f75cc559 (patch) | |
| tree | f1cc79d447110e9b491ba005c475e67ba55563f5 /src/parser.cpp | |
| parent | 12bd07d2df1e823687ad967e146c22141c651f5d (diff) | |
| parent | dd86a8f01398a2da08f8eb4495049f081901332c (diff) | |
Merge pull request #4154 from avanspector/master
Delay lexical checking for foreign blocks that are in file scope
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; } } |