aboutsummaryrefslogtreecommitdiff
path: root/src/checker.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-02-19 12:38:49 +0000
committerGinger Bill <bill@gingerbill.org>2017-02-19 12:38:49 +0000
commit6fdcbefe5d488deea2825d908ff36af624e170d2 (patch)
treeb85f96e764bb61ee9cc428864f716a79ccdf1b2b /src/checker.c
parent3cec2550d9b15eb56b8dd1b42a30b9f47ace0b4c (diff)
Unexported struct fields
Diffstat (limited to 'src/checker.c')
-rw-r--r--src/checker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker.c b/src/checker.c
index c512e6e69..94ae0c2e0 100644
--- a/src/checker.c
+++ b/src/checker.c
@@ -261,6 +261,7 @@ typedef struct DelayedDecl {
} DelayedDecl;
typedef struct CheckerContext {
+ Scope * file_scope;
Scope * scope;
DeclInfo * decl;
u32 stmt_state_flags;
@@ -1018,6 +1019,7 @@ void add_curr_ast_file(Checker *c, AstFile *file) {
c->curr_ast_file = file;
c->context.decl = file->decl_info;
c->context.scope = file->scope;
+ c->context.file_scope = file->scope;
}
}