Add file scopes for the packages

This commit is contained in:
gingerBill
2018-05-27 00:10:38 +01:00
parent c067b90403
commit eb11edabe0
8 changed files with 136 additions and 154 deletions
+2 -2
View File
@@ -41,7 +41,8 @@ struct ImportedPackage {
struct AstFile {
AstPackage * package;
// isize id;
Scope * scope;
String fullpath;
gbArena arena;
Tokenizer tokenizer;
@@ -67,7 +68,6 @@ struct AstFile {
AstNode * curr_proc;
isize scope_level;
// Scope * scope; // NOTE(bill): Created in checker
// DeclInfo * decl_info; // NOTE(bill): Created in checker