Skip to content

Commit 7085304

Browse files
committed
rebuild
1 parent bc2dee7 commit 7085304

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

moonscript/compile/statement.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ local statement_compilers = {
140140
current.next = next
141141
current = next
142142
end
143-
local _list_0 = node
144-
for _index_0 = 4, #_list_0 do
145-
cond = _list_0[_index_0]
143+
for _index_0 = 4, #node do
144+
cond = node[_index_0]
146145
add_clause(cond)
147146
end
148147
return root

moonscript/compile/value.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ local value_compilers = {
5353
_with_0:append_list((function()
5454
local _accum_0 = { }
5555
local _len_0 = 1
56-
local _list_0 = node
57-
for _index_0 = 2, #_list_0 do
58-
local v = _list_0[_index_0]
56+
for _index_0 = 2, #node do
57+
local v = node[_index_0]
5958
_accum_0[_len_0] = self:value(v)
6059
_len_0 = _len_0 + 1
6160
end
@@ -115,9 +114,8 @@ local value_compilers = {
115114
local actions
116115
do
117116
local _with_0 = self:line()
118-
local _list_0 = node
119-
for _index_0 = 3, #_list_0 do
120-
local action = _list_0[_index_0]
117+
for _index_0 = 3, #node do
118+
local action = node[_index_0]
121119
_with_0:append(chain_item(action))
122120
end
123121
actions = _with_0

moonscript/errors.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ truncate_traceback = function(traceback, chunk_func)
5050
do
5151
local _accum_0 = { }
5252
local _len_0 = 1
53-
local _list_0 = traceback
5453
local _max_0 = stop
55-
for _index_0 = 1, _max_0 < 0 and #_list_0 + _max_0 or _max_0 do
56-
local t = _list_0[_index_0]
54+
for _index_0 = 1, _max_0 < 0 and #traceback + _max_0 or _max_0 do
55+
local t = traceback[_index_0]
5756
_accum_0[_len_0] = t
5857
_len_0 = _len_0 + 1
5958
end

moonscript/transform.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,8 @@ Statement = Transformer({
854854
if "stm" == _exp_0 then
855855
insert(statements, item[2])
856856
elseif "props" == _exp_0 then
857-
local _list_0 = item
858-
for _index_1 = 2, #_list_0 do
859-
local tuple = _list_0[_index_1]
857+
for _index_1 = 2, #item do
858+
local tuple = item[_index_1]
860859
if ntype(tuple[1]) == "self" then
861860
insert(statements, build.assign_one(unpack(tuple)))
862861
else
@@ -1074,9 +1073,8 @@ Statement = Transformer({
10741073
do
10751074
local _accum_0 = { }
10761075
local _len_0 = 1
1077-
local _list_0 = chain
1078-
for _index_0 = 3, #_list_0 do
1079-
local item = _list_0[_index_0]
1076+
for _index_0 = 3, #chain do
1077+
local item = chain[_index_0]
10801078
_accum_0[_len_0] = item
10811079
_len_0 = _len_0 + 1
10821080
end

0 commit comments

Comments
 (0)