mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-23 20:58:22 -04:00
VarDecl and ConstDecl split; error, warning, et al. now global
This commit is contained in:
1 parent
eb424bb315
commit
67694c0df0
13 files changed
+1840
-670
No files matched your search
@@ -7,17 +7,9 @@ struct ssaGen {
|
||||
};
|
||||
|
||||
b32 ssa_gen_init(ssaGen *s, Checker *c) {
|
||||
if (c->error_collector.count != 0)
|
||||
if (global_error_collector.count != 0)
|
||||
return false;
|
||||
|
||||
gb_for_array(i, c->parser->files) {
|
||||
AstFile *f = &c->parser->files[i];
|
||||
if (f->error_collector.count != 0)
|
||||
return false;
|
||||
if (f->tokenizer.error_count != 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
isize tc = c->parser->total_token_count;
|
||||
if (tc < 2) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user