Skip to content

Commit d378e21

Browse files
committed
rebuild for import updates
1 parent 347b427 commit d378e21

File tree

11 files changed

+100
-52
lines changed

11 files changed

+100
-52
lines changed

moonscript/compile.lua

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,36 @@ local dump = require("moonscript.dump")
33
local transform = require("moonscript.transform")
44
local NameProxy, LocalName
55
do
6-
local _table_0 = require("moonscript.transform.names")
7-
NameProxy, LocalName = _table_0.NameProxy, _table_0.LocalName
6+
local _obj_0 = require("moonscript.transform.names")
7+
NameProxy, LocalName = _obj_0.NameProxy, _obj_0.LocalName
88
end
99
local Set
1010
do
11-
local _table_0 = require("moonscript.data")
12-
Set = _table_0.Set
11+
local _obj_0 = require("moonscript.data")
12+
Set = _obj_0.Set
1313
end
1414
local ntype, has_value
1515
do
16-
local _table_0 = require("moonscript.types")
17-
ntype, has_value = _table_0.ntype, _table_0.has_value
16+
local _obj_0 = require("moonscript.types")
17+
ntype, has_value = _obj_0.ntype, _obj_0.has_value
1818
end
1919
local statement_compilers
2020
do
21-
local _table_0 = require("moonscript.compile.statement")
22-
statement_compilers = _table_0.statement_compilers
21+
local _obj_0 = require("moonscript.compile.statement")
22+
statement_compilers = _obj_0.statement_compilers
2323
end
2424
local value_compilers
2525
do
26-
local _table_0 = require("moonscript.compile.value")
27-
value_compilers = _table_0.value_compilers
26+
local _obj_0 = require("moonscript.compile.value")
27+
value_compilers = _obj_0.value_compilers
2828
end
29-
local concat, insert = table.concat, table.insert
30-
local pos_to_line, get_closest_line, trim, unpack = util.pos_to_line, util.get_closest_line, util.trim, util.unpack
29+
local concat, insert
30+
do
31+
local _obj_0 = table
32+
concat, insert = _obj_0.concat, _obj_0.insert
33+
end
34+
local pos_to_line, get_closest_line, trim, unpack
35+
pos_to_line, get_closest_line, trim, unpack = util.pos_to_line, util.get_closest_line, util.trim, util.unpack
3136
local mtype = util.moon.type
3237
local indent_char = " "
3338
local Line, DelayedLine, Lines, Block, RootBlock

moonscript/compile/statement.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
local util = require("moonscript.util")
22
local data = require("moonscript.data")
3-
local reversed, unpack = util.reversed, util.unpack
3+
local reversed, unpack
4+
reversed, unpack = util.reversed, util.unpack
45
local ntype
56
do
6-
local _table_0 = require("moonscript.types")
7-
ntype = _table_0.ntype
7+
local _obj_0 = require("moonscript.types")
8+
ntype = _obj_0.ntype
9+
end
10+
local concat, insert
11+
do
12+
local _obj_0 = table
13+
concat, insert = _obj_0.concat, _obj_0.insert
814
end
9-
local concat, insert = table.concat, table.insert
1015
local statement_compilers = {
1116
raw = function(self, node)
1217
return self:add(node[2])

moonscript/compile/value.lua

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@ local util = require("moonscript.util")
22
local data = require("moonscript.data")
33
local ntype
44
do
5-
local _table_0 = require("moonscript.types")
6-
ntype = _table_0.ntype
5+
local _obj_0 = require("moonscript.types")
6+
ntype = _obj_0.ntype
77
end
88
local user_error
99
do
10-
local _table_0 = require("moonscript.errors")
11-
user_error = _table_0.user_error
10+
local _obj_0 = require("moonscript.errors")
11+
user_error = _obj_0.user_error
1212
end
13-
local concat, insert = table.concat, table.insert
14-
local unpack = util.unpack
13+
local concat, insert
14+
do
15+
local _obj_0 = table
16+
concat, insert = _obj_0.concat, _obj_0.insert
17+
end
18+
local unpack
19+
unpack = util.unpack
1520
local table_delim = ","
1621
local string_chars = {
1722
["\r"] = "\\r",

moonscript/data.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
local concat, remove, insert = table.concat, table.remove, table.insert
1+
local concat, remove, insert
2+
do
3+
local _obj_0 = table
4+
concat, remove, insert = _obj_0.concat, _obj_0.remove, _obj_0.insert
5+
end
26
local Set
37
Set = function(items)
48
local self = { }

moonscript/errors.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
local util = require("moonscript.util")
22
local lpeg = require("lpeg")
3-
local concat, insert = table.concat, table.insert
4-
local split, pos_to_line = util.split, util.pos_to_line
3+
local concat, insert
4+
do
5+
local _obj_0 = table
6+
concat, insert = _obj_0.concat, _obj_0.insert
7+
end
8+
local split, pos_to_line
9+
split, pos_to_line = util.split, util.pos_to_line
510
local user_error
611
user_error = function(...)
712
return error({
@@ -58,7 +63,8 @@ end
5863
local rewrite_traceback
5964
rewrite_traceback = function(text, err)
6065
local line_tables = require("moonscript.line_tables")
61-
local V, S, Ct, C = lpeg.V, lpeg.S, lpeg.Ct, lpeg.C
66+
local V, S, Ct, C
67+
V, S, Ct, C = lpeg.V, lpeg.S, lpeg.Ct, lpeg.C
6268
local header_text = "stack traceback:"
6369
local Header, Line = V("Header"), V("Line")
6470
local Break = lpeg.S("\n")

moonscript/init.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
local compile = require("moonscript.compile")
22
local parse = require("moonscript.parse")
3-
local concat, insert = table.concat, table.insert
3+
local concat, insert
4+
do
5+
local _obj_0 = table
6+
concat, insert = _obj_0.concat, _obj_0.insert
7+
end
48
local split, dump, get_options, unpack
59
do
6-
local _table_0 = require("moonscript.util")
7-
split, dump, get_options, unpack = _table_0.split, _table_0.dump, _table_0.get_options, _table_0.unpack
10+
local _obj_0 = require("moonscript.util")
11+
split, dump, get_options, unpack = _obj_0.split, _obj_0.dump, _obj_0.get_options, _obj_0.unpack
812
end
913
local lua = {
1014
loadstring = loadstring,

moonscript/transform.lua

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
local types = require("moonscript.types")
22
local util = require("moonscript.util")
33
local data = require("moonscript.data")
4-
local reversed, unpack = util.reversed, util.unpack
5-
local ntype, mtype, build, smart_node, is_slice, value_is_singular = types.ntype, types.mtype, types.build, types.smart_node, types.is_slice, types.value_is_singular
6-
local insert = table.insert
4+
local reversed, unpack
5+
reversed, unpack = util.reversed, util.unpack
6+
local ntype, mtype, build, smart_node, is_slice, value_is_singular
7+
ntype, mtype, build, smart_node, is_slice, value_is_singular = types.ntype, types.mtype, types.build, types.smart_node, types.is_slice, types.value_is_singular
8+
local insert
9+
do
10+
local _obj_0 = table
11+
insert = _obj_0.insert
12+
end
713
local NameProxy, LocalName
814
do
9-
local _table_0 = require("moonscript.transform.names")
10-
NameProxy, LocalName = _table_0.NameProxy, _table_0.LocalName
15+
local _obj_0 = require("moonscript.transform.names")
16+
NameProxy, LocalName = _obj_0.NameProxy, _obj_0.LocalName
1117
end
1218
local destructure = require("moonscript.transform.destructure")
1319
local NOOP = {

moonscript/transform/destructure.lua

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
local ntype, mtype, build
22
do
3-
local _table_0 = require("moonscript.types")
4-
ntype, mtype, build = _table_0.ntype, _table_0.mtype, _table_0.build
3+
local _obj_0 = require("moonscript.types")
4+
ntype, mtype, build = _obj_0.ntype, _obj_0.mtype, _obj_0.build
55
end
66
local NameProxy
77
do
8-
local _table_0 = require("moonscript.transform.names")
9-
NameProxy = _table_0.NameProxy
8+
local _obj_0 = require("moonscript.transform.names")
9+
NameProxy = _obj_0.NameProxy
10+
end
11+
local insert
12+
do
13+
local _obj_0 = table
14+
insert = _obj_0.insert
1015
end
11-
local insert = table.insert
1216
local unpack
1317
do
14-
local _table_0 = require("moonscript.util")
15-
unpack = _table_0.unpack
18+
local _obj_0 = require("moonscript.util")
19+
unpack = _obj_0.unpack
1620
end
1721
local user_error
1822
do
19-
local _table_0 = require("moonscript.errors")
20-
user_error = _table_0.user_error
23+
local _obj_0 = require("moonscript.errors")
24+
user_error = _obj_0.user_error
2125
end
2226
local util = require("moonscript.util")
2327
local join

moonscript/transform/names.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
local build
22
do
3-
local _table_0 = require("moonscript.types")
4-
build = _table_0.build
3+
local _obj_0 = require("moonscript.types")
4+
build = _obj_0.build
55
end
66
local unpack
77
do
8-
local _table_0 = require("moonscript.util")
9-
unpack = _table_0.unpack
8+
local _obj_0 = require("moonscript.util")
9+
unpack = _obj_0.unpack
1010
end
1111
local LocalName
1212
do

moonscript/types.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
local util = require("moonscript.util")
22
local Set
33
do
4-
local _table_0 = require("moonscript.data")
5-
Set = _table_0.Set
4+
local _obj_0 = require("moonscript.data")
5+
Set = _obj_0.Set
66
end
7-
local insert = table.insert
8-
local unpack = util.unpack
7+
local insert
8+
do
9+
local _obj_0 = table
10+
insert = _obj_0.insert
11+
end
12+
local unpack
13+
unpack = util.unpack
914
local manual_return = Set({
1015
"foreach",
1116
"for",

0 commit comments

Comments
 (0)