diff options
author | Li Jin <dragon-fly@qq.com> | 2021-10-31 17:29:45 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-10-31 17:29:45 +0800 |
commit | aed806476fe50899c0f01750175531ac41267b9d (patch) | |
tree | c46f212a2987a9088b03e2c0225f18cd9a5d4265 /spec/outputs/multiline_chain.lua | |
parent | 60a979e224f26117f5be82bfca757a2483cef0fd (diff) | |
download | yuescript-aed806476fe50899c0f01750175531ac41267b9d.tar.gz yuescript-aed806476fe50899c0f01750175531ac41267b9d.tar.bz2 yuescript-aed806476fe50899c0f01750175531ac41267b9d.zip |
partially fix issue #69, fix a few case the generated code leaks some temp variables.
Diffstat (limited to 'spec/outputs/multiline_chain.lua')
-rw-r--r-- | spec/outputs/multiline_chain.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/outputs/multiline_chain.lua b/spec/outputs/multiline_chain.lua index fea7bc6..ecd2ca8 100644 --- a/spec/outputs/multiline_chain.lua +++ b/spec/outputs/multiline_chain.lua | |||
@@ -56,11 +56,13 @@ do | |||
56 | _with_0:callMethod():chainCall() | 56 | _with_0:callMethod():chainCall() |
57 | _with_0:callMethod():chainCall() | 57 | _with_0:callMethod():chainCall() |
58 | _with_0:chainCall() | 58 | _with_0:chainCall() |
59 | local _exp_0 = _with_0.itemFieldB:getValue() | 59 | do |
60 | if "Valid" == _exp_0 or _with_0:getItemState() == _exp_0 then | 60 | local _exp_0 = _with_0.itemFieldB:getValue() |
61 | _with_0:itemMethodA():getValue() | 61 | if "Valid" == _exp_0 or _with_0:getItemState() == _exp_0 then |
62 | else | 62 | _with_0:itemMethodA():getValue() |
63 | _with_0:itemMethodB():getValue() | 63 | else |
64 | _with_0:itemMethodB():getValue() | ||
65 | end | ||
64 | end | 66 | end |
65 | local a | 67 | local a |
66 | if _with_0.itemFieldC then | 68 | if _with_0.itemFieldC then |