aboutsummaryrefslogtreecommitdiffstats
path: root/core/const.moon
diff options
context:
space:
mode:
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