diff --git a/moonscript/compile.lua b/moonscript/compile.lua index 1792ac5..e674f74 100644 --- a/moonscript/compile.lua +++ b/moonscript/compile.lua @@ -593,10 +593,7 @@ do error("deprecated stms call, use transformer") end local current_stms, current_stm_i - do - local _obj_0 = self - current_stms, current_stm_i = _obj_0.current_stms, _obj_0.current_stm_i - end + current_stms, current_stm_i = self.current_stms, self.current_stm_i self.current_stms = stms for i = 1, #stms do self.current_stm_i = i diff --git a/moonscript/transform.lua b/moonscript/transform.lua index afd4021..c1bf9b7 100644 --- a/moonscript/transform.lua +++ b/moonscript/transform.lua @@ -295,10 +295,7 @@ construct_comprehension = function(inner, clauses) local _exp_0 = t if "for" == _exp_0 then local name, bounds - do - local _obj_0 = clause - _, name, bounds = _obj_0[1], _obj_0[2], _obj_0[3] - end + _, name, bounds = clause[1], clause[2], clause[3] current_stms = { "for", name, @@ -307,10 +304,7 @@ construct_comprehension = function(inner, clauses) } elseif "foreach" == _exp_0 then local names, iter - do - local _obj_0 = clause - _, names, iter = _obj_0[1], _obj_0[2], _obj_0[3] - end + _, names, iter = clause[1], clause[2], clause[3] current_stms = { "foreach", names, @@ -321,10 +315,7 @@ construct_comprehension = function(inner, clauses) } elseif "when" == _exp_0 then local cond - do - local _obj_0 = clause - _, cond = _obj_0[1], _obj_0[2] - end + _, cond = clause[1], clause[2] current_stms = { "if", cond,