summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-04 17:57:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-04 17:57:35 +0800
commit1a7d721152703fe056c7fdd0968ed1c46a8870e0 (patch)
treeae0eff548f34645c1e41763b7f218eeffe5881b5 /script/vm/compiler.lua
parentd56bc2365d69cfece739524238656ba4989c0f22 (diff)
downloadlua-language-server-1a7d721152703fe056c7fdd0968ed1c46a8870e0.zip
stash
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 1ba20785..6932a8c8 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1313,14 +1313,6 @@ local compilerSwitch = util.switch()
else
vm.setNode(src, vm.compileNode(src.value), true)
end
- elseif src.value
- and src.value.type == 'binary'
- and src.value.op and src.value.op.type == 'or'
- and src.value[1] and src.value[1].type == 'getlocal' and src.value[1].node == source then
- -- x = x or 1
- vm.setNode(src, vm.compileNode(src.value))
- else
- vm.setNode(src, node, true)
end
return vm.getNode(src)
elseif src.type == 'getlocal' then