mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
add ref to unpack everywhere
This commit is contained in:
parent
92932584b4
commit
232bad8fc3
@ -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])
|
||||
|
@ -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]
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user