aboutsummaryrefslogtreecommitdiffstats
path: root/alv/result
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-02-04 00:49:32 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commita3b3db30e1d1ac22852d6c06ea62f0c5e3bc11da (patch)
tree32221fb1eeb814644d1ea58b59f17a7216488eb7 /alv/result
parentlib: fix midi on Lua 5.1 (diff)
downloadalive-a3b3db30e1d1ac22852d6c06ea62f0c5e3bc11da.tar.gz
alive-a3b3db30e1d1ac22852d6c06ea62f0c5e3bc11da.zip
add Dummy AST node
Diffstat (limited to 'alv/result')
-rw-r--r--alv/result/const.moon11
1 files changed, 0 insertions, 11 deletions
diff --git a/alv/result/const.moon b/alv/result/const.moon
index e4367e7..bace973 100644
--- a/alv/result/const.moon
+++ b/alv/result/const.moon
@@ -67,8 +67,6 @@ class Constant extends Result
-- @tparam Scope scope the scope to evaluate in
-- @treturn RTNode the evaluation result
eval: (scope) =>
- return RTNode result: @ if @literal
-
switch @type
when T.num, T.str
RTNode result: @
@@ -173,15 +171,6 @@ class Constant extends Result
-- @treturn Constant
@bang: -> Constant T.bang, true
- --- create a forced-literal Constant.
- --
- -- For internal use in `Builtin`s only.
- --
- -- @treturn Constant
- @literal: (...) ->
- with Constant ...
- .literal = true
-
--- wrap and document a value.
--
-- wraps `args.value` using `wrap`, then assigns `meta`.