aboutsummaryrefslogtreecommitdiffstats
path: root/core/const.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-02-10 14:52:20 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-10 14:52:20 +0000
commitc0ab54600e29a2b8ba318df8c9b76e89897db7fe (patch)
treee6608dcb131429ae1d606156d5e5897a3962e74b /core/const.moon
parentreorganization (diff)
downloadalive-c0ab54600e29a2b8ba318df8c9b76e89897db7fe.tar.gz
alive-c0ab54600e29a2b8ba318df8c9b76e89897db7fe.zip
finally implement function diffing
Diffstat (limited to 'core/const.moon')
-rw-r--r--core/const.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/const.moon b/core/const.moon
index 564ab53..e1d19d9 100644
--- a/core/const.moon
+++ b/core/const.moon
@@ -53,6 +53,8 @@ class Const
stringify: => @raw
+ clone: (prefix) => Const @type, @value, @raw
+
-- static
__tostring: =>
value = if @type == 'opdef' or @type == 'builtin' then @value.__name else @value