diff options
Diffstat (limited to 'tnslc/compile/scope.tnsl')
-rw-r--r-- | tnslc/compile/scope.tnsl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tnslc/compile/scope.tnsl b/tnslc/compile/scope.tnsl index a87f7b9..7822125 100644 --- a/tnslc/compile/scope.tnsl +++ b/tnslc/compile/scope.tnsl @@ -1,6 +1,5 @@ struct Scope { ~uint8 name, - ~Module current, utils.Vector stack_vars, @@ -14,8 +13,7 @@ struct Scope { } /; method Scope - /; init (~uint8 name, ~Module mod) - self.current = mod + /; init (~uint8 name) self.name = name Variable v @@ -116,12 +114,10 @@ struct Scope { str.from_cstr(name) _delete(name) - out.init(str.as_cstr(), self.current) - out.parent = ~self + out.init(str.as_cstr(), self.current) + out.parent = ~self - return out + return out ;/ ;/ - - |