diff options
author | Li Jin <dragon-fly@qq.com> | 2024-05-23 16:30:05 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2024-05-23 16:30:05 +0800 |
commit | 1890294226034d27165af016c8c93a484d978b49 (patch) | |
tree | 97f7f698aef1998ceb037080bd9f46b6f894e441 /spec/outputs/unicode | |
parent | 06bf167924d04aaefe80d6e4ead40989a447ea34 (diff) | |
download | yuescript-1890294226034d27165af016c8c93a484d978b49.tar.gz yuescript-1890294226034d27165af016c8c93a484d978b49.tar.bz2 yuescript-1890294226034d27165af016c8c93a484d978b49.zip |
prevent more anonymous functions generating from `const`, `close` decl.
Diffstat (limited to 'spec/outputs/unicode')
-rw-r--r-- | spec/outputs/unicode/attrib.lua | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/spec/outputs/unicode/attrib.lua b/spec/outputs/unicode/attrib.lua index 58ad4b2..1c48de4 100644 --- a/spec/outputs/unicode/attrib.lua +++ b/spec/outputs/unicode/attrib.lua | |||
@@ -26,63 +26,63 @@ do | |||
26 | _u5143_u7d20d = _obj_2[1] | 26 | _u5143_u7d20d = _obj_2[1] |
27 | end | 27 | end |
28 | do | 28 | do |
29 | local _u5173_u95ed_u53d8_u91cfv <close> = (function() | 29 | local _u5173_u95ed_u53d8_u91cfv |
30 | if _u6807_u8bb0_u4e3a_u771f then | 30 | if _u6807_u8bb0_u4e3a_u771f then |
31 | return _u51fd_u6570_u8c03_u7528() | 31 | _u5173_u95ed_u53d8_u91cfv = _u51fd_u6570_u8c03_u7528() |
32 | else | 32 | else |
33 | return setmetatable({ }, { | 33 | _u5173_u95ed_u53d8_u91cfv = setmetatable({ }, { |
34 | __close = function(self) end | 34 | __close = function(self) end |
35 | }) | 35 | }) |
36 | end | 36 | end |
37 | end)() | 37 | local _close_0 <close> = _u5173_u95ed_u53d8_u91cfv |
38 | local _u5173_u95ed_u53d8_u91cff <close> = (function() | 38 | local _u5173_u95ed_u53d8_u91cff |
39 | local _with_0 = io.open("文件.txt") | 39 | local _with_0 = io.open("文件.txt") |
40 | _with_0:write("你好") | 40 | _with_0:write("你好") |
41 | return _with_0 | 41 | _u5173_u95ed_u53d8_u91cff = _with_0 |
42 | end)() | 42 | local _close_1 <close> = _u5173_u95ed_u53d8_u91cff |
43 | end | 43 | end |
44 | do | 44 | do |
45 | local _u5e38_u91cfa <const> = (function() | 45 | local _u5e38_u91cfa |
46 | if true then | 46 | if true then |
47 | return 1 | 47 | _u5e38_u91cfa = 1 |
48 | end | 48 | end |
49 | end)() | 49 | local _u5173_u95ed_u53d8_u91cfb |
50 | local _u5173_u95ed_u53d8_u91cfb <close> = (function() | 50 | if not false then |
51 | if not false then | 51 | if _u6761_u4ef6x then |
52 | if _u6761_u4ef6x then | 52 | _u5173_u95ed_u53d8_u91cfb = 1 |
53 | return 1 | ||
54 | end | ||
55 | end | 53 | end |
56 | end)() | 54 | end |
57 | local _u5e38_u91cfc <const> = (function() | 55 | local _close_0 <close> = _u5173_u95ed_u53d8_u91cfb |
58 | if true then | 56 | local _u5e38_u91cfc |
59 | local _exp_0 = _u6761_u4ef6x | 57 | if true then |
60 | if "abc" == _exp_0 then | 58 | local _exp_0 = _u6761_u4ef6x |
61 | return 998 | 59 | if "abc" == _exp_0 then |
62 | end | 60 | _u5e38_u91cfc = 998 |
63 | end | 61 | end |
64 | end)() | 62 | end |
65 | local _u5173_u95ed_u53d8_u91cfd <close> = (function() | 63 | local _u5173_u95ed_u53d8_u91cfd |
66 | if (function() | 64 | if (function() |
67 | local _exp_0 = _u6761_u4ef6a | 65 | local _exp_0 = _u6761_u4ef6a |
68 | if _exp_0 ~= nil then | 66 | if _exp_0 ~= nil then |
69 | return _exp_0 | 67 | return _exp_0 |
70 | else | 68 | else |
71 | return _u6761_u4ef6b | 69 | return _u6761_u4ef6b |
72 | end | ||
73 | end)() then | ||
74 | return { | ||
75 | ["数值"] = _u6570_u503c | ||
76 | } | ||
77 | end | 70 | end |
78 | end)() | 71 | end)() then |
72 | _u5173_u95ed_u53d8_u91cfd = { | ||
73 | ["数值"] = _u6570_u503c | ||
74 | } | ||
75 | end | ||
76 | local _close_1 <close> = _u5173_u95ed_u53d8_u91cfd | ||
79 | end | 77 | end |
80 | do | 78 | do |
81 | local __u65e0_u6548_u53d8_u91cf <close> = (function() | 79 | local __u65e0_u6548_u53d8_u91cf |
80 | do | ||
82 | local _with_0 = io.open("文件.txt") | 81 | local _with_0 = io.open("文件.txt") |
83 | _with_0:write("你好") | 82 | _with_0:write("你好") |
84 | return _with_0 | 83 | __u65e0_u6548_u53d8_u91cf = _with_0 |
85 | end)() | 84 | end |
85 | local _close_0 <close> = __u65e0_u6548_u53d8_u91cf | ||
86 | local __u65e0_u6548_u53d8_u91cf <close> = setmetatable({ }, { | 86 | local __u65e0_u6548_u53d8_u91cf <close> = setmetatable({ }, { |
87 | __close = function() | 87 | __close = function() |
88 | return _u6253_u5370("第二") | 88 | return _u6253_u5370("第二") |