aboutsummaryrefslogtreecommitdiffstats
path: root/core/scope.moon
diff options
context:
space:
mode:
Diffstat (limited to 'core/scope.moon')
-rw-r--r--core/scope.moon8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/scope.moon b/core/scope.moon
index ed4d67d..aaa38f2 100644
--- a/core/scope.moon
+++ b/core/scope.moon
@@ -1,10 +1,10 @@
-import Const from require 'core.const'
+import Value from require 'core.value'
class Scope
new: (@node, @parent) =>
@values = {}
- set_raw: (key, val) => @values[key] = Const.wrap val, key
+ set_raw: (key, val) => @values[key] = Value.wrap val, key
set: (key, val) =>
L\trace "setting #{key} = #{val} in #{@}"
@values[key] = val
@@ -22,7 +22,7 @@ class Scope
scope = @get start
assert scope and scope.type == 'scope', "cant find '#{prefix}#{start}' for '#{prefix}#{key}'"
- scope\getc!\get rest, "#{prefix}#{start}/"
+ scope\unwrap!\get rest, "#{prefix}#{start}/"
use: (other) =>
L\trace "using defs from #{other} in #{@}"
@@ -31,7 +31,7 @@ class Scope
from_table: (tbl) ->
with Scope!
- .values = { k, Const.wrap v, k for k,v in pairs tbl }
+ .values = { k, Value.wrap v, k for k,v in pairs tbl }
__tostring: =>
buf = "<Scope"