mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-05 03:44:45 -04:00
checker: delay foreign block checking
if file scope, otherwise as before
This commit is contained in:
1 parent
c21bbae427
commit
43ec2b9253
3 files changed
+22
-9
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user