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/global.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/global.lua')
| -rw-r--r-- | spec/outputs/unicode/global.lua | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/spec/outputs/unicode/global.lua b/spec/outputs/unicode/global.lua index c91db52..a34ce6d 100644 --- a/spec/outputs/unicode/global.lua +++ b/spec/outputs/unicode/global.lua | |||
| @@ -3,29 +3,27 @@ do | |||
| 3 | _u9177 = "đ" | 3 | _u9177 = "đ" |
| 4 | end | 4 | end |
| 5 | do | 5 | do |
| 6 | do | 6 | local _class_0 |
| 7 | local _class_0 | 7 | local _base_0 = { |
| 8 | local _base_0 = { | 8 | ["ćŻ"] = "đ" |
| 9 | ["ćŻ"] = "đ" | 9 | } |
| 10 | } | 10 | if _base_0.__index == nil then |
| 11 | if _base_0.__index == nil then | 11 | _base_0.__index = _base_0 |
| 12 | _base_0.__index = _base_0 | ||
| 13 | end | ||
| 14 | _class_0 = setmetatable({ | ||
| 15 | __init = function() end, | ||
| 16 | __base = _base_0, | ||
| 17 | __name = "ć šć±ç±»" | ||
| 18 | }, { | ||
| 19 | __index = _base_0, | ||
| 20 | __call = function(cls, ...) | ||
| 21 | local _self_0 = setmetatable({ }, _base_0) | ||
| 22 | cls.__init(_self_0, ...) | ||
| 23 | return _self_0 | ||
| 24 | end | ||
| 25 | }) | ||
| 26 | _base_0.__class = _class_0 | ||
| 27 | _u5168_u5c40_u7c7b = _class_0 | ||
| 28 | end | 12 | end |
| 13 | _class_0 = setmetatable({ | ||
| 14 | __init = function() end, | ||
| 15 | __base = _base_0, | ||
| 16 | __name = "ć šć±ç±»" | ||
| 17 | }, { | ||
| 18 | __index = _base_0, | ||
| 19 | __call = function(cls, ...) | ||
| 20 | local _self_0 = setmetatable({ }, _base_0) | ||
| 21 | cls.__init(_self_0, ...) | ||
| 22 | return _self_0 | ||
| 23 | end | ||
| 24 | }) | ||
| 25 | _base_0.__class = _class_0 | ||
| 26 | _u5168_u5c40_u7c7b = _class_0 | ||
| 29 | end | 27 | end |
| 30 | do | 28 | do |
| 31 | local _u53d8_u91cfc, _u53d8_u91cfd | 29 | local _u53d8_u91cfc, _u53d8_u91cfd |
