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/unicode/class.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/unicode/class.lua')
| -rw-r--r-- | spec/outputs/unicode/class.lua | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/spec/outputs/unicode/class.lua b/spec/outputs/unicode/class.lua index 4d309e3..23fc8f4 100644 --- a/spec/outputs/unicode/class.lua +++ b/spec/outputs/unicode/class.lua | |||
| @@ -497,30 +497,28 @@ _u6253_u5370("你好") | |||
| 497 | local _u53d8_u91cfyyy | 497 | local _u53d8_u91cfyyy |
| 498 | _u53d8_u91cfyyy = function() | 498 | _u53d8_u91cfyyy = function() |
| 499 | local _u9177 | 499 | local _u9177 |
| 500 | do | 500 | local _class_0 |
| 501 | local _class_0 | 501 | local _base_0 = { } |
| 502 | local _base_0 = { } | 502 | if _base_0.__index == nil then |
| 503 | if _base_0.__index == nil then | 503 | _base_0.__index = _base_0 |
| 504 | _base_0.__index = _base_0 | ||
| 505 | end | ||
| 506 | _class_0 = setmetatable({ | ||
| 507 | __init = function() end, | ||
| 508 | __base = _base_0, | ||
| 509 | __name = "酷" | ||
| 510 | }, { | ||
| 511 | __index = _base_0, | ||
| 512 | __call = function(cls, ...) | ||
| 513 | local _self_0 = setmetatable({ }, _base_0) | ||
| 514 | cls.__init(_self_0, ...) | ||
| 515 | return _self_0 | ||
| 516 | end | ||
| 517 | }) | ||
| 518 | _base_0.__class = _class_0 | ||
| 519 | local self = _class_0; | ||
| 520 | _ = nil | ||
| 521 | _u9177 = _class_0 | ||
| 522 | return _class_0 | ||
| 523 | end | 504 | end |
| 505 | _class_0 = setmetatable({ | ||
| 506 | __init = function() end, | ||
| 507 | __base = _base_0, | ||
| 508 | __name = "酷" | ||
| 509 | }, { | ||
| 510 | __index = _base_0, | ||
| 511 | __call = function(cls, ...) | ||
| 512 | local _self_0 = setmetatable({ }, _base_0) | ||
| 513 | cls.__init(_self_0, ...) | ||
| 514 | return _self_0 | ||
| 515 | end | ||
| 516 | }) | ||
| 517 | _base_0.__class = _class_0 | ||
| 518 | local self = _class_0; | ||
| 519 | _ = nil | ||
| 520 | _u9177 = _class_0 | ||
| 521 | return _class_0 | ||
| 524 | end | 522 | end |
| 525 | do | 523 | do |
| 526 | local _class_0 | 524 | local _class_0 |
