mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 03:10:06 +00:00
Set the file's filename and directory in init_ast_file
This commit is contained in:
@@ -99,7 +99,11 @@ struct AstFile {
|
||||
Scope * scope;
|
||||
|
||||
Ast * pkg_decl;
|
||||
|
||||
String fullpath;
|
||||
String filename;
|
||||
String directory;
|
||||
|
||||
Tokenizer tokenizer;
|
||||
Array<Token> tokens;
|
||||
isize curr_token_index;
|
||||
@@ -109,6 +113,7 @@ struct AstFile {
|
||||
Token package_token;
|
||||
String package_name;
|
||||
|
||||
|
||||
// >= 0: In Expression
|
||||
// < 0: In Control Clause
|
||||
// NOTE(bill): Used to prevent type literals in control clauses
|
||||
|
||||
Reference in New Issue
Block a user