diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-13 16:59:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-13 16:59:39 +0800 |
commit | ff741df641bbe99a418bb856e14e3ec30bbc08aa (patch) | |
tree | 8f744b2fc4c1f6dc4844c38147cd8391f557b2eb /script/vm | |
parent | a3b5dcb6403bbcdd87e021f83e79c46796f68ce8 (diff) | |
download | lua-language-server-ff741df641bbe99a418bb856e14e3ec30bbc08aa.zip |
fix
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/compiler.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index a2c5c228..5a078e70 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1236,10 +1236,10 @@ local compilerSwitch = util.switch() : case 'getmethod' : case 'getindex' : call(function (source) - if vm.bindDocs(source) then + if guide.isGet(source) and vm.bindAs(source) then return end - if guide.isGet(source) and vm.bindAs(source) then + if vm.bindDocs(source) then return end ---@type (string|vm.node)? @@ -1270,8 +1270,8 @@ local compilerSwitch = util.switch() ---@cast key string vm.compileByParentNode(source.node, key, function (src) vm.setNode(source, vm.compileNode(src)) - if src.value then - vm.setNode(source, vm.compileNode(src.value)) + if src == source and source.value then + vm.setNode(source, vm.compileNode(source.value)) end end) end |