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/syntax.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/syntax.lua')
| -rw-r--r-- | spec/outputs/syntax.lua | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/outputs/syntax.lua b/spec/outputs/syntax.lua index 20b8469..cfe63eb 100644 --- a/spec/outputs/syntax.lua +++ b/spec/outputs/syntax.lua | |||
| @@ -217,15 +217,11 @@ else | |||
| 217 | end | 217 | end |
| 218 | do | 218 | do |
| 219 | local _with_0 = tb | 219 | local _with_0 = tb |
| 220 | do | 220 | local _obj_2 = _with_0.b.c |
| 221 | local _obj_2 = _with_0.b.c | 221 | local _with_1 = vec |
| 222 | do | 222 | _with_1.x = 1 |
| 223 | local _with_1 = vec | 223 | _with_1.y = 2 |
| 224 | _with_1.x = 1 | 224 | _obj_2[#_obj_2 + 1] = _with_1 |
| 225 | _with_1.y = 2 | ||
| 226 | _obj_2[#_obj_2 + 1] = _with_1 | ||
| 227 | end | ||
| 228 | end | ||
| 229 | end | 225 | end |
| 230 | do | 226 | do |
| 231 | local _obj_2 = a.b.c.d:f().g | 227 | local _obj_2 = a.b.c.d:f().g |
