diff options
| author | gingerBill <bill@gingerbill.org> | 2018-11-07 16:11:14 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-11-07 16:11:14 +0000 |
| commit | f9654b6c368d21d665850f4d6f75ebffdf313854 (patch) | |
| tree | c49eb9fc636719b39a161f5c418bebf43c5cbad3 /src/parser.hpp | |
| parent | 6659ceb551c3d1959ab8b8aa3301f66973cf1aa6 (diff) | |
Fix package usage with `when` on `import` #278
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 732d499b8..825e26f32 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -122,8 +122,10 @@ struct AstPackage { String fullpath; Array<AstFile *> files; - Scope * scope; // NOTE(bill): Created in checker - DeclInfo *decl_info; // NOTE(bill): Created in checker + // NOTE(bill): Created/set in checker + Scope * scope; + DeclInfo *decl_info; + bool used; }; |