aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/syntax.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2024-03-21 09:14:34 +0800
committerLi Jin <dragon-fly@qq.com>2024-03-21 09:14:34 +0800
commit4a3cc26c6dfd74e61c8b6480038d6a292ea86e47 (patch)
tree9554b94cfc15e4acee0c2e60b63af16f1b828207 /spec/outputs/unicode/syntax.lua
parent80b65520da432843f0c63431a1867bd2620bc4ac (diff)
downloadyuescript-4a3cc26c6dfd74e61c8b6480038d6a292ea86e47.tar.gz
yuescript-4a3cc26c6dfd74e61c8b6480038d6a292ea86e47.tar.bz2
yuescript-4a3cc26c6dfd74e61c8b6480038d6a292ea86e47.zip
remove redundant 'do' blocks in code generation.
Diffstat (limited to 'spec/outputs/unicode/syntax.lua')
-rw-r--r--spec/outputs/unicode/syntax.lua14
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/outputs/unicode/syntax.lua b/spec/outputs/unicode/syntax.lua
index f086db6..9ea8f68 100644
--- a/spec/outputs/unicode/syntax.lua
+++ b/spec/outputs/unicode/syntax.lua
@@ -235,15 +235,11 @@ else
235end 235end
236do 236do
237 local _with_0 = _u8868 237 local _with_0 = _u8868
238 do 238 local _obj_2 = _with_0["变量b"]["变量c"]
239 local _obj_2 = _with_0["变量b"]["变量c"] 239 local _with_1 = _u5411_u91cf
240 do 240 _with_1["字段x"] = 1
241 local _with_1 = _u5411_u91cf 241 _with_1["字段y"] = 2
242 _with_1["字段x"] = 1 242 _obj_2[#_obj_2 + 1] = _with_1
243 _with_1["字段y"] = 2
244 _obj_2[#_obj_2 + 1] = _with_1
245 end
246 end
247end 243end
248do 244do
249 local _call_8 = _u5bf9_u8c61a["变量b"]["变量c"]["变量d"] 245 local _call_8 = _u5bf9_u8c61a["变量b"]["变量c"]["变量d"]