add ref to unpack everywhere

This commit is contained in:
leaf corcoran 2015-12-06 11:34:04 -08:00
parent 92932584b4
commit 232bad8fc3
6 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,8 @@ do
local _obj_0 = table
concat, insert = _obj_0.concat, _obj_0.insert
end
local unpack
unpack = require("moonscript.util").unpack
return {
raw = function(self, node)
return self:add(node[2])

View File

@ -2,6 +2,8 @@
import ntype from require "moonscript.types"
import concat, insert from table
import unpack from require "moonscript.util"
{
raw: (node) => @add node[2]

View File

@ -15,6 +15,8 @@ insert = table.insert
local destructure = require("moonscript.transform.destructure")
local construct_comprehension
construct_comprehension = require("moonscript.transform.comprehension").construct_comprehension
local unpack
unpack = require("moonscript.util").unpack
local with_continue_listener
with_continue_listener = function(body)
local continue_name = nil

View File

@ -15,6 +15,8 @@ import insert from table
destructure = require "moonscript.transform.destructure"
import construct_comprehension from require "moonscript.transform.comprehension"
import unpack from require "moonscript.util"
with_continue_listener = (body) ->
continue_name = nil

View File

@ -23,6 +23,8 @@ local construct_comprehension
construct_comprehension = require("moonscript.transform.comprehension").construct_comprehension
local insert
insert = table.insert
local unpack
unpack = require("moonscript.util").unpack
return Transformer({
["for"] = default_accumulator,
["while"] = default_accumulator,

View File

@ -10,6 +10,7 @@ import Run, transform_last_stm, implicitly_return, chain_is_stub from require "m
import construct_comprehension from require "moonscript.transform.comprehension"
import insert from table
import unpack from require "moonscript.util"
Transformer {
for: default_accumulator