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/multiline_chain.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/multiline_chain.lua')
| -rw-r--r-- | spec/outputs/multiline_chain.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/outputs/multiline_chain.lua b/spec/outputs/multiline_chain.lua index 5edad88..ef64906 100644 --- a/spec/outputs/multiline_chain.lua +++ b/spec/outputs/multiline_chain.lua | |||
| @@ -82,15 +82,13 @@ do | |||
| 82 | _with_0:itemMethodC(i) | 82 | _with_0:itemMethodC(i) |
| 83 | end | 83 | end |
| 84 | if not _with_0.b then | 84 | if not _with_0.b then |
| 85 | do | 85 | local _accum_0 = { } |
| 86 | local _accum_0 = { } | 86 | local _len_0 = 1 |
| 87 | local _len_0 = 1 | 87 | while _with_0.itemFieldD do |
| 88 | while _with_0.itemFieldD do | 88 | _accum_0[_len_0] = _with_0:itemNext():get() |
| 89 | _accum_0[_len_0] = _with_0:itemNext():get() | 89 | _len_0 = _len_0 + 1 |
| 90 | _len_0 = _len_0 + 1 | ||
| 91 | end | ||
| 92 | _with_0.c = _accum_0 | ||
| 93 | end | 90 | end |
| 91 | _with_0.c = _accum_0 | ||
| 94 | end | 92 | end |
| 95 | end | 93 | end |
| 96 | return nil | 94 | return nil |
