aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-19 21:31:57 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit071bdd4d6facb8786f089882d53c127e6163e3ce (patch)
tree513fe2ea9760a0fa7cd3f5d6e272798b9551d4eb /include
parent2323ca6c9ec3c8ee76b9acf13745b80b92952a6a (diff)
Set file scope when parser is created. No need to resolve for every @import instance
Diffstat (limited to 'include')
-rw-r--r--include/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 47d4471..a7fbb34 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -17,7 +17,7 @@ struct amal_compiler {
ScopedAllocator allocator;
Scope root_scope;
Buffer/*<Parser*>*/ parsers;
- Buffer/*<BufferView>*/ queued_files;
+ Buffer/*<FileScopeReference*>*/ queued_files;
HashMap/*<BufferView, FileScopeReference*>*/ file_scopes;
ParserThreadData *threads;
int usable_thread_count;