diff options
Diffstat (limited to 'src/scope.c')
-rw-r--r-- | src/scope.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/scope.c b/src/scope.c index 290dfd6..d2521c8 100644 --- a/src/scope.c +++ b/src/scope.c @@ -5,16 +5,6 @@ #include <posthaste/debug.h> #include <posthaste/vec.h> -struct scope { - size_t id; - struct scope *parent; - - const char *fname; - const char *buf; - - struct vec visible; -}; - struct vec scopes = {0}; struct scope *create_scope() @@ -139,15 +129,3 @@ void destroy_scopes() vec_destroy(&scopes); } - -void semantic_error(struct scope *scope, struct ast *n, const char *msg, ...) -{ - va_list args; - va_start(args, msg); - struct src_issue issue; - issue.loc = n->loc; - issue.fname = scope->fname; - issue.buf = scope->buf; - vsrc_issue(issue, msg, args); - va_end(args); -} |