aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-12 19:01:21 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-12 19:06:03 +0300
commit6385450ddba34bc28bd7492d126fd38cb3f86f36 (patch)
tree25717c5d13e67207932bdc6393da7807720b2f6d /src/ast.c
parent29c6d398d22d633425177400f34ab508260f02bf (diff)
downloadek-6385450ddba34bc28bd7492d126fd38cb3f86f36.tar.gz
ek-6385450ddba34bc28bd7492d126fd38cb3f86f36.zip
make id scope point to defining scope
+ Allows defers to refer to the correct scope, but might be a bit surprising since effectively all other nodes use the scope to refer to the containing scope rather than the defining scope.
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index c36d7a7..aeb8c69 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -396,7 +396,6 @@ struct ast *clone_ast(struct ast *n)
assert(n->k);
struct ast *new = create_empty_ast();
new->scope = n->scope;
- new->uses = n->uses;
new->loc = n->loc;
new->k = n->k;
new->v = n->v;