aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-10 13:33:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-10 13:33:31 -0400
commit7c68fc958599c74818697056c3b4372d1bb14bfe (patch)
tree38e139138fde47ca3eb3afb22b9d14fe6585eb80 /environment.h
parenteb8b501b95e4d8704245375eb5f532303cc8e2e7 (diff)
Fix some scoping issues with type methods and enum returns
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/environment.h b/environment.h
index 4566d375..a6fabc8d 100644
--- a/environment.h
+++ b/environment.h
@@ -59,9 +59,11 @@ env_t *new_compilation_unit(CORD libname);
env_t *load_module_env(env_t *env, ast_t *ast);
CORD namespace_prefix(env_t *env, namespace_t *ns);
env_t *get_namespace_by_type(env_t *env, type_t *t);
+env_t *global_scope(env_t *env);
env_t *namespace_scope(env_t *env);
env_t *fresh_scope(env_t *env);
env_t *for_scope(env_t *env, ast_t *ast);
+env_t *with_enum_scope(env_t *env, type_t *t);
env_t *namespace_env(env_t *env, const char *namespace_name);
__attribute__((format(printf, 4, 5)))
_Noreturn void compiler_err(file_t *f, const char *start, const char *end, const char *fmt, ...);