INTERNAL USE ONLY: //+lazy build flag

This commit is contained in:
gingerBill
2021-07-25 13:06:09 +01:00
parent 92f3567ee6
commit 99080d41f3
8 changed files with 191 additions and 74 deletions
+8 -3
View File
@@ -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