diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-25 13:06:09 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-25 13:06:09 +0100 |
| commit | 99080d41f3c02dbc179db8ebb0f215d199f49c89 (patch) | |
| tree | 85b97e030cda198d83681d20a6710c53494376cf /src/parser.hpp | |
| parent | 92f3567ee6e28ac07f237e9dbe7287436954877b (diff) | |
INTERNAL USE ONLY: `//+lazy` build flag
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 390bfbba2..9fc4c95a3 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -77,8 +77,16 @@ struct ImportedFile { isize index; }; +enum AstFileFlag : u32 { + AstFile_IsPrivate = 1<<0, + AstFile_IsTest = 1<<1, + AstFile_IsLazy = 1<<2, +}; + + struct AstFile { i32 id; + u32 flags; AstPackage * pkg; Scope * scope; @@ -114,9 +122,6 @@ struct AstFile { f64 time_to_tokenize; // seconds f64 time_to_parse; // seconds - bool is_private; - bool is_test; - CommentGroup *lead_comment; // Comment (block) before the decl CommentGroup *line_comment; // Comment after the semicolon CommentGroup *docs; // current docs |