mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
rebuild
This commit is contained in:
parent
e1c2829d0e
commit
e705656b04
@ -593,10 +593,7 @@ do
|
|||||||
error("deprecated stms call, use transformer")
|
error("deprecated stms call, use transformer")
|
||||||
end
|
end
|
||||||
local current_stms, current_stm_i
|
local current_stms, current_stm_i
|
||||||
do
|
current_stms, current_stm_i = self.current_stms, self.current_stm_i
|
||||||
local _obj_0 = self
|
|
||||||
current_stms, current_stm_i = _obj_0.current_stms, _obj_0.current_stm_i
|
|
||||||
end
|
|
||||||
self.current_stms = stms
|
self.current_stms = stms
|
||||||
for i = 1, #stms do
|
for i = 1, #stms do
|
||||||
self.current_stm_i = i
|
self.current_stm_i = i
|
||||||
|
@ -295,10 +295,7 @@ construct_comprehension = function(inner, clauses)
|
|||||||
local _exp_0 = t
|
local _exp_0 = t
|
||||||
if "for" == _exp_0 then
|
if "for" == _exp_0 then
|
||||||
local name, bounds
|
local name, bounds
|
||||||
do
|
_, name, bounds = clause[1], clause[2], clause[3]
|
||||||
local _obj_0 = clause
|
|
||||||
_, name, bounds = _obj_0[1], _obj_0[2], _obj_0[3]
|
|
||||||
end
|
|
||||||
current_stms = {
|
current_stms = {
|
||||||
"for",
|
"for",
|
||||||
name,
|
name,
|
||||||
@ -307,10 +304,7 @@ construct_comprehension = function(inner, clauses)
|
|||||||
}
|
}
|
||||||
elseif "foreach" == _exp_0 then
|
elseif "foreach" == _exp_0 then
|
||||||
local names, iter
|
local names, iter
|
||||||
do
|
_, names, iter = clause[1], clause[2], clause[3]
|
||||||
local _obj_0 = clause
|
|
||||||
_, names, iter = _obj_0[1], _obj_0[2], _obj_0[3]
|
|
||||||
end
|
|
||||||
current_stms = {
|
current_stms = {
|
||||||
"foreach",
|
"foreach",
|
||||||
names,
|
names,
|
||||||
@ -321,10 +315,7 @@ construct_comprehension = function(inner, clauses)
|
|||||||
}
|
}
|
||||||
elseif "when" == _exp_0 then
|
elseif "when" == _exp_0 then
|
||||||
local cond
|
local cond
|
||||||
do
|
_, cond = clause[1], clause[2]
|
||||||
local _obj_0 = clause
|
|
||||||
_, cond = _obj_0[1], _obj_0[2]
|
|
||||||
end
|
|
||||||
current_stms = {
|
current_stms = {
|
||||||
"if",
|
"if",
|
||||||
cond,
|
cond,
|
||||||
|
Loading…
Reference in New Issue
Block a user