mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 14:22:18 -04:00
Tokenize whilst parsing rather than storing every token of a file first
This commit is contained in:
1 parent
fcab1c1887
commit
32f30c3eb3
5 files changed
+119
-119
No files matched your search
+1
-3
@@ -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'");
|
||||
|
||||
Reference in new issue
Block a user