Tokenize whilst parsing rather than storing every token of a file first

This commit is contained in:
gingerBill committed 2026-10-03 16:03:59 +01:00
1 parent fcab1c1887
commit 32f30c3eb3
5 files changed
+119 -119

No files matched your search

+1 -3
View File
@@ -7803,9 +7803,7 @@ gb_internal void check_parsed_files(Checker *c) {
token.pos.column = 1;
if (s->pkg->files.count > 0) {
AstFile *f = s->pkg->files[0];
if (f->tokens.count > 0) {
token = f->tokens[0];
}
token = f->first_token;
}
error(token, "Undefined entry point procedure 'main'");