aboutsummaryrefslogtreecommitdiff
path: root/src/scope.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-26 16:29:55 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-26 16:29:55 +0300
commitda9fe1e040b04cbe816c67fab7cb45d7db75107c (patch)
tree2cee6a2aadeb654272e0655a8800c407721e4f3c /src/scope.c
parent9ec0e372e1720b8f0857ee6c99997f695ef9ea5d (diff)
downloadposthaste-da9fe1e040b04cbe816c67fab7cb45d7db75107c.tar.gz
posthaste-da9fe1e040b04cbe816c67fab7cb45d7db75107c.zip
restructure debugging a bit
Diffstat (limited to 'src/scope.c')
-rw-r--r--src/scope.c22
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);
-}