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
|
local _obj_0 = table
|
||||||
concat, insert = _obj_0.concat, _obj_0.insert
|
concat, insert = _obj_0.concat, _obj_0.insert
|
||||||
end
|
end
|
||||||
|
local unpack
|
||||||
|
unpack = require("moonscript.util").unpack
|
||||||
return {
|
return {
|
||||||
raw = function(self, node)
|
raw = function(self, node)
|
||||||
return self:add(node[2])
|
return self:add(node[2])
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
import ntype from require "moonscript.types"
|
import ntype from require "moonscript.types"
|
||||||
import concat, insert from table
|
import concat, insert from table
|
||||||
|
|
||||||
|
import unpack from require "moonscript.util"
|
||||||
|
|
||||||
{
|
{
|
||||||
raw: (node) => @add node[2]
|
raw: (node) => @add node[2]
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ insert = table.insert
|
|||||||
local destructure = require("moonscript.transform.destructure")
|
local destructure = require("moonscript.transform.destructure")
|
||||||
local construct_comprehension
|
local construct_comprehension
|
||||||
construct_comprehension = require("moonscript.transform.comprehension").construct_comprehension
|
construct_comprehension = require("moonscript.transform.comprehension").construct_comprehension
|
||||||
|
local unpack
|
||||||
|
unpack = require("moonscript.util").unpack
|
||||||
local with_continue_listener
|
local with_continue_listener
|
||||||
with_continue_listener = function(body)
|
with_continue_listener = function(body)
|
||||||
local continue_name = nil
|
local continue_name = nil
|
||||||
|
@ -15,6 +15,8 @@ import insert from table
|
|||||||
destructure = require "moonscript.transform.destructure"
|
destructure = require "moonscript.transform.destructure"
|
||||||
import construct_comprehension from require "moonscript.transform.comprehension"
|
import construct_comprehension from require "moonscript.transform.comprehension"
|
||||||
|
|
||||||
|
import unpack from require "moonscript.util"
|
||||||
|
|
||||||
with_continue_listener = (body) ->
|
with_continue_listener = (body) ->
|
||||||
continue_name = nil
|
continue_name = nil
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ local construct_comprehension
|
|||||||
construct_comprehension = require("moonscript.transform.comprehension").construct_comprehension
|
construct_comprehension = require("moonscript.transform.comprehension").construct_comprehension
|
||||||
local insert
|
local insert
|
||||||
insert = table.insert
|
insert = table.insert
|
||||||
|
local unpack
|
||||||
|
unpack = require("moonscript.util").unpack
|
||||||
return Transformer({
|
return Transformer({
|
||||||
["for"] = default_accumulator,
|
["for"] = default_accumulator,
|
||||||
["while"] = 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 construct_comprehension from require "moonscript.transform.comprehension"
|
||||||
|
|
||||||
import insert from table
|
import insert from table
|
||||||
|
import unpack from require "moonscript.util"
|
||||||
|
|
||||||
Transformer {
|
Transformer {
|
||||||
for: default_accumulator
|
for: default_accumulator
|
||||||
|
Loading…
Reference in New Issue
Block a user