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/5.1/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/5.1/loops.lua')
| -rw-r--r-- | spec/outputs/5.1/loops.lua | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/spec/outputs/5.1/loops.lua b/spec/outputs/5.1/loops.lua index 6f0d072..cc019e0 100644 --- a/spec/outputs/5.1/loops.lua +++ b/spec/outputs/5.1/loops.lua | |||
| @@ -390,20 +390,18 @@ do | |||
| 390 | local _cond_0 = false | 390 | local _cond_0 = false |
| 391 | local _continue_1 = false | 391 | local _continue_1 = false |
| 392 | repeat | 392 | repeat |
| 393 | do | 393 | local _with_0 = tb |
| 394 | local _with_0 = tb | 394 | if _with_0 ~= nil then |
| 395 | if _with_0 ~= nil then | 395 | _with_0.a = 1 |
| 396 | _with_0.a = 1 | 396 | if _with_0.b then |
| 397 | if _with_0.b then | 397 | _cond_0 = true |
| 398 | _cond_0 = true | 398 | _continue_1 = true |
| 399 | _continue_1 = true | 399 | break |
| 400 | end | ||
| 401 | do | ||
| 402 | if _with_0.c then | ||
| 400 | break | 403 | break |
| 401 | end | 404 | end |
| 402 | do | ||
| 403 | if _with_0.c then | ||
| 404 | break | ||
| 405 | end | ||
| 406 | end | ||
| 407 | end | 405 | end |
| 408 | end | 406 | end |
| 409 | _cond_0 = true | 407 | _cond_0 = true |
