mirror of
https://github.com/leafo/moonscript.git
synced 2024-10-05 05:34:19 +00:00
delete dead function
This commit is contained in:
parent
cae4d4ae7a
commit
9d6467977a
@ -8,33 +8,6 @@ do
|
|||||||
ntype = _table_0.ntype
|
ntype = _table_0.ntype
|
||||||
end
|
end
|
||||||
local concat, insert = table.concat, table.insert
|
local concat, insert = table.concat, table.insert
|
||||||
local table_append
|
|
||||||
table_append = function(name, len, value)
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
"update",
|
|
||||||
len,
|
|
||||||
"+=",
|
|
||||||
1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"assign",
|
|
||||||
{
|
|
||||||
{
|
|
||||||
"chain",
|
|
||||||
name,
|
|
||||||
{
|
|
||||||
"index",
|
|
||||||
len
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
value_compile = {
|
value_compile = {
|
||||||
exp = function(self, node)
|
exp = function(self, node)
|
||||||
local _comp
|
local _comp
|
||||||
|
@ -11,13 +11,6 @@ import concat, insert from table
|
|||||||
|
|
||||||
export value_compile
|
export value_compile
|
||||||
|
|
||||||
table_append = (name, len, value) ->
|
|
||||||
{
|
|
||||||
{"update", len, "+=", 1}
|
|
||||||
{"assign", {
|
|
||||||
{"chain", name, {"index", len}} }, { value }}
|
|
||||||
}
|
|
||||||
|
|
||||||
value_compile =
|
value_compile =
|
||||||
-- list of values separated by binary operators
|
-- list of values separated by binary operators
|
||||||
exp: (node) =>
|
exp: (node) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user