diff options
author | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
commit | 60a979e224f26117f5be82bfca757a2483cef0fd (patch) | |
tree | 7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/import.lua | |
parent | a19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff) | |
download | yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2 yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip |
fix test.
Diffstat (limited to 'spec/outputs/import.lua')
-rw-r--r-- | spec/outputs/import.lua | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/spec/outputs/import.lua b/spec/outputs/import.lua new file mode 100644 index 0000000..02e210b --- /dev/null +++ b/spec/outputs/import.lua | |||
@@ -0,0 +1,92 @@ | |||
1 | local hello = yeah.hello | ||
2 | local world | ||
3 | do | ||
4 | local _obj_0 = table["cool"] | ||
5 | hello, world = _obj_0.hello, _obj_0.world | ||
6 | end | ||
7 | local a, b, c = items.a, (function() | ||
8 | local _base_0 = items | ||
9 | local _fn_0 = _base_0.b | ||
10 | return _fn_0 and function(...) | ||
11 | return _fn_0(_base_0, ...) | ||
12 | end | ||
13 | end)(), items.c | ||
14 | local master, ghost | ||
15 | do | ||
16 | local _obj_0 = find("mytable") | ||
17 | master, ghost = _obj_0.master, (function() | ||
18 | local _base_0 = _obj_0 | ||
19 | local _fn_0 = _base_0.ghost | ||
20 | return _fn_0 and function(...) | ||
21 | return _fn_0(_base_0, ...) | ||
22 | end | ||
23 | end)() | ||
24 | end | ||
25 | local yumm | ||
26 | a, yumm = 3434, "hello" | ||
27 | local _table_0 = 232 | ||
28 | local something | ||
29 | do | ||
30 | local _obj_0 = a(table) | ||
31 | something = _obj_0.something | ||
32 | end | ||
33 | if indent then | ||
34 | local okay, well | ||
35 | do | ||
36 | local _obj_0 = tables[100] | ||
37 | okay, well = _obj_0.okay, (function() | ||
38 | local _base_0 = _obj_0 | ||
39 | local _fn_0 = _base_0.well | ||
40 | return _fn_0 and function(...) | ||
41 | return _fn_0(_base_0, ...) | ||
42 | end | ||
43 | end)() | ||
44 | end | ||
45 | end | ||
46 | do | ||
47 | a, b, c = z.a, z.b, z.c | ||
48 | end | ||
49 | do | ||
50 | a, b, c = z.a, z.b, z.c | ||
51 | end | ||
52 | do | ||
53 | a, b, c = z.a, z.b, z.c | ||
54 | end | ||
55 | do | ||
56 | a, b, c = z.a, z.b, z.c | ||
57 | end | ||
58 | do | ||
59 | a, b, c = z.a, z.b, z.c | ||
60 | end | ||
61 | do | ||
62 | local module = require('module') | ||
63 | local module_x = require('module_x') | ||
64 | local d_a_s_h_e_s = require("d-a-s-h-e-s") | ||
65 | local part = require("module.part") | ||
66 | end | ||
67 | do | ||
68 | local Player = require("player") | ||
69 | local C, Ct, Cmt | ||
70 | do | ||
71 | local _obj_0 = require("lpeg") | ||
72 | C, Ct, Cmt = _obj_0.C, _obj_0.Ct, _obj_0.Cmt | ||
73 | end | ||
74 | local one, two, ch | ||
75 | do | ||
76 | local _obj_0 = require("export") | ||
77 | one, two, ch = _obj_0[1], _obj_0[2], _obj_0.Something.umm[1] | ||
78 | end | ||
79 | local Another = require("export").Another | ||
80 | end | ||
81 | do | ||
82 | module = require('module') | ||
83 | module_x = require('module_x') | ||
84 | module_y = require("org.package.module-y") | ||
85 | end | ||
86 | do | ||
87 | local func, ifVar | ||
88 | do | ||
89 | local _obj_0 = require("org.package.module") | ||
90 | func, ifVar = _obj_0["function"], _obj_0["if"] | ||
91 | end | ||
92 | end | ||