diff options
author | Li Jin <dragon-fly@qq.com> | 2024-03-21 09:14:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2024-03-21 09:14:34 +0800 |
commit | 4a3cc26c6dfd74e61c8b6480038d6a292ea86e47 (patch) | |
tree | 9554b94cfc15e4acee0c2e60b63af16f1b828207 /spec/outputs/loops.lua | |
parent | 80b65520da432843f0c63431a1867bd2620bc4ac (diff) | |
download | yuescript-4a3cc26c6dfd74e61c8b6480038d6a292ea86e47.tar.gz yuescript-4a3cc26c6dfd74e61c8b6480038d6a292ea86e47.tar.bz2 yuescript-4a3cc26c6dfd74e61c8b6480038d6a292ea86e47.zip |
remove redundant 'do' blocks in code generation.
Diffstat (limited to 'spec/outputs/loops.lua')
-rw-r--r-- | spec/outputs/loops.lua | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/spec/outputs/loops.lua b/spec/outputs/loops.lua index 79ef789..40e27b9 100644 --- a/spec/outputs/loops.lua +++ b/spec/outputs/loops.lua | |||
@@ -297,17 +297,15 @@ end | |||
297 | do | 297 | do |
298 | for i = 1, 10 do | 298 | for i = 1, 10 do |
299 | repeat | 299 | repeat |
300 | do | 300 | local _with_0 = tb |
301 | local _with_0 = tb | 301 | if _with_0 ~= nil then |
302 | if _with_0 ~= nil then | 302 | _with_0.a = 1 |
303 | _with_0.a = 1 | 303 | if _with_0.b then |
304 | if _with_0.b then | 304 | goto _continue_12 |
305 | goto _continue_12 | 305 | end |
306 | end | 306 | do |
307 | do | 307 | if _with_0.c then |
308 | if _with_0.c then | 308 | break |
309 | break | ||
310 | end | ||
311 | end | 309 | end |
312 | end | 310 | end |
313 | end | 311 | end |