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/local.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/local.lua')
| -rw-r--r-- | spec/outputs/unicode/local.lua | 80 |
1 files changed, 38 insertions, 42 deletions
diff --git a/spec/outputs/unicode/local.lua b/spec/outputs/unicode/local.lua index 170144b..4b4b366 100644 --- a/spec/outputs/unicode/local.lua +++ b/spec/outputs/unicode/local.lua | |||
| @@ -98,50 +98,46 @@ do | |||
| 98 | F_u4e94 = 6 | 98 | F_u4e94 = 6 |
| 99 | O_u4e00 = _class_0 | 99 | O_u4e00 = _class_0 |
| 100 | end | 100 | end |
| 101 | do | 101 | local _class_0 |
| 102 | local _class_0 | 102 | local N_u65e0 |
| 103 | local N_u65e0 | 103 | local _base_0 = { } |
| 104 | local _base_0 = { } | 104 | if _base_0.__index == nil then |
| 105 | if _base_0.__index == nil then | 105 | _base_0.__index = _base_0 |
| 106 | _base_0.__index = _base_0 | 106 | end |
| 107 | end | 107 | _class_0 = setmetatable({ |
| 108 | _class_0 = setmetatable({ | 108 | __init = function() end, |
| 109 | __init = function() end, | 109 | __base = _base_0, |
| 110 | __base = _base_0, | 110 | __name = "T二" |
| 111 | __name = "T二" | 111 | }, { |
| 112 | }, { | 112 | __index = _base_0, |
| 113 | __index = _base_0, | 113 | __call = function(cls, ...) |
| 114 | __call = function(cls, ...) | 114 | local _self_0 = setmetatable({ }, _base_0) |
| 115 | local _self_0 = setmetatable({ }, _base_0) | 115 | cls.__init(_self_0, ...) |
| 116 | cls.__init(_self_0, ...) | 116 | return _self_0 |
| 117 | return _self_0 | ||
| 118 | end | ||
| 119 | }) | ||
| 120 | _base_0.__class = _class_0 | ||
| 121 | local self = _class_0; | ||
| 122 | do | ||
| 123 | local _class_1 | ||
| 124 | local _base_1 = { } | ||
| 125 | if _base_1.__index == nil then | ||
| 126 | _base_1.__index = _base_1 | ||
| 127 | end | ||
| 128 | _class_1 = setmetatable({ | ||
| 129 | __init = function() end, | ||
| 130 | __base = _base_1, | ||
| 131 | __name = "N无" | ||
| 132 | }, { | ||
| 133 | __index = _base_1, | ||
| 134 | __call = function(cls, ...) | ||
| 135 | local _self_0 = setmetatable({ }, _base_1) | ||
| 136 | cls.__init(_self_0, ...) | ||
| 137 | return _self_0 | ||
| 138 | end | ||
| 139 | }) | ||
| 140 | _base_1.__class = _class_1 | ||
| 141 | N_u65e0 = _class_1 | ||
| 142 | end | 117 | end |
| 143 | T_u4e8c = _class_0 | 118 | }) |
| 119 | _base_0.__class = _class_0 | ||
| 120 | local self = _class_0; | ||
| 121 | local _class_1 | ||
| 122 | local _base_1 = { } | ||
| 123 | if _base_1.__index == nil then | ||
| 124 | _base_1.__index = _base_1 | ||
| 144 | end | 125 | end |
| 126 | _class_1 = setmetatable({ | ||
| 127 | __init = function() end, | ||
| 128 | __base = _base_1, | ||
| 129 | __name = "N无" | ||
| 130 | }, { | ||
| 131 | __index = _base_1, | ||
| 132 | __call = function(cls, ...) | ||
| 133 | local _self_0 = setmetatable({ }, _base_1) | ||
| 134 | cls.__init(_self_0, ...) | ||
| 135 | return _self_0 | ||
| 136 | end | ||
| 137 | }) | ||
| 138 | _base_1.__class = _class_1 | ||
| 139 | N_u65e0 = _class_1 | ||
| 140 | T_u4e8c = _class_0 | ||
| 145 | end | 141 | end |
| 146 | do | 142 | do |
| 147 | local _list_0 = { } | 143 | local _list_0 = { } |
