From 7085304207aa197f4b4c0e03b4e0c4e51dd3bc21 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Sun, 30 Jun 2013 21:47:56 -0700 Subject: [PATCH] rebuild --- moonscript/compile/statement.lua | 5 ++--- moonscript/compile/value.lua | 10 ++++------ moonscript/errors.lua | 5 ++--- moonscript/transform.lua | 10 ++++------ 4 files changed, 12 insertions(+), 18 deletions(-) diff --git a/moonscript/compile/statement.lua b/moonscript/compile/statement.lua index bf85807..65cc2d5 100644 --- a/moonscript/compile/statement.lua +++ b/moonscript/compile/statement.lua @@ -140,9 +140,8 @@ local statement_compilers = { current.next = next current = next end - local _list_0 = node - for _index_0 = 4, #_list_0 do - cond = _list_0[_index_0] + for _index_0 = 4, #node do + cond = node[_index_0] add_clause(cond) end return root diff --git a/moonscript/compile/value.lua b/moonscript/compile/value.lua index b4d6e3a..d5494ea 100644 --- a/moonscript/compile/value.lua +++ b/moonscript/compile/value.lua @@ -53,9 +53,8 @@ local value_compilers = { _with_0:append_list((function() local _accum_0 = { } local _len_0 = 1 - local _list_0 = node - for _index_0 = 2, #_list_0 do - local v = _list_0[_index_0] + for _index_0 = 2, #node do + local v = node[_index_0] _accum_0[_len_0] = self:value(v) _len_0 = _len_0 + 1 end @@ -115,9 +114,8 @@ local value_compilers = { local actions do local _with_0 = self:line() - local _list_0 = node - for _index_0 = 3, #_list_0 do - local action = _list_0[_index_0] + for _index_0 = 3, #node do + local action = node[_index_0] _with_0:append(chain_item(action)) end actions = _with_0 diff --git a/moonscript/errors.lua b/moonscript/errors.lua index 91a91a1..f8d3254 100644 --- a/moonscript/errors.lua +++ b/moonscript/errors.lua @@ -50,10 +50,9 @@ truncate_traceback = function(traceback, chunk_func) do local _accum_0 = { } local _len_0 = 1 - local _list_0 = traceback local _max_0 = stop - for _index_0 = 1, _max_0 < 0 and #_list_0 + _max_0 or _max_0 do - local t = _list_0[_index_0] + for _index_0 = 1, _max_0 < 0 and #traceback + _max_0 or _max_0 do + local t = traceback[_index_0] _accum_0[_len_0] = t _len_0 = _len_0 + 1 end diff --git a/moonscript/transform.lua b/moonscript/transform.lua index f1e16de..09a8aa2 100644 --- a/moonscript/transform.lua +++ b/moonscript/transform.lua @@ -854,9 +854,8 @@ Statement = Transformer({ if "stm" == _exp_0 then insert(statements, item[2]) elseif "props" == _exp_0 then - local _list_0 = item - for _index_1 = 2, #_list_0 do - local tuple = _list_0[_index_1] + for _index_1 = 2, #item do + local tuple = item[_index_1] if ntype(tuple[1]) == "self" then insert(statements, build.assign_one(unpack(tuple))) else @@ -1074,9 +1073,8 @@ Statement = Transformer({ do local _accum_0 = { } local _len_0 = 1 - local _list_0 = chain - for _index_0 = 3, #_list_0 do - local item = _list_0[_index_0] + for _index_0 = 3, #chain do + local item = chain[_index_0] _accum_0[_len_0] = item _len_0 = _len_0 + 1 end