aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-07-09 15:27:45 +0100
committerGitHub <noreply@github.com>2024-07-09 15:27:45 +0100
commit9782d7b928a0aea4ed86f6a51ef8593bcc14fb7e (patch)
treebf26703022465f3902fbf4fc5e29da54ba61e1ba /src/parser.hpp
parent9575d85f1aadf6ad501328990b9017d825096750 (diff)
parent5627af582a7882c640f0f4c5b285bafb6377fce1 (diff)
Merge pull request #3896 from odin-lang/cached-builds
Internal Cached Builds
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 521fd7a37..86b3393af 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -140,6 +140,8 @@ struct AstFile {
// This is effectively a queue but does not require any multi-threading capabilities
Array<Ast *> delayed_decls_queues[AstDelayQueue_COUNT];
+ std::atomic<isize> seen_load_directive_count;
+
#define PARSER_MAX_FIX_COUNT 6
isize fix_count;
TokenPos fix_prev_pos;
@@ -210,6 +212,8 @@ struct Parser {
std::atomic<isize> total_token_count;
std::atomic<isize> total_line_count;
+ std::atomic<isize> total_seen_load_directive_count;
+
// TODO(bill): What should this mutex be per?
// * Parser
// * Package